Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2026 Oct 28.
Published in final edited form as: Nat Hum Behav. 2024 Jul 31;8(10):2018–2033. doi: 10.1038/s41562-024-01931-7

Power and reproducibility in the external validation of brain-phenotype predictions

Matthew Rosenblatt 1, Link Tejavibulya 2, Huili Sun 1, Chris C Camp 2, Milana Khaitova 3, Brendan D Adkinson 2, Rongtao Jiang 3, Margaret L Westwater 3, Stephanie Noble 3,4,5, Dustin Scheinost 1,2,3,6,7
PMCID: PMC13711221  NIHMSID: NIHMS2211675  PMID: 39085406

Abstract

Brain-phenotype predictive models seek to identify reproducible and generalizable brain-phenotype associations. External validation, or the evaluation of a model in external datasets, is the gold standard in evaluating the generalizability of models in neuroimaging. Unlike typical studies, external validation involves two sample sizes: the training and the external sample sizes. Thus, traditional power calculations may not be appropriate. Here, we ran over 900 million resampling-based simulations in functional and structural connectivity data to investigate the relationship between training sample size, external sample size, phenotype effect size, theoretical power, and simulated power. Our analysis included a wide range of datasets—the Healthy Brain Network, the Adolescent Brain Cognitive Development Study, the Human Connectome Project (Development and Young Adult), the Philadelphia Neurodevelopmental Cohort, the Queensland Twin Adolescent Brain Project, and the Chinese Human Connectome Project— and phenotypes—age, body mass index, matrix reasoning, working memory, attention problems, anxiety/depression symptoms, and relational processing. High effect size predictions achieved adequate power with training and external sample sizes of a few hundred individuals, whereas low and medium effect size predictions required hundreds to thousands of training and external samples. In addition, most prior external validation studies used sample sizes prone to low power, and theoretical power curves should be adjusted for the training sample size. Furthermore, model performance in internal validation often informed subsequent external validation performance (Pearson’s r difference <0.2), particularly for well-harmonized datasets. These results could help decide how to power future external validation studies.

1. Introduction

Neuroimaging studies increasingly leverage large datasets to understand brain-phenotype associations1. However, even traditionally “large” datasets, which include hundreds of participants, are underpowered for many association studies2. Low statistical power presents numerous roadblocks to the reproducibility of neuroimaging research, including false negatives, inflated effect sizes, and replication failures2–7.

In contrast to association studies, prediction frameworks can alleviate the poor reproducibility seen in certain neuroimaging studies8–12. Unlike association, prediction entails the evaluation of a model on unseen data, which minimizes the risk of overfitting, or instances where models fail to generalize beyond the training data. Thus, prediction provides a more robust measure of brain-phenotype associations than in-sample associations. Typically, prediction is achieved by dividing a dataset into training and test sets, such as through k-fold cross-validation. Although an improvement over in-sample associations, splitting a dataset into training and test samples does not fully capture the generalizability and utility of brain-phenotype associations. Even with cross-validation, a model can be overfit to the idiosyncrasies of a particular dataset13,14.

External validation, or applying a model to an entirely different dataset, is the gold standard when evaluating the generalizability of predictive models. Generalizing a model to another dataset with different characteristics provides strong evidence of a robust and reproducible brain-phenotype association. As such, numerous works encourage generalization to external datasets9,13–17. Since few studies have the resources to collect two independent samples, external validation is usually performed using an existing publicly available dataset. As the availability of such datasets continues to increase, external validation will likely become more accessible and commonplace. Nevertheless, external datasets are rarely harmonized with the primary dataset, often differing in their phenotypic measures, neuroimaging data, or the relationship between phenotypic and neuroimaging data, which constitutes dataset shift18,19. Therefore, researchers typically resort to using the most similar dataset available. Statistical power is rarely a consideration for external validation studies.

Although power is computed for typical single-dataset studies as a function of the sample size, effect size, and significance level α20, power in external validation may depend on the effect size, both the training and external sample sizes, and potential dataset shift. Thus, traditional power calculations may be insufficient for external validation. A systematic evaluation of how the ground truth effect size, training sample size, and external sample size contribute to external validation power will be critical to determining if established theoretical power curves can be adapted for external validation.

In this work, we simulate the effects of the training and external dataset sizes on prediction power. Our analysis includes seven publicly available neuroimaging datasets, both functional and structural connectivity, and six main phenotypes, spanning various developmental, cognitive, and psychiatric traits: age, age- and sex-adjusted body mass index (BMIZ), matrix reasoning, working memory, attention problems, and anxiety/depression symptoms. We first survey what training and external sample sizes have been used by existing external validation studies to contextualize our resampling simulations. Next, we resample the datasets across multiple sample sizes and evaluate internal (i.e., within-dataset) and external (i.e., across datasets) prediction performance across high, medium, and low effect size phenotypes. Finally, we investigate the relationship between the internal and external prediction performance.

2. Results

2.1. External validation sample sizes in the literature

We performed a brief literature review of neuroimaging external validation papers published in 2022–2023 to contextualize typical training and external dataset sample sizes. We further combined our review with a previous analysis by Yeung et al. that included papers before 202214. Among 54 qualifying articles, the median training sample size was N=129 (IQR=59.5–371.25), and the median external sample size was N=108 (IQR=50–281). These sample sizes informed our analysis of the simulated results presented in this work.

2.2. Resampling simulations of internal and external validation

We compared the typical external validation sample sizes in the field to resampling-based simulations of external validation in four developmental resting-state fMRI datasets: the Healthy Brain Network (HBN) Dataset21, the Adolescent Brain Cognitive Development (ABCD) Study22, the Human Connectome Project Development (HCPD) Dataset23,24, and the Philadelphia Neurodevelopmental Cohort (PNC) Dataset25,26. Details about the datasets are presented in Tables S1–2 and in the Methods section. Both internal (within-dataset) and external (across-datasets) validation were performed across six phenotypes. The phenotypes were broadly divided into high (Pearson’s r>=0.4; age and BMIZ), medium (0.15<=r<0.4; matrix reasoning and working memory), or low effect size (r<0.15; attention problems and anxiety/depression symptoms) phenotypes based on internal validation performance (Table S3). Phenotypes of differing effect sizes were selected because relationships between power and sample size also depend on the ground truth effect size, where stronger effect sizes have greater power5. In addition, our definitions of high, medium, and low effect sizes differ from traditional classifications27. Our definitions were instead adjusted to align with typical results in the neuroimaging field.

In the remaining sections, we used simulations to understand the relationship between training dataset size, external dataset size, and prediction power across effect sizes (Figure S1). Our primary results report findings from models that are trained in the HBN dataset and tested in all other datasets (see Supplemental Information for all possible combinations of training/external datasets).

2.3. Internal validation performance

For internal validation, a ridge regression28 model was trained in a subset of one dataset and evaluated in a randomly held-out 20% of the same dataset. All models included covariate regression (self-reported sex, motion, and age), feature selection of the top 1% of features most correlated with the outcome of interest28, and five-fold cross-validation within the training set to select the L2 regularization parameter 𝛼 (𝛼=10{−3,−2,−1,0,1,2,3}). Family structure was accounted for to ensure that each set of family members was either in the training set or the test set.

As the training sample size increased, internal validation prediction performance, as measured by Pearson’s r between the observed and predicted phenotypes, increased for high and medium effect size phenotypes (Figure 1; Figures S2–S4). In low effect size phenotypes, the average performance increased in some cases (e.g., PNC prediction of anxiety/depression symptoms in Figure S4) but otherwise remained near r=0. Unsurprisingly, variability in performance was greater at small sample sizes across all datasets and phenotypes, but this effect was minor in low effect size phenotypes. Similar trends were observed when using mean absolute error (MAE) as an evaluation metric (Figure S5–S8), though the effects of training sample size were more subtle in medium effect size phenotypes.

Figure 1. Internal validation performance in HBN.

Figure 1.

Prediction performance in HBN for a) high (age, body mass index), b) medium (matrix reasoning, working memory), and c) low (attention problems, anxiety/depression symptoms) effect size phenotypes. The performance was evaluated in a randomly selected held-out sample of size Nheld out=200, which was about 20% of the dataset. The center line shows the median and the error bars show the 2.5th and 97.5th percentiles among 100 repeats of resampling at each training sample size. The dotted line reflects the correlation value required for a significance level of p<0.05. The solid line reflects the ground truth internal validation performance, as determined by a model made in the maximum training size and evaluated in the held-out sample. Similar results were observed for the ABCD, HCPD, and PNC datasets (Figures S2–4) and for mean absolute error as an evaluation metric (Figures S5–8). P-values were calculated with a one-sided test of significance of correlations. Multiple comparisons correction was not performed because each result simulates a separate study. BMIZ: age- and sex-adjusted body mass index; HBN: Healthy Brain Network.

Furthermore, we compared between raw and scaled scores for working memory and matrix reasoning (Table S3). Raw scores will be used as the primary results throughout the remainder of this work because scaled scores were not available in PNC.

2.4. External validation performance

Using the aforementioned pipeline, we performed external validation, where a ridge regression model was trained in one dataset and evaluated in another. Ground truth performances for each dataset and phenotype—evaluated using the full training and external dataset sizes—varied from non-predictive to strong (Table S4; also labeled in all figures). We observed significant predictions in all twelve external validation models for age and BMIZ, eleven models for matrix reasoning, nine models for working memory, four models for attention problems, and five models for anxiety/depression (Table S4). Along with categorizing each phenotype as high, medium, or low effect size, we also classified each specific combination of training dataset, external dataset, and phenotype as high (Pearson’s rground truth>0.4), medium (0.15<rground truth<0.4), or low effect size (rground truth<0.15) based on their ground truth prediction performance (Table S4).

Notably, external validation was sometimes successful in one direction but not the other. For instance, matrix reasoning was predicted at r(417)=0.329 (p<0.001) when training in ABCD and testing in HCPD, but r(7844)=0.053 (p<0.001) when training in HCPD and testing in ABCD. This could be due to dataset shift in the distribution of phenotypes, as many phenotypes had statistically significant differences across datasets (Table S6; Figure S9). Additionally, a greater statistical difference between the phenotypes of two datasets was associated with greater differences in model performance when reversing the training and external datasets (Figure S10). External validation often occurs across datasets with different characteristics, which adds to the complexity of statistical power calculations.

