Biobanks now measure traits from images automatically. A neural network reads a brain MRI and outputs a "brain age," or reads a cardiac MRI and outputs a valve area. Those numbers then feed genetic studies as if they were exact measurements, including Mendelian randomization (MR), a method that uses inherited DNA variants as natural experiments to estimate causal effects. The networks, however, are trained almost entirely on European-ancestry participants. This note proposes to treat the network as a measuring instrument with its own ancestry-dependent error, estimate that error directly, and remove it before running MR. The central tool is a "phenotyper error GWAS": a genome-wide association study run on the difference between the network's output and a conventional reference measurement. If that difference is heritable, or correlates with the DNA variants used as instruments, the network has created a causal pathway that exists only in the measurement pipeline.
The work matters because automation was adopted to escape the manual phenotyping bottleneck. Large MRI GWAS and MR studies were feasible only because networks replaced hand measurement, as in the automated aortic valve planimetry across 26,142 participants in Cardiac imaging of aortic valve area from 26,142 UK Biobank participants and the multimodal brain-age MR analyses in The genetic architecture of multimodal human brain age. Both studies were restricted to European ancestry. Both flag diversity as the next step. Neither asks whether the automated phenotyper is itself portable. Once these pipelines are applied to diverse cohorts, a network error that differs by ancestry will look like biological differences in causal effects between populations.
Core Claim
Write the network's output as $\hat X = a_g + b_g X + e$. Here $X$ is the true trait, $g$ is an ancestry group, $a_g$ and $b_g$ are the group-specific offset and slope of the network's calibration, and $e$ is the remaining error. For a single variant $Z$ used as an instrument, the MR ratio estimate computed with $\hat X$ converges to
$$ \hat\beta_g \;=\; \frac{\beta\, b_g\,\mathrm{Cov}(Z,X)}{b_g\,\mathrm{Cov}(Z,X) + \mathrm{Cov}(Z,e)}, $$
where $\beta$ is the true causal effect of $X$ on the outcome. The expression follows directly from dividing the variant–outcome covariance by the variant–$\hat X$ covariance.
The equation shows two separate distortions. The first comes from the slope $b_g$. If the second term is zero, the estimate is $\beta / b_g$, so a network that compresses predictions toward the mean more strongly in one ancestry produces spurious cross-ancestry heterogeneity in causal effects. Accurate brain age prediction with lightweight deep neural networks documents exactly this regression toward the mean. Its correction was fit on a pooled, largely European sample.
The second distortion is $\mathrm{Cov}(Z,e)$. This term is nonzero when the network has learned image features that track ancestry, and hence track ancestry-informative variants, rather than the trait. The concern is concrete: the same network recovers sex from brain scans at 99.5% accuracy, so ancestry-correlated anatomy is likely also encoded. Standard adjustment for genetic principal components (PCs, the leading axes of genetic variation used to summarize ancestry) removes shifts in $a_g$. It does not remove differences in $b_g$. It also does not remove variant-level correlation with $e$, particularly within admixed individuals. The claim is that both quantities can be estimated from data and corrected, and that doing so changes cross-ancestry MR conclusions.
Research Program
The work has three parts.
Measuring the error. For brain MRI, the network's output is compared against conventional atlas-based regional volumes, the kind of 119 gray-matter features used as inputs in The genetic architecture of multimodal human brain age. The network is an SFCN-style model (the lightweight 3D convolutional network from the brain-age paper) with the pretrained weights from UKBiobank_deep_pretrain, trained to predict total and regional gray-matter volume from raw T1 scans. Its output is compared with the reference in each ancestry group and along continuous genetic PCs.
For brain age, chronological age is a label that is known without error in every group. That makes it possible to estimate $a_g$ and $b_g$ for the regression-toward-the-mean component directly.
The reference pipeline may carry its own template bias. For that reason, the error GWAS is interpreted as disagreement between two measurements, not as absolute error. A small subset with manual tracing is used where available to anchor which measurement drifts.
The error GWAS. Using the non-European participants in the UK Biobank imaging cohort, with sample sizes checked before committing, and ADNI as a second site, two analyses are run.
- The first is a GWAS on the error $\hat X - X_{\text{ref}}$. It estimates the error's SNP heritability and tests each candidate instrument for association with the error.
- The second is a probe of the network's internal representation for genetic PCs. It measures how much ancestry the phenotyper encodes beyond what the reference trait explains.
The output of this part is an instrument-level estimate of $\mathrm{Cov}(Z,e)$ and a group-level estimate of $b_g$.
Error-aware estimation. The corrected MR estimator has two components.
- It rescales each group's variant–exposure association by the estimated $\hat b_g$.
- It either subtracts the estimated error association from each instrument or drops instruments whose error association is significant. This acts as a filter for pleiotropy that the phenotyper itself created.
A secondary arm fine-tunes the phenotyper with a calibration penalty. This penalty is a maximum mean discrepancy (a kernel distance between distributions) applied between ancestry groups to the residual, conditional on the reference value. It is not applied to the prediction itself.
The conditioning is the key design difference from Addressing Instrument-Outcome Confounding in Mendelian Randomization through Representation Learning. That paper enforces marginal cross-ancestry invariance on tabular genotype representations at the GLP1R locus, and it assumes that phenotypes are measured equally well in every ancestry. Marginal invariance applied to an image phenotype would erase real biological differences between ancestries. Conditional calibration removes only error. The present proposal targets the measurement side that the purifier leaves untouched, so the two methods can be composed.
Baselines
Naive reference. The pretrained SFCN is applied unchanged, and standard two-stage least squares (2SLS, the textbook instrumental-variable regression) is run with ten genetic PCs as covariates. This matches how current imaging-MR pipelines treat automated phenotypes. The reported reference point for the network alone is a brain-age mean absolute error (MAE) of 2.14±0.05 years on UK Biobank and 2.90 years on PAC 2019 (Accurate brain age prediction). No ancestry-stratified MAE for this network was found on Lacuna.
Published pooled bias correction. The linear correction from the same paper reduced the correlation between the brain-age gap and chronological age from −0.39 to 0.01. It is the strongest existing fix for the slope distortion. It is refit on the same training split to keep the comparison fair.
Ancestry-stratified recalibration. Separate linear corrections are fit per group and along PCs. This is the most dangerous competitor, discussed further below.
Genotype-side purifier. The MMD/HSIC autoencoder with partialling-out 2SLS from Addressing Instrument-Outcome Confounding is the strongest method for confounding on the instrument side. It reported bias of up to 0.3 for standard 2SLS and MR-Egger, against near-zero bias for its own method, in All of Us semi-synthetic data. The prediction is that it will not remove $\mathrm{Cov}(Z,e)$ when that error originates in the phenotyper.
Other references. - MR-Egger and the HEIDI-outlier filter from Causal associations between risk factors and common diseases are the standard pleiotropy defenses. - A LASSO phenotyper on the tabular regional features tests whether network capacity amplifies ancestry error, which is the linear-versus-deep tension raised by that paper's finding that LASSO beat deeper networks.
Ablations. Two ablations isolate the key ingredient: slope rescaling alone, and instrument-error adjustment alone.
Fairness. All methods use identical data splits, the same instrument sets, and matched hyperparameter search budgets. The fine-tuned arm and the pooled fine-tuning baseline receive the same GPU hours.
Success criterion. Beating the baselines means a lower absolute bias and better confidence-interval coverage of the known $\beta$ in non-European groups, with no worse performance in the European group.
Why not just…?
Why not just adjust for genetic principal components? PC adjustment absorbs ancestry-level offsets $a_g$. It cannot fix the division by $b_g$, and it misses variant-level correlation between error and instrument within groups. The purifier paper already shows that PC-style linear control leaves bias of up to 0.3 even when phenotypes are exact. The semi-synthetic arm reports PC-adjusted 2SLS as a separate row, so any residual bias is directly visible.
Why not just recalibrate the network per ancestry? This is a real threat. For brain age, where an exact label exists, stratified recalibration may remove most of the slope distortion. It cannot detect $\mathrm{Cov}(Z,e)$, because recalibration conditions on group, not on individual variants. If the error GWAS finds negligible heritability and negligible instrument association, then recalibration is sufficient. In that case the contribution reduces to the audit plus that simple fix, and the proposal will say so.
Why not just fine-tune the network on more diverse scans? Pooled fine-tuning is a baseline under the same compute budget. Fine-tuning improves average accuracy but does not guarantee equal calibration across groups, and non-European imaging samples are small. The measure that settles the question is the post-fine-tuning error GWAS: whether error heritability actually falls.
Why not use a linear phenotyper and avoid shortcut learning altogether? The LASSO arm tests this directly. Existing evidence cuts both ways. LASSO won on tabular features in The genetic architecture of multimodal human brain age. SFCN outperformed elastic net on raw images even with as few as 50 training subjects. The prediction is that the linear phenotyper has lower instrument–error correlation but lower relevance. The instrument strength of each phenotyper, measured by the F-statistic, will be reported alongside its bias.
Proposed Experiments
Semi-synthetic test. The decisive experiment follows the design of the purifier paper but places the error on the measurement side. It uses real genotypes, real scans, and real network outputs, and simulates outcomes as $Y = \beta X_{\text{ref}} + U + \varepsilon$. Here $U$ is an ancestry-structured confounder and $\varepsilon$ is noise. Because the outcome depends on the reference measure, MR run with $\hat X$ as the exposure has a known correct answer $\beta$.
- Group mixtures are varied by reweighting.
- The strength of the network's ancestry encoding is varied by adding controlled image-level shortcut signal.
The metrics are bias and 95% interval coverage for $\beta$ in each group, and spurious heterogeneity between groups under a true common $\beta$.
Real-data check. Using the MR relationships reported in The genetic architecture of multimodal human brain age, where type 2 diabetes was found to accelerate gray-matter aging, the question is whether apparent cross-ancestry differences in that effect shrink after error-aware correction. Shrinking would indicate they were artifacts of the phenotyper.
Non-human replication. A lighter replication uses sorghum population structure in SG×P. There, networks predict SNP alleles from images, reaching 84.2% per-cultivar accuracy on a flowering-time SNP with fused RGB and 3D data. The test is whether those predictions partly ride on structure-tracking shortcuts: structure-informative SNPs should be predictable beyond what the measured traits explain.
Falsification. The core claim fails if the phenotyper error shows near-zero SNP heritability, if every candidate instrument is uncorrelated with the error, and if stratified slopes $\hat b_g$ agree within their confidence intervals. In that case current practice is safe for these phenotypes, which is itself worth reporting.
References
- Cardiac imaging of aortic valve area from 26,142 UK Biobank participants reveal novel genetic associations and shared genetic comorbidity with multiple disease phenotypes
- The genetic architecture of multimodal human brain age
- Accurate brain age prediction with lightweight deep neural networks
- Addressing Instrument-Outcome Confounding in Mendelian Randomization through Representation Learning
- Causal associations between risk factors and common diseases inferred from GWAS summary data
- SG×P : A Sorghum Genotype × Phenotype Prediction Dataset and Benchmark