Furthermore, the variability in prediction performance was greater as external sample size increased (see 95% CI in Figure 2; Figures S11–13). Small training sizes predicting high and medium effect size phenotypes exhibited higher variability in performance (Figure 2; Figures S11–13) and underestimation of the ground truth (Figures S18–21). When using MAE as an evaluation metric rather than Pearson’s r, variability in performance was still greater with small external sample sizes, and small training sample sizes exhibited higher variability and worse performance (i.e., higher MAE). However, the effects were less pronounced (Figures S14–17 for 95% CI; Figures S22–25 for median performance), particularly in ABCD. Overall, these results highlighted the nuances of external validation. Factors such as effect size, similarity between datasets, training sample size, and external sample size all affect prediction performance.

Figure 2. 95% confidence intervals of external validation performance, training in HBN.

Figure 2.

95% confidence intervals of external validation performance for a) high (age, body mass index), b) medium (matrix reasoning, working memory), and c) low (attention problems, anxiety/depression symptoms) effect size phenotypes are shown across training sample sizes (color) and external sample sizes (x-axis) when training in HBN and externally validating in ABCD, HCPD, and PNC. The dashed line represents the ground truth r, as determined by using full training and external samples. Similar results were observed when training in ABCD, HCPD, and PNC datasets (Figures S11–13), as well as for mean absolute error as an evaluation metric (Figures S14–S17). In certain cases, points for lower training sample sizes (darker colors) are not visible due to overlap with points for higher training sample sizes (lighter colors). P-values were calculated with a one-sided test of significance of correlations. Multiple comparisons correction was not performed because each result simulates a separate study. BMIZ: age- and sex-adjusted body mass index; HBN: Healthy Brain Network; ABCD: Adolescent Brain Cognitive Development; HCPD: Human Connectome Project Development; PNC: Philadelphia Neurodevelopmental Cohort.

2.5. Power and false positive rate for external validation

The fraction of significant simulation results (p<0.05; one-tailed significance test for correlations r>0) was calculated for each combination of training dataset, external dataset, training sample size, external sample size, and phenotype. For predictions with a significant ground truth, the proportion was labeled “Power.” For predictions with a nonsignificant ground truth, this proportion was labeled “False positive rate,” which is the same as Type 1 error rate (Figure 3).

Figure 3. Power and false positive rate of external validation, training in HBN.

Figure 3.

The fraction of significant simulations as a function of training sample size (color) and external sample size (x-axis) for external validation is shown training in HBN and testing in ABCD, HCPD, or PNC for prediction of a) high (age, body mass index), b) medium (matrix reasoning, working memory), and c) low (attention problems, anxiety/depression symptoms) effect size phenotypes. Nonsignificant ground truth effects are labeled as false positive rate (FPR). Significant ground truth effects are labeled as power, and the black lines represent theoretical power assuming a known ground truth performance. Similar results were observed for the ABCD, HCPD, and PNC datasets (Figures S26–28) and when using mean absolute error as an evaluation metric (Figures S29–32). P-values were calculated with a one-sided test of significance of correlations. Multiple comparisons correction was not performed because each result simulates a separate study. FPR: false positive rate; BMIz: age- and sex-adjusted body mass index; HBN: Healthy Brain Network; ABCD: Adolescent Brain Cognitive Development; HCPD: Human Connectome Project Development; PNC: Philadelphia Neurodevelopmental Cohort.

In all datasets, external validation power was affected by both the training and external sample sizes (Figure 3; Figures S26–S28). Higher power was achieved with larger training sample sizes and larger external sample sizes. Results were similar when using MAE as an evaluation metric (Figures S29–S32), though some inconsistencies may be due to limiting significance testing to 500 permutations for computational feasibility.

Furthermore, we compared the simulated power to theoretical power curves20 for one-tailed correlations (p<0.05; see further details in 4.6 Power calculation).

power(rgroundtruth,Nexternal)=1-F(tanh-1(rgroundtruth)*Nexternal-3) (Eq. 1)

where F is the standard normal cumulative distribution function, rground truth is the ground truth external validation prediction performance from the full training and test datasets, and Nexternal is the external sample size. The external validation power closely followed the theoretical curve for power of correlations based on external sample size (Figure 3; Figures S26–28; see black lines). Unlike traditional power calculations, which assume that only one sample is used, external validation of predictive models relies on both the training and external sample size. Whereas power is by definition a direct function of the external sample size (Equation 1), we also observed a strong, though indirect, contribution of training sample size to statistical power (Figure 3; Figures S26–28). Lower training sample sizes decreased the power for a given external sample size.

False positive rate, which we analyzed in cases where the ground truth effect was nonsignificant, was highest for large external samples and small training samples (Figure 3; Figures S26–S28 for additional datasets; Figures S29–32 for MAE). At large external sample sizes, effects were significant despite very small effect sizes. Thus, with the high variability of models at a small training sample size, there was a risk of fitting a “lucky” model, leading to false positives.

After categorizing each combination of training dataset, external dataset, and phenotype as a high, medium, or low effect size prediction (Table S4), we found that high effect size predictions achieved adequate power (>80%) with training and external sample sizes of a few hundred individuals (Figure 4). Medium effect size predictions required training and external sample sizes in the several hundreds to achieve >80% power, and low effect size predictions achieved >80% power only with hundreds to thousands of training and external samples. These findings suggest that strong effects, such as age, can be robustly detected in small samples.

Figure 4. Power contour maps as a function of training and external sample sizes across HBN, ABCD, HCPD, and PNC.

Figure 4.

Each prediction—or combination of training dataset, external dataset, and phenotype—was categorized as a high effect size (Pearson’s rground truth>0.4), medium effect size (0.15<rground truth<0.4), or low effect size (rground truth<0.15) prediction based on its ground truth prediction performance (Table S4). For nonsignificant ground truth effects, a contour map of the false positive rate is shown. These plots were generated with Plotly, and portions of the contours are not covered by data but were filled in with smoothing. FPR: false positive rate; % Sig.: percentage of simulations that were significant.

We also investigated the simulated power for the median sample sizes based on our literature review. Among the sample sizes we evaluated, the training sample size closest to the median was N=137 and the external sample size closest to the median was N=108. For these sample sizes, the median power was 99.67% (range 58.62–100.00%) for high effect size predictions, 49.04% (range 13.31–93.36%) for medium effect size predictions, and 9.38% (range 5.74–33.88%) for low effect size predictions. Additional results at sample sizes comparable to the 25th and 75th percentiles in the field are available in Table S7. Particularly for low and medium effect sizes, many external validation studies in the field appear to fall short of the typical 80% power standard.

2.6. Effect size inflation for external validation

Underpowered studies often lead to false negatives. For example, a study with 40% power has a false negative rate of 60%. Relatedly, effect size inflation, which occurs when the reported performance exceeds the ground truth, is another consequence of underpowered studies. In short, when a test sample is very small, a large effect is required to achieve significance. Thus, reported results that are significant in small, underpowered samples are often inflated relative to the ground truth3,5,29.

Among significant results, we computed the median effect size inflation (or deflation) relative to the ground truth (Figure 5; Figures S33–35). Effect size inflation was most prevalent for low effect size phenotypes and small external sample sizes. For medium and high effect size phenotypes, effect size inflation was prevalent at small external sample sizes. Notably, small training sample sizes demonstrated effect size deflation for medium and high effect size phenotypes, where the performance was lower than the ground truth. Higher MAE (worse performance) was similarly observed with small training samples, and decreased MAE (better performance) was observed at small external sample sizes, particularly for low effect size phenotypes (Figures S36–39).

Figure 5. Effect size inflation or deflation of external validation predictions, training in HBN.

Figure 5.

Median effect size inflation is shown for external validation predictions as a function of training sample size (color) and external sample size (x-axis), training in HBN and testing in ABCD, HCPD, or PNC for prediction of a) high (age, body mass index), b) medium (matrix reasoning, working memory), and c) low (attention problems, anxiety/depression symptoms) effect size phenotypes. Δr (y-axis) represents the median difference between the observed, significant external validation performance and the ground truth performance. The dashed horizontal line shows Δr=0, which represents the line between inflation (Δr>0) and deflation (Δr<0). Similar results were observed for the ABCD, HCPD, and PNC datasets (Figures S33–35) and when using mean absolute error as an evaluation metric (Figures S36–39). P-values were calculated with a one-sided test of significance of correlations. Multiple comparisons correction was not performed because each result simulates a separate study. BMIz: age- and sex-adjusted body mass index; HBN: Healthy Brain Network; ABCD: Adolescent Brain Cognitive Development; HCPD: Human Connectome Project Development; PNC: Philadelphia Neurodevelopmental Cohort.

We next calculated effect size inflation across all high, medium, and low effect size predictions (Figure 6). We found that effect size inflation in medium and low effect size predictions primarily depended on the external sample size (Figure 6). Inflation is a consequence of low power, requiring moderate sample sizes in low-to-medium effect sizes (Figure 4). For high effect size predictions, deflation occurred at low training sample sizes, and inflation was rare (Figure 6).

Figure 6. Effect size inflation contour maps as a function of training and external sample size across HBN, ABCD, HCPD, and PNC.

Figure 6.

Each prediction—or combination of training dataset, external dataset, and phenotype—was categorized as a high effect size (Pearson’s rground truth>0.4), medium effect size (0.15<rground truth<0.4), or low effect size (rground truth<0.15) prediction based on its ground truth prediction performance (Table S4). The colorbar shows the difference in r between significant results and the ground truth as a function of training (y-axis) and external (x-axis) sample size. These plots were generated with Plotly, and portions of the contours are not covered by data but were filled in with smoothing.

Using the sample sizes closest to the median in the field (Ntraining=137, Nexternal=108), the inflation rates ranged from median Δr of −0.29 to −0.04 for high effect size predictions, −0.14 to 0.06 for medium effects, and 0.05 to 0.28 for low effects, where negative inflation represents deflation. Additional results at sample sizes comparable to the 25th and 75th percentiles in the field are available in Table S7. For high effect size predictions, typical sample sizes in the field could underestimate effect sizes, while effect sizes may be overestimated for low-to-medium effect size predictions.

2.7. Relating internal to external validation performance

A key remaining question is how internal and external validation performances are related, and whether a possible relationship can inform future external validation studies. When determining the desired statistical power for an external validation study, the most concerning case would be when rinternal is much greater than rexternal. In this case, one might choose their external sample size for adequate power by using rinternal. However, dataset shift may diminish rexternal and consequently external validation power, possibly leading to false negatives or effect size inflation. Thus, we investigated the proportion of cases where rinternal - rexternal was below various thresholds.

The difference between internal and external performances was highly variable for any given subsample, especially at smaller sample sizes (Figure 7; Figures S40–42). The internal and external performances were not always closely related. For example, BMIZ predictions had relatively poor generalizability to PNC, so rinternal - rexternal was consistently greater than zero. Inversely, BMIZ models from PNC performed better externally than internally, so rinternal - rexternal was negative.

Figure 7. Boxplots of the difference between internal and external performance for each subsample of the training data, training in HBN,

Figure 7.

for a) high (age, body mass index), b) medium (matrix reasoning, working memory), and c) low (attention problems, anxiety/depression symptoms) effect size phenotypes. For each training data size, 100 random subsamples were taken. The model was evaluated for internal performance in a held-out sample of size Nheld out=200, which was about 20% of the dataset. For external performance, the model formed in the training subsample was applied to the full external dataset. Boxplot elements were defined as follows: the center line is the median of the 100 random subsamples; box limits are the upper and lower quartiles; whiskers are 1.5x the interquartile range; points are outliers. The dashed vertical line shows rinternal - rexternal = 0. Similar results were observed for the ABCD, HCPD, and PNC datasets (Figures S40–42). Additionally, we repeated the analyses using mean absolute error as an evaluation metric (Figures S43–46). HBN: Healthy Brain Network; ABCD: Adolescent Brain Cognitive Development; HCPD: Human Connectome Project Development; PNC: Philadelphia Neurodevelopmental Cohort.

At the training size closest to the existing median in the field (Ntraining=137), 85.04% of evaluations across all datasets and phenotypes met the requirement of (rinternal - rexternal<0.2), and 67.57% met the criteria when restricting to (rinternal - rexternal<0.1). Similar effects were observed for the 25th and 75th percentiles of sample size and when considering only predictions with significant internal validation (Table S8).

Moreover, models with significant internal performance generally had better external validation power than models with nonsignificant ground truth performance. The overall power of models with significant internal validation results was 99.06%, 89.40%, and 65.02% for high, medium, and low effect size ground truth predictions, respectively. For models with nonsignificant internal validation the power was 54.98%, 56.30%, and 36.51%, respectively. When instead using MAE as a metric (Figures S43–46), the external validation power was 81.67% for models with significant internal validation performance and 44.11% for models with nonsignificant internal validation performance. Therefore, models that significantly predicted in internal validation also tended to significantly predict in external datasets.

2.8. Analysis in additional datasets

To determine whether our findings generalized beyond developmental resting-state functional connectivity data with participants based in the USA, we performed sensitivity analyses with 1) structural connectomes that were generated from diffusion tensor imaging (DTI) data, 2) datasets outside of the USA, and 3) adult datasets.

For structural connectivity, we predicted age, working memory, and anxiety/depression in three developmental datasets: HBN, HCPD, and the Queensland Twin Adolescent Brain (QTAB) Project30,31. In addition, we predicted age and accuracy across relational and match conditions during a relational processing task32,33 using structural connectivity data from two adult datasets, the Chinese Human Connectome Project (CHCP)34,35 and the Human Connectome Project (HCP)36. We predicted task performance in CHCP and HCP because additional behavioral data were not yet available in CHCP. Notably, QTAB and CHCP are Australian and Chinese datasets, respectively, allowing for the assessment of cross-country external validation.

Across all structural connectivity datasets, we observed similar trends in prediction accuracy, effect size inflation and deflation, and power (Figures S47–S51). We once again categorized all predictions as high, medium, and low effect sizes and recreated the contour plots from Figures 4 and 6 (Figure 8). The results were consistent with our resting-state datasets, suggesting that our conclusions pertaining to power and effect size inflation extend to structural connectivity data.

Figure 8. Power and effect size inflation contour maps in structural connectivity data.

Figure 8.

Each prediction—or combination of training dataset, external dataset, and phenotype—was first categorized as a high effect size (Pearson’s rground truth>0.4), medium effect size (0.15<rground truth<0.4), or low effect size (rground truth<0.15) prediction based on its ground truth prediction performance. a) Power contour maps as a function of training and external sample size across HBN, HCPD, and QTAB structural connectivity data. For nonsignificant ground truth effects, a contour map of the false positive rate is shown. b) Effect size inflation contour maps as a function of training and external sample size across HBN, HCPD, and QTAB structural connectivity data. The colorbar shows the difference in r between significant results and the ground truth as a function of training (y-axis) and external (x-axis) sample size. These plots were generated with Plotly, and portions of the contours are not covered by data but were filled in with smoothing. FPR: false positive rate; % Sig.: percentage of simulations that were significant.

Furthermore, extending the analyses to resting-state functional connectivity in two adult datasets (CHCP and HCP), we predicted age and accuracy across relational and shape conditions during a relational processing task. The results corroborated our results in developmental datasets (Figures S52–S53). Crucially, effect size inflation was most frequent with small external samples, and effect size deflation was most frequent with small training samples. Power was dependent on both training and external dataset sizes.

Differences between internal and external performance were greater across the new datasets (Figures S54–S60). Whereas 85.04% of simulations at the median sample size in the field (Ntraining=137) in the developmental functional connectivity data met the requirement (rinternal - rexternal<0.2), the requirement was only achieved by 66.06% of simulations in developmental structural connectivity data, 46.00% in adult structural connectivity data, and 50.00% in adult functional connectivity data. Notably, in the developmental structural connectivity sample, cross-country predictions (between QTAB and either HBN or HCPD) satisfied this requirement for 64.92% of simulations, though only for 37.83% when QTAB was the external dataset. In addition, internal and external performance differences were large (~r=0.5) in adult datasets for age predictions. The discrepancy could be explained by the relatively small dataset size of CHCP or the difference in age ranges between the datasets (Table S2). Still, models that demonstrated significant internal validation more frequently exhibited significant external validation. External validation power was 84.99% compared to 71.67% for models that had significant versus nonsignificant internal validation, respectively.

2.9. Effect of scan length

All resting-state scans in our primary analyses were of comparable length (Table S11). Given recent evidence that scan length can improve prediction performance37, we varied the scan length of ABCD functional connectivity data (5, 10, 15, or 20 minutes). Increasing scan length improved internal validation (Figure S61), consistent with Ooi et al37. External validation had only minor improvements by using longer training dataset scan lengths (Figure S62) or longer external dataset scan lengths (Figure S63). External power curves were similar when varying the scan lengths of either training (Figure S64) or external data (Figure S65). The difference between rinternal and rexternal was greater when training with longer scans (Figure S66) because increasing scan lengths differentially benefited internal compared to external validation. Yet, little-to-no difference was observed when using longer scans in the external dataset (Figure S67). Overall, although increasing scan lengths improved internal validation performance, our results do not suggest that scan duration will alter power considerations for external validation.

3. Discussion

This work investigated the effects of training and external sample sizes on the external validation of brain-phenotype predictive models. Resampling-based simulations—spanning seven datasets, six phenotypes, and both functional and structural connectivity—suggested that prior external validation studies have relied on sample sizes prone to low power, potentially leading to false negatives or, in the case of significant results, effect size inflation. While traditional power calculations depend on the effect size and a single sample size, external validation presents a unique challenge given the presence of two sample sizes. Our simulation results demonstrated that power depended on both the training and external sample sizes and showed varying relationships by effect size. They highlight that traditional power calculations may be unfit for external validation.

Though external validation only occurs in a minority of neuroimaging prediction studies14, likely, it will become increasingly prevalent as the field addresses ongoing reproducibility challenges. Also, external validation may ameliorate certain ethical issues in machine learning38,39, including bias40–42 and (lack of) trustworthiness43. For bias, evaluating models in external datasets ascertains the robustness and generalizability of brain-phenotype associations in populations with different characteristics44,45. For trustworthiness, external validation ensures that data manipulations are not driving the results43,46. Given the promise of external validation for improving reproducibility, mitigating bias, and increasing trustworthiness, neuroimaging may follow a similar trajectory as genome-wide association studies (GWAS). External replication is now a standard practice for GWAS47,48. Thus, a deeper understanding of statistical power in neuroimaging external validation is necessary.

Well-powered studies minimize the possibility of false negatives or misestimation of effect sizes, which, in turn, promotes the reproducibility and utility of scientific insights2–7. Adequate power has three components: external sample size, training sample size, and effect size.

Statistical power is a direct function of external sample size, as verified by our simulation results. Small external sample sizes were generally underpowered and exhibited false negatives. In addition, low-powered simulations often showed effect size inflation. Intuitively, smaller external dataset sizes require larger effect sizes to achieve significance. Combined with the reporting bias toward significant effects5,49–51, published effects with small test or external datasets may be inflated. Encouraging researchers to publish the results of external validation attempts—regardless of statistical significance—would ameliorate effect size inflation. A more realistic solution is to promote the use of large external dataset sizes, in which effect sizes are unlikely to be inflated. A general guideline is that if a sample is small enough that you would not train a model in it, you likely should not use it as an external dataset. At a minimum, the results should be interpreted with caution due to the potential for false negatives or, in the case of a significant result, effect size inflation. One caveat is that when using large datasets, statistical significance can be achieved with trivial effect sizes. For instance, an effect of r=0.03 with an N=5000 may not be very meaningful, but it has a p-value less than 0.05. However, small effects can still be meaningful and affect policy52,53 or inform our understanding of a more complex characteristic. Instead, reporting and interpreting both the effect size and significance are crucial in understanding brain-phenotype associations in large datasets54,55.

Along with the external sample size, the training sample size plays a crucial role in adequately powering external validation. Large training datasets are needed to avoid overfitting or poor generalizability. Since the training sample size affects the quality of the model and, consequently, the external validation performance, it could be thought of as directly influencing the ground truth performance term in the theoretical power equation. Our simulations indicated that small training sample sizes may lead to false negatives. Moreover, small training samples underestimate the ground truth of large effects, resulting in unreliable effect estimates that decrease external validation performance. Therefore, we recommend using as large of a training sample size as possible to avoid false negatives or underestimation of the ground truth effect size. Furthermore, the combination of small training samples (<100) and large external samples (>500) increased the likelihood of false positives. Though focusing on effect sizes instead of p-values could mitigate this.

In addition to large sample sizes improving power, we showed that higher effect size phenotypes are better-powered and reduce false negatives or effect size inflation. Several complementary approaches may increase the external validation power by increasing the effect size, including increasing the amount of fMRI data per participant37 or designing behavioral measures to be better-suited for prediction. Recent work has suggested that acquiring longer resting-state scans improves prediction performance37 and our results support the conclusion that greater scan duration may increase effect sizes in internal validation. Nevertheless, the benefits of longer scan lengths were diminished in external validation. One possible explanation is that differences between datasets outweighed the reliability benefits provided by longer scans. In addition, models that are more reliable or perform better in a particular dataset do not necessarily generalize better. Future work should comprehensively investigate this matter. Regardless of scan length, the relationships between training sample size, external sample size, effect size, and external validation power remained unchanged in a preliminary analysis in ABCD. Longitudinal or repeated-measures designs have greater power even with smaller sample sizes52, and these may also increase effect sizes by acquiring more data with each participant. In addition, incorporating dimensionality reduction approaches, such as principal component analysis or factor analysis, may increase the effect size by creating a more informative composite score of the construct of interest, thus improving power.

Although we explained possible ways to improve the effect size, there is still no obvious way to accurately estimate the ground truth effect size. If the ground truth effect size for a given external validation brain-phenotype association were known, the required external sample size could be calculated directly using power curves. Unfortunately, perfect knowledge of the ground truth effect size is not feasible for two primary reasons. First, as we demonstrated, the observed effect size depends on the training sample size, so the ground truth for a given phenotype cannot be determined a priori. Second, this would require evaluation of external validation performance prior to performing the study, which is not feasible. Instead, one must rely on either internal validation prediction performance (if the main dataset has already been collected) or published effect sizes, which typically represent internal validation prediction rather than external validation. A decrease in external validation prediction performance compared to internal validation prediction is generally expected due to dataset shift, which is when the training and test populations are mismatched in a way that may degrade performance18,56,57. Based on our results, subtracting Pearson’s r=0.2 from the internal validation or literature correlation values may be a useful heuristic to account for the observed reductions in external prediction performance.

Additional effect size correction may be needed for external datasets that are poorly harmonized with the training set. A mismatch between datasets may come from differences in population characteristics, image acquisition, phenotypic measurements, or brain-phenotype relationships18,19. The results in this work were presented in the presence of several additional dataset shifts, most notably significant differences in the distributions of phenotypes, or differences in the assessments used to obtain the measures. The relationships between training sample size, external sample size, ground truth effect size, power, and effect size inflation/deflation held across all datasets in this work. However, the difference between internal and external performance tended to be larger in the presence of dataset shift. For example, predictive models using structural connectomes from the HBN or HCPD had poor generalization to QTAB, which may reflect cultural (i.e., Australia versus USA) or ascertainment (i.e., twins versus singletons) differences. As another example, predictive models of age had poor generalization to ABCD, likely due to the restricted age range of ABCD (9–11 years) compared to the other datasets. Only two non-USA datasets were used (CHCP, QTAB). The applicability of these results across various populations should be further investigated in future work. Nevertheless, harmonization between datasets and similarity between participants should be heavily considered when powering external validation studies because models may perform differently in participants with different characteristics19,41,58. Reducing dataset shift is another possible avenue to improve effect size. Some instances of dataset shift are unavoidable, but ongoing efforts to improve MR sequence and measurement harmonization, such as the Common Measures for Mental Health Science59, may reduce dataset shift. Still, unharmonized, or even negatively correlated, measures can be used in external validation60,61, such as predicting a clinical measure of attention-deficit/hyperactivity disorder from a sustained attention network despite a negative correlation between the clinical and sustained attention measures60. Finally, dataset shift can be mitigated with large, representative samples57,62. Future efforts should strive to collect data in diverse populations to better assess the generalizability of brain-phenotype models63.

There were several limitations to our study. First, we focused on external validation instead of replication in an independent sample, which entails repeating the entire analysis in an independent dataset. Both are valid strategies to improve reproducibility and replicability, but from a predictive sense, external validation is more common. Second, we only analyzed multivariate brain-phenotype associations, as multivariate patterns are more reliable and are becoming more popular than univariate associations. Third, to evaluate internal validation performance, we used a small held-out sample (as small as Nheld-out=75). This limitation was due to the size of the datasets, but we repeated the evaluation for 100 different random subsamples to reduce the noise. Fourth, all datasets in the main analysis are composed of American youth; however, these cohorts differ in potentially important ways, including geographic region, psychopathology symptoms, and behavioral measurements. Our sensitivity analyses found that the power and effect size inflation results generalize to developmental and adult cohorts in other countries, but the results regarding the difference between internal and external performance may not. The relatively small sample sizes of the QTAB and CHCP datasets may contribute to the lack of generalization. This warrants future investigation in larger, more diverse datasets. Furthermore, although twin structure was accounted for in the internal validation of QTAB, the twin structure of QTAB could cause the differences in external validation performance. Fifth, our initial analysis in ABCD suggested a minimal effect of scan length on external validation performance. But future work should investigate how scan length and reliability could drive differences in external validation.

When selecting a dataset for external validation of a predictive model, one may have few options, depending on the phenotype of interest. If one must use a small training or external dataset in an external validation study, recognizing and explicitly acknowledging the sample size limitations will be crucial for promoting reproducibility. Despite the current reliance of the field on internal validation associations and predictions, external validation will become more widespread. This work provides a starting point for understanding what sample sizes are required to adequately power external validation studies.

4. Methods

4.1. Ethical approval

This study performed secondary data analysis on publicly available datasets. Data collection for these datasets was approved by the relevant ethics review boards for each cohort. Informed consent was obtained by the relevant data collection teams in these public datasets. For minors, a parent/legal guardian provided informed consent, and assent was obtained from the child. Additionally, we have a Yale IRB exemption (HIC: 2000023326) to use public neuroimaging data. This study was not preregistered.

4.2. Literature review of external validation sample sizes

We performed a brief literature review to contextualize the power and external validation results. Using PubMed, we searched for articles with the following keywords to find functional connectivity prediction papers using external validation: (“functional connect*” OR (“fMRI” AND “connect*”)) AND (“predict*”) AND (“external” OR “cross-dataset” OR “across datasets” OR “generaliz*”). In cases where the articles used multiple training or external datasets, we recorded the sample size of the largest one. Articles were restricted to 2022 and 2023, which returned 117 articles as of July 2023. Articles were excluded for lacking external validation, not using fMRI connectivity data, or inadequate reporting details. Ultimately, 27 articles were included in our sample. The median sample size of the training dataset was N=161 (IQR: 100–495), and the median sample size of the external dataset was N=94 (IQR: 39.5–682). An additional analysis by Yeung et al. included papers before 202214, and they found 27 articles using external validation. In this sample, the median sample size of the training dataset was N=87 (IQR: 25–343), and the median sample size of the external dataset was N=137 (IQR: 60–197). In both our dataset and the Yeung et al. dataset combined, the median training sample size was N=129 (IQR: 59.5–371.25), and the median external sample size was N=108 (IQR: 50–281).

4.3. Datasets

Resting-state fMRI data were obtained in four main datasets: the Healthy Brain Network (HBN) Dataset21, the Adolescent Brain Cognitive Development (ABCD) Study22, the Human Connectome Project Development (HCPD) Dataset23,24, and the Philadelphia Neurodevelopmental Cohort (PNC) Dataset25,26. Details about the datasets are presented in Tables S1–2. In brief, the HBN dataset consists of participants aged 5–22 years recruited from four sites near the New York greater metropolitan area (N=1024–1201). The ABCD dataset consists of 9–11-year-olds who underwent fMRI scanning across 21 sites in the United States (N=7846–7996 across phenotypes). The HCPD dataset consists of participants aged 8–22 years who completed fMRI scanning across four sites in the United States (Harvard, UCLA, University of Minnesota, Washington University in St. Louis) (N=419–599). The PNC dataset consists of 8–21-year-olds in the Philadelphia area who received care at the Children’s Hospital of Philadelphia (N=826–1179).

Throughout this work, we predicted age, age- and sex-adjusted body mass index (BMIZ), matrix reasoning, working memory, attention problems, and anxiety/depression symptoms in these four datasets. These measures span a wide range of effect sizes, making them particularly useful for investigating power and effect size inflation. Details about the measures are presented in Table S1 and described below, and summary statistics of these measures in each dataset are presented in Table S2.

Age in months was used across all datasets.

For BMI, we used the BMI z-score based on United States Center for Disease Control (CDC) Growth Charts64. BMI z-scores were computed as follows65:

BMIZ=[BMIM]L-1LS (Eq. 2;65)

where BMI was computed as the weight in kilograms divided by the square of the height in meters, and L, M, and S were obtained from the CDC Growth Charts64 (https://www.cdc.gov/growthcharts/percentile_data_files.htm). To obtain L, M, and S values, ages were rounded to the nearest half month, and participants exceeding the age range of the CDC growth charts were considered the maximum age available (240.5 months). While this approximation could slightly affect results, less than 2% of participants in this study exceeded 240.5 months in age, and the oldest participant was only 277 months. Furthermore, participants were excluded if their modified z-scores for height, weight, or BMI exceeded the CDC cutoffs for extreme values66 (most recent available cutoffs: https://www.cdc.gov/nccdphp/dnpao/growthcharts/resources/sas.htm).

For matrix reasoning, we used the WISC-V67 Matrix Reasoning Total Raw Score in HBN, ABCD, and HCPD for the matrix reasoning measure. In PNC, we used the Penn Matrix Reasoning68,69 Total Raw Score (PMAT_CR, accession code: phv00194834.v2.p2). While we used the Matrix Reasoning Raw Score in the main text, additional results using the Matrix Reasoning Scaled Score in HBN, ABCD, and HCPD are presented in Table S4.

For working memory, we used the NIH Toolbox List Sorting Working Memory Test70 in HBN, ABCD, and HCPD. In PNC, we used the Letter N-back task: Total Correct Responses to 0-Back, 1-Back, and 2-Back Trials71. Results using a Working Memory Scaled Score in HBN, ABCD, and HCPD were also presented in Table S4.

For the attention problems measure, we used the Child Behavior Checklist (CBCL) (Achenbach and Ruffle, 2000) Attention Problems Raw Score in HBN, ABCD, and HCPD. In PNC, we used the Structured Interview for Prodromal Symptoms72: Trouble with Focus and Attention Severity Scale (SIP001, accession code: phv00194672.v2.p2).

For anxiety/depression symptoms, we used the Anxiety/Depression CBCL Syndrome Scale Raw Score73 in HBN, ABCD, and HCPD. In PNC, we used the Anxious-misery factor obtained from exploratory factor analysis by Moore et al.74. This factor is the sum score of 39 questions in the PNC dataset, as detailed in Table S1.

Notably, behavioral measures in HBN, ABCD, HCPD, and PNC were adjusted to be on the same scale (i.e., same possible range of values) across datasets to allow for the prediction and interpretation of mean absolute error (Table S5).

Our primary results used HBN as the training dataset and all other datasets as the external datasets. ABCD was not selected because it has a limited age range (9–11 years) for age predictions. In addition, ABCD is the largest dataset in this study, so using it as an external dataset allows for the evaluation over a wider range of external sample sizes. HCPD was not selected as the primary training dataset due to its smaller size. PNC was not selected as the primary training dataset because its phenotypes primarily used different measures from the other datasets (Table S1). This rationale left HBN as the primary training dataset.

4.4. Preprocessing

Data in the four main developmental datasets were pre-processed using BioImage Suite75 v3.01, as described in our previous work76 (and duplicated as follows). This pre-processing included regression of covariates of no interest from the functional data, including linear and quadratic drifts, mean cerebrospinal fluid signal, mean white matter signal, and mean global signal. Additional motion control was applied by regressing a 24-parameter motion model—which included six rigid body motion parameters, six temporal derivatives, and the square of these terms—from the data. Subsequently, we applied temporal smoothing with a Gaussian filter (approximate cutoff frequency=0.12 Hz) and gray matter masking, as defined in common space77. Then, the Shen 268-node atlas78 was applied to parcellate the denoised data into 268 nodes. Finally, we generated functional connectivity matrices by correlating each time series from pairs of nodes and applying the Fisher transform. In cases where multiple functional connectomes were available, the run with the lowest motion was used. Data were excluded for poor data quality (e.g., artifacts in T1-weighted images, misaligned registrations), missing nodes due to lack of full brain coverage, high motion (>0.2mm mean frame-wise displacement), or missing phenotypic data. After applying these exclusion criteria, 1201, 7996, 599, and 1179 participants remained in HBN, ABCD, HCPD, and PNC, respectively (Table S2).

4.5. Data subsampling

For the internal validation, the main dataset was resampled without replacement and split into two subsets: a group to train predictive models (training group) and a group to evaluate the performance of the predictive models (held-out group). We chose to evaluate internal validation performance using a held-out group instead of k-fold cross-validation because of computational feasibility and consistency in the model evaluation. For consistency in the model evaluation, we wanted the internal performance to depend on the quality of the model and have similar test data across all models. For example, regardless of whether 20 or 1000 participants were used to train a model in HBN, both were evaluated in 200 participants. If 10-fold cross-validation were instead used, then the model with 20 participants would be tested in only 2 participants in each fold, while the model with 1000 participants would be tested in 100 participants in each fold. The held-out group size was selected to be approximately 20% of the dataset size across all phenotypes, which was Nheld-out=200 for HBN, 1600 for ABCD, 100 for HCPD, and 200 for PNC. For the additional datasets, the held-out sample size was 500 for HBN structural connectivity, 100 for HCPD structural connectivity, 100 for QTAB structural connectivity, 75 for CHCP functional and structural connectivity, and 200 for HCP functional and structural connectivity. In datasets with family structure, data were split to ensure that each set of family members was either in the training set or the test set. The training group was randomly subsampled at 25 sample sizes logarithmically spaced from N=20 to N=6396 (N=[20, 25, 32, 41, 52, 67, 85, 108, 137, 174, 221, 281, 358, 455, 578, 735, 935, 1189, 1512, 1923, 2446, 3110, 3955, 5030, 6396]). For external validation, we resampled both the training and external datasets. For each training sample, models were evaluated in random subsets of the external dataset at the sample sizes listed above. These sample sizes were selected to cover a wide range of training and external sample sizes. In addition, the above sample sizes allow us to investigate external validation performance at sample sizes smaller than, equal to, and larger than those common in existing literature.

The resampling procedure was repeated 100 times for the main dataset, and the external dataset was resampled 100 times for each of these repeats. Thus, we performed 10,000 evaluations for each combination of the training dataset, external dataset, phenotype, training sample size, and external sample size. In total, this paper included over 900 million model evaluations. A summary of the resampling procedure is presented in Figure S1.

4.6. Regression models

We referred to two types of results throughout this work: 1) internal validation and 2) external validation. For internal validation, we evaluated performance in a randomly selected held-out sample. Covariates (self-reported sex, motion, and age, if applicable) were first regressed from the training data. Then, a ridge regression model was trained using the top 1% of features most correlated with the outcome of interest28. Five-fold cross-validation was performed within the training set to select the L2 regularization parameter 𝛼 (𝛼=10{−3,−2,−1,0,1,2,3}). Afterward, the entire pipeline was applied to the held-out test data. Crucially, the covariate regression parameters and features obtained from the training set were applied to the test set to avoid data leakage76,79,80. For external validation, we used the same models as above. However, the model was evaluated with the external dataset instead of the held-out test data. We used ridge regression instead of a more complex machine learning model because linear models are the most commonly used in the field14, and other complex, nonlinear models do not tend to show performance improvements in functional and structural connectivity81.

Performance was evaluated with Pearson’s correlation r as it is among the most common measures used in neuroimaging predictive studies. For instance, Yeung et al. found that 97 of the 108 investigated studies used Pearson’s correlation as the evaluation metric14.

We additionally evaluated the performance with mean absolute error (MAE) as a metric, since Pearson’s correlation r does not quantify the magnitude of errors82. Since different measures are on different scales, we divided MAE by the range of values. For example, the matrix reasoning scores ranged from 0–32, so we divided the MAE by 32. Because the anxiety/depression scores ranged from 0–26, we divided the MAE by 26.

We will define the “ground truth” prediction performance as follows. For internal validation predictions, the ground truth refers to the performance in the total sample averaged over 100 random iterations of nested 5-fold cross-validation. The ground truth was operationalized for external predictions as the prediction performance when training in the whole primary dataset and testing with the entire external dataset.

4.7. Power calculation

We calculated power for all combinations of training dataset, test dataset, and phenotype that had a significant ground truth effect. Since external validation involves testing a model in an independent dataset, directly converting r to p-values using parametric statistics is appropriate, as opposed to cross-validation, where calculating p-values requires permutation testing83. One-tailed significance testing was used since we only hypothesize that r>0 to achieve significant prediction performance. To calculate power in external validation predictions, we computed the fraction of subsamples that achieved a significant prediction performance, as defined by the field-wide practice of p<0.05.

The null hypothesis was that no positive correlation exists (H0: rground truth<=0; where rground truth is the true correlation). We tested whether there was evidence that the prediction correlation was greater than zero (H1: rground truth>0). To perform parametric statistical testing, we converted correlations with the Fisher arctanh transform20:

C(r)=12ln((1+r)(1-r)) (Eq. 3;20)

where for an observed correlation r found from N observations, C(r) is centered around the true correlation rground truth with variance σ2=1N-320.

For a power analysis, r was the ground truth, rground truth. The relevant test statistic was:

Z=C(rgroundtruth)Nexternal-3 (Eq. 4;20)

The test statistic was then converted to theoretical power using the cumulative distribution function of the standard normal distribution, F. Power was calculated assuming a one-tailed 𝛼=0.05. This resulted in the final equation as presented in Equation 1 in 2.5 Power and false positive rate for external validation predictions, which is restated below:

power((rgroundtruth,Nexternal)=1-F(tanh-1(rgroundtruth)*Nexternal-3) (Eq. 1)

Notably, only the external sample size, Nexternal, is a term in the theoretical power calculation. The training sample size, Ntraining, only indirectly affects power calculations. An alternative way to think of this is that Ntraining modifies the quality of the model and thus the ground truth correlation rground truth, which in turn influences power.

For MAE as an evaluation metric, no theoretical power equation was available because MAE relies on permutation testing to determine the significance. For internal validation, 10000 permutations were used to determine one-tailed significance at 𝛼=0.05. For external validation, we used only 500 permutations for computational feasibility.

4.8. False positive rate

We computed the false positive rate for all external validation predictions that did not have a significant ground truth effect. The false positive rate is the proportion of simulated examples for which the observed effect is significant (p<0.05) despite a ground truth effect that is not significant.

4.9. Performance effect size inflation

Another important consideration is the inflation of reported effect sizes, as documented by numerous previous studies2,3,5,6. Low power reduces the likelihood of detecting an actual effect and leads to the inflation of reported significant effects3,5. In other words, if significant results are reported in a low-powered sample, such as due to a small sample size, then the effect size is likely inflated.

We first examined all results that achieved significant prediction performance to approximate the inflation of effect sizes because this aligns with publication bias surrounding positive results. We agree with other works that nonsignificant results should still be published5,84, but the current reality of the field is that most published results are significant predictions. Among the significant prediction results, we compared the effect size to the ground truth effect size and calculated the inflation relative to the ground truth (Δr=rreported - rground truth).

4.10. Relating internal and external performance

After looking at internal validation performance and external validation performance separately, we compared the two to determine whether internal validation performance could inform how well a model would generalize. We calculated the difference between the internal validation held-out performance (rinternal) and the performance in the full external dataset (rexternal) for each training sample. We then assessed the performance difference across 100 iterations of random subsampling for each training dataset size.

4.11. Structural connectivity datasets

Additional structural connectivity datasets included three developmental datasets: HBN, HCPD, and the Queensland Twin Adolescent Brain (QTAB) Project30,31; and two adult datasets: the Chinese Human Connectome Project (CHCP)34,35 and the Human Connectome Project (HCP)36. Behavioral information for these datasets is available in Tables S9–10, and diffusion imaging acquisition parameters are available in Table S12. Certain text about the structural connectivity processing is copied from https://brain.labsolver.org/ to encourage consistency and reproducibility.

For the developmental datasets (HBN, HCPD, and QTAB), FIB files were downloaded from https://brain.labsolver.org/, and several extra correction steps were taken. The susceptibility artifact was estimated using reversed phase-encoding b0 by TOPUP from the Tiny FSL package (http://github.com/frankyeh/TinyFSL), a re-compilied version of FSL TOPUP (FMRIB, Oxford) with multi-thread support. The correction was conducted through the integrated interface in DSI Studio (https://dsi-studio.labsolver.org/). The diffusion MRI data were rotated to align with the AC-PC line. The accuracy of b-table orientation was examined by comparing fiber orientations with those of a population-averaged template85.

For the adult datasets (CHCP, HCP), diffusion data were downloaded after processing with the HCP minimal preprocessing pipeline35 v3.4.0.

For all datasets, the diffusion data were reconstructed using generalized q-sampling imaging86 with a diffusion sampling length ratio of 1.25. For the developmental datasets, the tensor metrics were calculated and analyzed using the resource allocation (TG-CIS200026) at Extreme Science and Engineering Discovery Environment (XSEDE) resources87.

As stated in previous works and duplicated here for consistency88,89, whole-brain fiber tracking was conducted with DSI-studio with quantitative anisotropy (QA) as the termination threshold. QA values were computed in each voxel in their native space for each subject and then were used to warp the brain to the template in Montreal Neurological Institute (MNI) space using the statistical parametric mapping (SPM) nonlinear registration algorithm. Once in MNI space, spin density functions were again reconstructed with a mean diffusion distance of 1.25 mm using three fiber orientations per voxel. Fiber tracking was performed in DSI studio with an angular cutoff of 60 degrees, step size of 1.0 mm, minimum length of 30 mm, spin density function smoothing of 0.0, maximum length of 300 mm, and a QA threshold determined by DWI signal. Deterministic fiber tracking using a modified FACT algorithm90 was performed until 10,000,000 streamlines were reconstructed for each individual. We used the Shen atlas78 in MNI space with 268 nodes to construct individual structural connectomes: the pairwise connectivity strength was calculated as the average QA value of each fiber connecting the two end regions and thresholded at 0.001, which results in a 268×268 adjacency matrix for each participant.

For structural connectivity models in the developmental data, we predicted age, working memory, and anxiety/depression symptoms. For HBN and HCPD, the measures were previously detailed. For QTAB, we used the same measures for age (age in months) and working memory (NIH Toolbox List Sorting Working Memory Test70), but used Spence Children’s Anxiety Scale91 Score for anxiety/depression symptoms (Table S1). Summary statistics of these phenotypes are presented in Table S9.

For structural connectivity models in the adult data, we predicted age and accuracy across relational and match conditions during a relational processing task32,33. We predicted task performance in CHCP and HCP because additional behavioral data were not yet available in CHCP. Summary statistics of these phenotypes are presented in Table S10.

4.12. Adult functional connectivity datasets

For the CHCP and HCP functional data, data were downloaded from the HCP minimal preprocessing pipeline35 v3.4.0. Using the minimally preprocessed data as a starting point, the same steps described in 4.3 Preprocessing were applied.

We predicted age and accuracy across relational and shape conditions during a relational processing task32,33. Summary statistics of these phenotypes are presented in Table S10.

4.13. Effect of scan length

In the ABCD dataset, participants were first restricted to those with four resting-state fMRI scans meeting our inclusion criteria. The resulting sample size was N=3946. Among these participants, either one (5 minutes), two (10 minutes), three (15 minutes), or four (20 minutes) scans were used. Connectomes were formed by averaging across connectomes from each scan.

Supplementary Material

Supplemental text and figures

Acknowledgements

This study was supported by the National Institute of Mental Health grant R01MH121095 (obtained by D.S.). M.R. was supported by the National Science Foundation Graduate Research Fellowship under grant DGE2139841. L.T. was supported by the Gruber Science Fellowship. C.C.C. was supported by the Gruber Science Fellowship and the National Science Foundation Graduate Research Fellowship under grant DGE2139841. B.A. was supported by NIH Medical Scientist Training Program Training Grant T32GM136651. S.N. was supported by the National Institute of Mental Health under grant R00MH130894. The funders had no role in study design, data collection and analysis, decision to publish or preparation of the manuscript. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect those of the funding agencies.

The Healthy Brain Network (http://www.healthybrainnetwork.org) and its initiatives are supported by philanthropic contributions from the following individuals, foundations and organizations: Margaret Bilotti; Brooklyn Nets; Agapi and Bruce Burkard; James Chang; Phyllis Green and Randolph Cōwen; Grieve Family Fund; Susan Miller and Byron Grote; Sarah and Geoff Gund; George Hall; Jonathan M. Harris Family Foundation; Joseph P. Healey; The Hearst Foundations; Eve and Ross Jaffe; Howard & Irene Levine Family Foundation; Rachael and Marshall Levine; George and Nitzia Logothetis; Christine and Richard Mack; Julie Minskoff; Valerie Mnuchin; Morgan Stanley Foundation; Amy and John Phelan; Roberts Family Foundation; Jim and Linda Robinson Foundation, Inc.; The Schaps Family; Zibby Schwarzman; Abigail Pogrebin and David Shapiro; Stavros Niarchos Foundation; Preethi Krishna and Ram Sundaram; Amy and John Weinberg; Donors to the 2013 Child Advocacy Award Dinner Auction; Donors to the 2012 Brant Art Auction. Additional data used in the preparation of this article were obtained from the Adolescent Brain Cognitive Development (ABCD) Study (https://abcdstudy.org), held in the NIMH Data Archive (NDA). This is a multisite, longitudinal study designed to recruit more than 10,000 children age 9-11 and follow them over 10 years into early adulthood. The ABCD Study® is supported by the National Institutes of Health and additional federal partners under award numbers U01DA041048, U01DA050989, U01DA051016, U01DA041022, U01DA051018, U01DA051037, U01DA050987, U01DA041174, U01DA041106, U01DA041117, U01DA041028, U01DA041134, U01DA050988, U01DA051039, U01DA041156, U01DA041025, U01DA041120, U01DA051038, U01DA041148, U01DA041093, U01DA041089, U24DA041123, U24DA041147. A full list of supporters is available at https://abcdstudy.org/federal-partners.html. A listing of participating sites and a complete listing of the study investigators can be found at https://abcdstudy.org/consortium_members/. ABCD consortium investigators designed and implemented the study and/or provided data but did not necessarily participate in the analysis or writing of this report. This manuscript reflects the views of the authors and may not reflect the opinions or views of the NIH or ABCD consortium investigators. The Human Connectome Project Development data was supported by the National Institute Of Mental Health of the National Institutes of Health under Award Number U01MH109589 and by funds provided by the McDonnell Center for Systems Neuroscience at Washington University in St. Louis. The HCP-Development 2.0 Release data used in this report came from DOI: 10.15154/1520708. Additional data were provided by the PNC (principal investigators Hakon Hakonarson and Raquel Gur; phs000607.v1.p1). Support for the collection of these datasets was provided by grant RC2MH089983 awarded to Raquel Gur and RC2MH089924 awarded to Hakon Hakonarson. This research has been conducted in part using the QTAB project resource, which was funded by the National Health and Medical Research Council (NHMRC), Australia (Project Grant ID: 1078756 to MJW), the Queensland Brain Institute, University of Queensland, and with the assistance of resources from the Centre for Advanced Imaging and the Queensland Cyber Infrastructure Foundation, University of Queensland. Additional data were provided in part by the Chinese Human Connectome Project (CHCP, PI: Jia-Hong Gao) funded by the Beijing Municipal Science & Technology Commission, Chinese Institute for Brain Research (Beijing), National Natural Science Foundation of China, and the Ministry of Science and Technology of China. Data were provided in part by the HCP, WUMinn Consortium (principal investigators David Van Essen and Kamil Ugurbil; 1U54MH091657) funded by the 16 National Institutes of Health institutes and centers that support the National Institutes of Health Blueprint for Neuroscience Research; and by the McDonnell Center for Systems Neuroscience at Washington University.

Footnotes

Competing interests

The authors declare no competing interests.

Data availability

These following datasets are publicly available but require permission to access. Relevant instructions for data access are available at each individual link below.

The main datasets are available through the Healthy Brain Network Dataset21 (International Neuroimaging Data-sharing Initiative, https://fcon_1000.projects.nitrc.org/indi/cmi_healthy_brain_network/), the Adolescent Brain Cognitive Development Study22 (NIMH Data Archive, https://nda.nih.gov/abcd), the Human Connectome Project Development Dataset23,24 (NIMH Data Archive, https://www.humanconnectome.org/study/hcp-lifespan-development/data-releases), and the Philadelphia Neurodevelopmental Cohort Dataset25,26 (dbGaP Study Accession: phs000607.v3.p2,, https://www.ncbi.nlm.nih.gov/projects/gap/cgi-bin/study.cgi?study_id=phs000607.v3.p2).

For the additional datasets, the Queensland Twin Adolescent Brain Project dataset30 is available via OpenNeuro (https://openneuro.org/datasets/ds004146/versions/1.0.4) and the non-imaging phenotypes are available via Zenodo (https://zenodo.org/records/7765506). Preprocessed structural connectivity data were downloaded in the developmental datasets from https://brain.labsolver.org/hbn.html (HBN), https://brain.labsolver.org/hcp_d.html (HCPD), and https://brain.labsolver.org/greesland_twin.html (QTAB). The Chinese Human Connectome Project dataset36 is available via the Science Data Bank: https://www.scidb.cn/en/detail?dataSetId=f512d085f3d3452a9b14689e9997ca94. The Human Connectome Project34 is available via the ConnectomeDB database (https://db.humanconnectome.org).

Code availability

We used Python 3.11.3 to conduct the analyses. Code for the analyses is available on GitHub (https://github.com/mattrosenblatt7/external_validation_power) and Zenodo (https://zenodo.org/records/10975870). Preprocessing was carried out using Bioimage Suite v3.01, which is freely available (https://medicine.yale.edu/bioimaging/suite/). Additional preprocessing was performed with the Human Connectome Project minimal preprocessing pipeline v3.4.0 (https://github.com/Washington-University/HCPpipelines/releases).

References

  • 1.Horien C et al. A hitchhiker’s guide to working with large, open-source neuroimaging datasets. Nat Hum Behav 5, 185–193 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Marek S et al. Reproducible brain-wide association studies require thousands of individuals. Nature 605, E11 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Yarkoni T. Big Correlations in Little Studies: Inflated fMRI Correlations Reflect Low Statistical Power—Commentary on Vul et al. (2009). Perspect. Psychol. Sci. 4, 294–298 (2009). [DOI] [PubMed] [Google Scholar]
  • 4.Yarkoni T & Braver TS. Cognitive Neuroscience Approaches to Individual Differences in Working Memory and Executive Control: Conceptual and Methodological Issues. in Handbook of Individual Differences in Cognition: Attention, Memory, and Executive Control (eds. Gruszka A, Matthews G & Szymura B) 87–107 (Springer; New York, New York, NY, 2010). [Google Scholar]
  • 5.Button KS et al. Power failure: why small sample size undermines the reliability of neuroscience. Nat. Rev. Neurosci. 14, 365–376 (2013). [DOI] [PubMed] [Google Scholar]
  • 6.Cremers HR, Wager TD & Yarkoni T. The relation between statistical power and inference in fMRI. PLoS One 12, e0184923 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Liu S, Abdellaoui A, Verweij KJH & van Wingen GA. Replicable brain–phenotype associations require large-scale neuroimaging data. Nature Human Behaviour 7, 1344–1356 (2023). [DOI] [PubMed] [Google Scholar]
  • 8.Klapwijk ET, van den Bos W, Tamnes CK, Raschle NM & Mills KL. Opportunities for increased reproducibility and replicability of developmental neuroimaging. Dev. Cogn. Neurosci. 47, 100902 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Rosenberg MD & Finn ES. How to establish robust brain–behavior relationships without thousands of individuals. Nat. Neurosci. 25, 835–837 (2022). [DOI] [PubMed] [Google Scholar]
  • 10.Spisak T, Bingel U & Wager TD. Multivariate BWAS can be replicable with moderate sample sizes. Nature vol. 615 E4–E7 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Goltermann J et al. Cross-validation for the estimation of effect size generalizability in mass-univariate brain-wide association studies. bioRxiv 2023.03.29.534696 (2023) doi: 10.1101/2023.03.29.534696. [DOI] [Google Scholar]
  • 12.Makowski C et al. Reports of the death of brain-behavior associations have been greatly exaggerated. bioRxiv (2023) doi: 10.1101/2023.06.16.545340. [DOI] [Google Scholar]
  • 13.Genon S, Eickhoff SB & Kharabian S. Linking interindividual variability in brain structure to behaviour. Nat. Rev. Neurosci. 23, 307–318 (2022). [DOI] [PubMed] [Google Scholar]
  • 14.Yeung AWK, More S, Wu J & Eickhoff SB. Reporting details of neuroimaging studies on individual traits prediction: A literature survey. Neuroimage 256, 119275 (2022). [DOI] [PubMed] [Google Scholar]
  • 15.Rosenberg MD, Casey BJ & Holmes AJ. Prediction complements explanation in understanding the developing brain. Nat. Commun. 9, 589 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Woo C-W, Chang LJ, Lindquist MA & Wager TD. Building better biomarkers: brain models in translational neuroimaging. Nat. Neurosci. 20, 365–377 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Wu J et al. Cross-cohort replicability and generalizability of connectivity-based psychometric prediction patterns. Neuroimage 262, 119569 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Dockès J, Varoquaux G & Poline J-B. Preventing dataset shift from breaking machine-learning biomarkers. Gigascience 10, (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Kopal J, Uddin LQ & Bzdok D. The end game: respecting major sources of population diversity. Nat. Methods 20, 1122–1128 (2023). [DOI] [PubMed] [Google Scholar]
  • 20.Lachin JM. Introduction to sample size determination and power analysis for clinical trials. Control. Clin. Trials 2, 93–113 (1981). [DOI] [PubMed] [Google Scholar]
  • 21.Alexander LM et al. An open resource for transdiagnostic research in pediatric mental health and learning disorders. Sci Data 4, 170181 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Casey BJ et al. The Adolescent Brain Cognitive Development (ABCD) study: Imaging acquisition across 21 sites. Dev. Cogn. Neurosci. 32, 43–54 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Somerville LH et al. The Lifespan Human Connectome Project in Development: A large-scale study of brain connectivity development in 5–21 year olds. Neuroimage 183, 456–468 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Harms MP et al. Extending the Human Connectome Project across ages: Imaging protocols for the Lifespan Development and Aging projects. Neuroimage 183, 972–984 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Satterthwaite TD et al. Neuroimaging of the Philadelphia neurodevelopmental cohort. Neuroimage 86, 544–553 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Satterthwaite TD et al. The Philadelphia Neurodevelopmental Cohort: A publicly available resource for the study of normal and abnormal brain development in youth. Neuroimage 124, 1115–1119 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Cohen J. Statistical Power Analysis for the Behavioral Sciences. 1096 (Routledge, 1988). [Google Scholar]
  • 28.Pedregosa F et al. Scikit-learn: Machine learning in Python. The Journal of machine Learning research 12, 2825–2830 (2011). [Google Scholar]
  • 29.Ioannidis JPA. Why most discovered true associations are inflated. Epidemiology 19, 640–648 (2008). [DOI] [PubMed] [Google Scholar]
  • 30.Strike LT et al. The Queensland Twin Adolescent Brain Project, a longitudinal study of adolescent brain development. Sci Data 10, 195 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Strike LT et al. Queensland Twin Adolescent Brain (QTAB). OpenNeuro 10.18112/openneuro.ds004148.v1.0.1 (2022). [DOI] [Google Scholar]
  • 32.Barch DM et al. Function in the human connectome: task-fMRI and individual differences in behavior. Neuroimage 80, 169–189 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Smith R, Keramatian K & Christoff K. Localizing the rostrolateral prefrontal cortex at the individual level. Neuroimage 36, 1387–1396 (2007). [DOI] [PubMed] [Google Scholar]
  • 34.Van Essen DC et al. The WU-Minn Human Connectome Project: an overview. Neuroimage 80, 62–79 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Glasser MF et al. The minimal preprocessing pipelines for the Human Connectome Project. Neuroimage 80, 105–124 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Ge J et al. Increasing diversity in connectomics with the Chinese Human Connectome Project. Nat. Neurosci. 26, 163–172 (2023). [DOI] [PubMed] [Google Scholar]
  • 37.Ooi LQR et al. MRI economics: Balancing sample size and scan duration in brain wide association studies. bioRxiv (2024) doi: 10.1101/2024.02.16.580448. [DOI] [Google Scholar]
  • 38.Chandler C, Foltz PW & Elvevåg B. Using Machine Learning in Psychiatry: The Need to Establish a Framework That Nurtures Trustworthiness. Schizophr. Bull. 46, 11–14 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Mitchell M et al. Model Cards for Model Reporting. in Proceedings of the Conference on Fairness, Accountability, and Transparency 220–229 (Association for Computing Machinery, New York, NY, USA, 2019). [Google Scholar]
  • 40.Benkarim O et al. The Cost of Untracked Diversity in Brain-Imaging Prediction. bioRxiv 2021.06.16.448764 (2021) doi: 10.1101/2021.06.16.448764. [DOI] [Google Scholar]
  • 41.Greene AS et al. Brain–phenotype models fail for individuals who defy sample stereotypes. Nature vol. 609 109–118 Preprint at 10.1038/s41586-022-05118-w (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Li J et al. Cross-ethnicity/race generalization failure of behavioral prediction from resting-state functional connectivity. Sci Adv 8, eabj1812 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Rosenblatt M et al. Connectome-based machine learning models are vulnerable to subtle data manipulations. Patterns (2023) doi: 10.1016/j.patter.2023.100756. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Mehrabi N, Morstatter F, Saxena N, Lerman K & Galstyan A. A Survey on Bias and Fairness in Machine Learning. ACM Comput. Surv. 54, 1–35 (2021). [Google Scholar]
  • 45.Tejavibulya L et al. Predicting the future of neuroimaging predictive models in mental health. Mol. Psychiatry 27, 3129–3137 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Finlayson SG et al. Adversarial attacks on medical machine learning. Science 363, 1287–1289 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Uffelmann E et al. Genome-wide association studies. Nature Reviews Methods Primers 1, 1–21 (2021). [Google Scholar]
  • 48.Poldrack RA et al. Scanning the horizon: towards transparent and reproducible neuroimaging research. Nat. Rev. Neurosci. 18, 115–126 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Open Science Collaboration. Estimating the reproducibility of psychological science. Science 349, aac4716 (2015). [DOI] [PubMed] [Google Scholar]
  • 50.Munafò MR, Stothart G & Flint J. Bias in genetic association studies and impact factor. Mol. Psychiatry 14, 119–120 (2009). [DOI] [PubMed] [Google Scholar]
  • 51.Greenwald AG. Consequences of prejudice against the null hypothesis. Psychol. Bull. 82, 1–20 (1975). [Google Scholar]
  • 52.Gratton C, Nelson SM & Gordon EM. Brain-behavior correlations: Two paths toward reliability. Neuron vol. 110 1446–1449 (2022). [DOI] [PubMed] [Google Scholar]
  • 53.Searle AK et al. Tracing the long-term legacy of childhood lead exposure: a review of three decades of the port Pirie cohort study. Neurotoxicology 43, 46–56 (2014). [DOI] [PubMed] [Google Scholar]
  • 54.Cohen J. The earth is round (p < .05). Am. Psychol. 49, 997–1003 (1994). [Google Scholar]
  • 55.Gigerenzer G. Mindless statistics. J. Socio Econ. 33, 587–606 (2004). [Google Scholar]
  • 56.Subbaswamy A & Saria S. From development to deployment: dataset shift, causality, and shift-stable models in health AI. Biostatistics 21, 345–352 (2020). [DOI] [PubMed] [Google Scholar]
  • 57.Finlayson SG et al. The Clinician and Dataset Shift in Artificial Intelligence. N. Engl. J. Med. 385, 283–286 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 58.Larrazabal AJ, Nieto N, Peterson V, Milone DH & Ferrante E. Gender imbalance in medical imaging datasets produces biased classifiers for computer-aided diagnosis. Proc. Natl. Acad. Sci. U. S. A. 117, 12592–12594 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 59.Barch DM et al. Common Measures for National Institute of Mental Health Funded Research. Biol. Psychiatry 79, e91–6 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 60.Rosenberg MD et al. A neuromarker of sustained attention from whole-brain functional connectivity. Nat. Neurosci. 19, 165–171 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 61.Adkinson BD et al. Brain-phenotype predictions can survive across diverse real-world data. bioRxiv (2024) doi: 10.1101/2024.01.23.576916. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 62.Lea Andrew S & Jones David S. Mind the Gap — Machine Learning, Dataset Shift, and History in the Age of Clinical Algorithms. N. Engl. J. Med. 390, 293–295 (2024). [DOI] [PubMed] [Google Scholar]
  • 63.Ricard JA et al. Confronting racially exclusionary practices in the acquisition and analyses of neuroimaging data. Nat. Neurosci. 26, 4–11 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 64.Kuczmarski RJ et al. 2000 CDC Growth Charts for the United States: methods and development. Vital Health Stat. 11 1–190 (2002). [PubMed] [Google Scholar]
  • 65.Cole TJ, Bellizzi MC, Flegal KM & Dietz WH. Establishing a standard definition for child overweight and obesity worldwide: international survey. BMJ 320, 1240–1243 (2000). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 66.Freedman DS et al. Validity of the WHO cutoffs for biologically implausible values of weight, height, and BMI in children and adolescents in NHANES from 1999 through 2012. Am. J. Clin. Nutr. 102, 1000–1006 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 67.Wechsler D. WISC-V: Technical and Interpretive Manual. (NCS Pearson, Incorporated, 2014). [Google Scholar]
  • 68.Bilker WB et al. Development of abbreviated nine-item forms of the Raven’s standard progressive matrices test. Assessment 19, 354–369 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 69.Moore TM, Reise SP, Gur RE, Hakonarson H & Gur RC. Psychometric properties of the Penn Computerized Neurocognitive Battery. Neuropsychology 29, 235–246 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 70.Tulsky DS et al. NIH Toolbox Cognition Battery (NIHTB-CB): list sorting test to measure working memory. J. Int. Neuropsychol. Soc. 20, 599–610 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 71.Gur RC et al. A cognitive neuroscience-based computerized battery for efficient measurement of individual differences: standardization and initial construct validation. J. Neurosci. Methods 187, 254–262 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 72.Miller TJ et al. Prodromal assessment with the structured interview for prodromal syndromes and the scale of prodromal symptoms: predictive validity, interrater reliability, and training to reliability. Schizophr. Bull. 29, 703–715 (2003). [DOI] [PubMed] [Google Scholar]
  • 73.Achenbach TM & Ruffle TM. The Child Behavior Checklist and related forms for assessing behavioral/emotional problems and competencies. Pediatr. Rev. 21, 265–271 (2000). [DOI] [PubMed] [Google Scholar]
  • 74.Moore TM et al. Development of a computerized adaptive screening tool for overall psychopathology (‘p’). J. Psychiatr. Res. 116, 26–33 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 75.Papademetris X et al. BioImage Suite: An integrated medical image analysis suite: An update. Insight J. 2006, 209 (2006). [PMC free article] [PubMed] [Google Scholar]
  • 76.Rosenblatt M, Tejavibulya L, Jiang R, Noble S & Scheinost D. Data leakage inflates prediction performance in connectome-based machine learning models. Nat. Commun. 15, 1829 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 77.Holmes CJ et al. Enhancement of MR images using registration for signal averaging. J. Comput. Assist. Tomogr. 22, 324–333 (1998). [DOI] [PubMed] [Google Scholar]
  • 78.Shen X, Tokoglu F, Papademetris X & Constable RT. Groupwise whole-brain parcellation from resting-state fMRI data for network node identification. Neuroimage 82, 403–415 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 79.Snoek L, Miletić S & Scholte HS. How to control for confounds in decoding analyses of neuroimaging data. Neuroimage 184, 741–760 (2019). [DOI] [PubMed] [Google Scholar]
  • 80.Chyzhyk D, Varoquaux G, Milham M & Thirion B. How to remove or control confounds in predictive models, with applications to brain biomarkers. Gigascience 11, (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 81.Schulz M-A et al. Different scaling of linear models and deep learning in UKBiobank brain images versus machine-learning datasets. Nat. Commun. 11, 4238 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 82.Wu J, Li J, Eickhoff SB, Scheinost D & Genon S. The challenges and prospects of brain-based prediction of behaviour. Nat Hum Behav 7, 1255–1264 (2023). [DOI] [PubMed] [Google Scholar]
  • 83.Shen X et al. Using connectome-based predictive modeling to predict individual behavior from brain connectivity. Nat. Protoc. 12, 506–518 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 84.Dwan K et al. Systematic review of the empirical evidence of study publication bias and outcome reporting bias. PLoS One 3, e3081 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 85.Yeh F-C et al. Population-averaged atlas of the macroscale human structural connectome and its network topology. Neuroimage 178, 57–68 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 86.Yeh F-C, Wedeen VJ & Tseng W-YI. Generalized q-sampling imaging. IEEE Trans. Med. Imaging 29, 1626–1635 (2010). [DOI] [PubMed] [Google Scholar]
  • 87.Towns J et al. XSEDE: Accelerating Scientific Discovery. Comput. Sci. Eng. 16, 62–74 (Sep-Oct 2014). [Google Scholar]
  • 88.Gu S et al. The Energy Landscape of Neurophysiological Activity Implicit in Brain Network Structure. Sci. Rep. 8, 2507 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 89.Sun H et al. Network controllability of structural connectomes in the neonatal brain. Nat. Commun. 14, 5820 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 90.Yeh F-C, Verstynen TD, Wang Y, Fernández-Miranda JC & Tseng W-YI. Deterministic diffusion fiber tracking improved by quantitative anisotropy. PLoS One 8, e80713 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 91.Spence SH, Barrett PM & Turner CM. Psychometric properties of the Spence Children’s Anxiety Scale with young adolescents. J. Anxiety Disord. 17, 605–625 (2003). [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplemental text and figures

Data Availability Statement

These following datasets are publicly available but require permission to access. Relevant instructions for data access are available at each individual link below.

The main datasets are available through the Healthy Brain Network Dataset21 (International Neuroimaging Data-sharing Initiative, https://fcon_1000.projects.nitrc.org/indi/cmi_healthy_brain_network/), the Adolescent Brain Cognitive Development Study22 (NIMH Data Archive, https://nda.nih.gov/abcd), the Human Connectome Project Development Dataset23,24 (NIMH Data Archive, https://www.humanconnectome.org/study/hcp-lifespan-development/data-releases), and the Philadelphia Neurodevelopmental Cohort Dataset25,26 (dbGaP Study Accession: phs000607.v3.p2,, https://www.ncbi.nlm.nih.gov/projects/gap/cgi-bin/study.cgi?study_id=phs000607.v3.p2).

For the additional datasets, the Queensland Twin Adolescent Brain Project dataset30 is available via OpenNeuro (https://openneuro.org/datasets/ds004146/versions/1.0.4) and the non-imaging phenotypes are available via Zenodo (https://zenodo.org/records/7765506). Preprocessed structural connectivity data were downloaded in the developmental datasets from https://brain.labsolver.org/hbn.html (HBN), https://brain.labsolver.org/hcp_d.html (HCPD), and https://brain.labsolver.org/greesland_twin.html (QTAB). The Chinese Human Connectome Project dataset36 is available via the Science Data Bank: https://www.scidb.cn/en/detail?dataSetId=f512d085f3d3452a9b14689e9997ca94. The Human Connectome Project34 is available via the ConnectomeDB database (https://db.humanconnectome.org).

We used Python 3.11.3 to conduct the analyses. Code for the analyses is available on GitHub (https://github.com/mattrosenblatt7/external_validation_power) and Zenodo (https://zenodo.org/records/10975870). Preprocessing was carried out using Bioimage Suite v3.01, which is freely available (https://medicine.yale.edu/bioimaging/suite/). Additional preprocessing was performed with the Human Connectome Project minimal preprocessing pipeline v3.4.0 (https://github.com/Washington-University/HCPpipelines/releases).

RESOURCES