Introduction

Exposure to adversity during development can shape neural and behavioral maturation, and increases risk for later mental health problems1,2. Anxiety disorders have been consistently linked with exposure to adversity during development, and youth who experience one or more adverse exposures are 40% more likely to develop an anxiety disorder by adulthood3. Nonetheless, a majority of individuals demonstrate resilience against mental health problems following adversity exposure during development4. This heterogeneity in outcomes may reflect—among other psychosocial and systemic factors5—variability in both the nature of adversity exposure and in brain and behavioral development6,7,8,9. In particular, the developmental timing of adversity exposure likely informs its impacts, as maturing neural circuits fluctuate in plasticity across their respective developmental trajectories, potentially rendering both circuits and the cognitive and emotional processes they support differentially sensitive to environmental exposures8,10,11,12. Parsing heterogeneity in features of adversity exposure, such as developmental timing, and variation in neurobehavioral processes may elucidate co-occurring patterns of exposure and functioning that predict risk for and resilience against future mental health problems.

Threat and safety learning play a central role in anxiety disorders, and disruptions in these processes and in supporting neural circuitry are evident following adversity exposure during development. Rodent models of threat and safety learning and adversity exposure show that the developmental timing of adversity exposure may differentially shape threat and safety learning and related behavior13. For instance, although exposure to adversity during development is generally associated with increased anxiety-like behavior in adulthood in rodent models14,15,16,17,18, effects of adversity on threat and safety learning vary as a function of age of exposure. Adult female mice exposed to adversity during the neonatal period displayed impaired threat expression19, while adult mice exposed to adversity during pre-adolescence show delayed discrimination between threat and safety and reduced ability to inhibit fear in the presence of a safety cue15. Mice exposed to adversity during adolescence showed altered neuronal firing patterns in the prelimbic cortex in response to threat in adulthood20. However, how the developmental timing of adversity exposure affects later functioning may also vary depending on the nature of the stressful exposure. As one example, chronic mild stress during the juvenile and adolescent stages of development may confer greater resilience to future stressors in adulthood21,22,23,24,25,26. While the mechanisms by which such putative resilience might relate to threat and safety learning remain unclear, findings from rodent research highlight the complex interplay between dimensions of adversity, such as developmental timing, and alterations to associative learning processes that may differentially confer greater risk for or resilience against future psychopathology.

Evidence from studies examining threat and safety learning in child, adolescent, and adult human samples suggests that exposure to adversity during development is associated with reduced discrimination between threat and safety cues in aversive learning tasks27,28. Lack of discrimination between threat and safety has been observed behaviorally29, neurally30, and physiologically31,32. Research focusing on threat in particular has identified blunted responses to learned threat cues in individuals exposed to adversity during development30,32,33,34; however, heightened responses to threat following adversity exposure during development have also been reported, primarily in studies employing threat stimuli with emotional content35,36,37. Individuals with adversity exposure may also exhibit heightened fear responses to safety cues38,39, which may be theoretically consistent with an adversity-related reduction in threat/safety discrimination. While few studies have examined the role of developmental timing of adversity in predicting neural response to threat or safety, convergent evidence implicates early childhood and late adolescence as potential sensitive windows during which adversity exposure may shape corticolimbic responses to threatening images through adulthood40,41. Clarifying how the timing of adversity exposure might differentially relate to changes in threat/safety discrimination may provide further insight into adversity-related shifts in associative learning and links with future mental health.

The hippocampus, amygdala, dorsal anterior cingulate cortex (dACC), and ventromedial prefrontal cortex (vmPFC) comprise the primary neural regions canonically involved in threat and safety learning42, as well as in anxiety43. Neural responses within regions comprising this circuit—for instance, activation during affective (e.g., threat, reward) learning44,45 and connectivity during rest46—can predict longitudinal emergence of anxiety, and may play an integral role in both short- and long-term threat encoding and extinction47. These regions are also among the most sensitive to the effects of exposure to adversity during development47,48,49. Further, regions comprising this corticolimbic circuit are known to develop along different trajectories that mature nonlinearly and reach adult-like states at different times during development48. Specifically, the hippocampus and amygdala develop relatively early49, while prefrontal cortical regions undergo more protracted maturation, demonstrating enhanced neuroplasticity during adolescence50,51,52,53. Structural connections between these regions are thought to reach maturation later still. For example, the uncinate fasciculus, a white matter tract structurally connecting prefrontal and limbic regions, exhibits ongoing development into adulthood54. Given the unique developmental timelines of this circuitry, the ages at which adversity exposure occurs may inform distinct impacts on corticolimbic circuitry and threat and safety learning, contributing to cascading effects on mental health into adulthood8,55,56. Further, given developmental shifts in threat and safety learning and responding27,57,58,59, parsing how the developmental timing of adversity exposure relates to region-specific neural discrimination between threat and safety in adulthood could provide insight into how adversity exposure may shape both developing neural circuitry and the neural computations it supports. Delineating how co-occurring patterns of adversity and threat/safety discrimination relate to variability in mental health is important for understanding why some individuals––but not others––develop mental health disorders following adversity exposure.

Person-centered approaches may critically aid in parsing heterogeneity across multiple measures by identifying co-occurring patterns that characterize groups of individuals60,61,62. Latent profile analysis (LPA) is one such approach, characterizing ‘profiles’ of individuals based on shared patterns across a set of continuous variables63,64,65. In the context of threat and safety learning and adversity exposure, LPA facilitates the identification of profiles characterized by both brain and adversity measures and may more readily elucidate variation in associations between neural activation and adversity than more widely used univariate approaches. In the present study, we leveraged LPA to identify shared patterns of adversity exposure across development and neural discrimination in corticolimbic regions—specifically, bilateral hippocampus, amygdala, dACC, and regions of the vmPFC—between threat and safety cues during an aversive learning task. Following profile identification, we tested whether the resulting profiles differed in mental health symptoms (i.e., anxiety symptoms, trauma-related symptoms, and externalizing symptoms). We hypothesized that the LPA solution would include a profile characterized by blunted amygdala activation to threat cues, weaker neural discrimination between threat and safety, and greater history of adversity exposure during early childhood27,28,29,30,31,32,40. We further hypothesized that individuals in this profile would display higher levels of anxiety symptoms3,66. In addition, we hypothesized that another profile would be characterized by lower levels of adversity exposure across development and stronger discrimination between threat and safety and that individuals in this profile would display lower levels of anxiety. Given that this study is broadly exploratory and presents a novel application of LPA, fitting the model on both adversity exposure at four developmental stages and neural threat and safety discrimination data, we did not have specific hypotheses regarding additional combinations of these variables and anxiety symptoms.

Methods

Participants

Participants were 120 adults between the ages of 18 and 30 recruited from the greater New Haven, CT community as part of an ongoing study on threat and safety learning in the context of anxiety disorders. For detailed demographic information, see Table 1. Participants were right-handed, able to fluently communicate in English, and free from contraindications for MRI scanning (e.g., no braces, metal implants). Additional exclusion criteria included (1) history of concussion or head injury, (2) history of neurological disorder or chronic medical illness, (3) lifetime history of psychotic disorders, conduct disorder, autism spectrum disorder, bipolar disorder, non-alcohol or non-tobacco use disorder, primary current diagnosis of attention-deficit/hyperactivity disorder or major depressive disorder, (4) current tobacco or alcohol use disorder, (5) suicidal ideation with acute risk, (6) current use of psychotropic medication, (7) colorblindness, (8) visual impairment that cannot be corrected with lenses, and (9) hearing impairment. In order to isolate variation related specifically to anxiety, the broader study restricted participation to either individuals without major psychopathology or individuals with an anxiety disorder but without significant externalizing psychopathology. The institutional review board at Yale University approved all study procedures. Participants provided informed written consent to participate in the study, which entailed two visits. Participants completed the Dimensional Inventory of Stress and Trauma across the Lifespan (DISTAL)67 interview as well as self-reported questionnaires assessing demographic information and mental health symptoms during the first visit. Interview data and self-report questionnaires were entered into a secure online database68. Participants also completed an MRI scan session with sequences including anatomical scans and functional imaging scans during the second visit. Participants were financially compensated for their time and participation at each visit. Analyses conducted in the present study were not preregistered.

Table 1 Demographic information

Assessment of adversity exposure

Participants completed the DISTAL interview67, which is broadly based on the structure of the UCLA PTSD Reaction Index69 and is designed to assess key dimensions of adverse exposures including age of exposure67. In the screening portion of the DISTAL, participants were asked about their exposure to 24 distinct types of adverse events. For each type of adverse event that was endorsed in the screening portion of the interview, participants were asked to report on the cumulative list of ages at which they experienced that type of adversity (possible ages of exposure ranged from 0 to 30, or 0 through participant age at the time of the study, if their current age was less than 30). If multiple events of the same type were reported, age of exposure at each event was recorded. Interview data underwent extensive quality assurance and were double-entered by a team of trained research assistants, overseen by a clinical doctoral student and the principal investigator67. Following quality assurance, exposures to adversity were summed by individual to derive a total count of adverse events at each year of age from 0 through the participant’s age at the time of the study. Subsequently, these data were summed to produce four separate variables representing counts of adverse events experienced within four developmental stages: early childhood (ages 0–5), middle childhood (ages 6–12), adolescence (ages 13–17), and adulthood (ages 18–30, or through current age), consistent with prior work70. Any reported events that did not include information on age of exposure were excluded from the analysis (n = 30 events; 1.52% of total reported events).

Clinical symptoms

Participants completed questionnaires assessing anxiety-related, trauma-related, and externalizing symptoms. Specifically, anxiety symptoms were evaluated using the total score from the Screen for Adult Anxiety Related Disorders (SCAARED)71. To determine the extent to which any findings might be specific to anxiety, we examined associations with trauma-related symptoms and externalizing symptoms as well. Trauma-related symptoms were assessed using the total score from the Trauma Symptoms Checklist (TSC-40)72. Externalizing symptoms were assessed via the Externalizing Problems subscale of the Adult Self Report scale73.

MRI scanning

Participants were scanned on 3T Siemens Magnetom Prisma scanners (Siemens, Erlangen, Germany) using a 32-channel head coil at either the Magnetic Resonance Research Center (n = 76; New Haven, CT) or the Brain Imaging Center (n = 44; New Haven, CT). Both scanning centers used Siemens software version VE11C. Scanning sequences were based on those used in the Adolescent Brain Cognitive Development Study74. A whole-brain high-resolution T1-weighted anatomical scan with magnetization-prepared rapid acquisition gradient echo (MPRAGE; 1070 ms TI, 2500 ms TR; 2.9 ms TE; 8° flip angle; 256 mm field of view (FoV); 176 slices in sagittal plane; 2× parallel imaging; 1.0 × 1.0 × 1.0 mm resolution) was collected. For the threat and safety learning task, high spatial and temporal resolution multiband echo planar imaging (EPI) fMRI scans were collected with fast integrated distortion correction across a total of five runs. Sixty axial slices covering the whole brain were imaged using a T2*-weighted EPI sequence (800 ms TR; 30 ms TE; 52° flip angle; 216 mm FoV; 90 × 90 matrix; 2.4 × 2.4 × 2.4 mm resolution; 6 multiband acceleration factor with interleaved acquisition). The first 8 volumes for each task run were discarded for longitudinal magnetization to reach equilibrium. To permit accurate spatial distortion correction, two spin echo EPI scans with opposite phase encoding directions were collected prior to each block of functional scans, per Human Connectome Project (HCP) guidelines75.

Task design

The threat and safety learning task employed in this study has been previously described76,77,78. All conditioned stimuli used in the task were geometric shapes of different colors, and the unconditioned stimulus (US) was an aversive metallic white noise79 delivered at 95 to 100 decibels through MRI-safe noise-cancelling headphones. Briefly, the task involved five runs: acquisition, testing (two runs), extinction, and reversal (depicted in Fig. 1). The acquisition phase consisted of 20 trials of the threat cue (CS+), which were reinforced with the unconditioned stimulus (US) 50% of the time (i.e., 10 reinforced and 10 non-reinforced threat cue trials) and 10 trials of the safety cue, which was never paired with the US. The acquisition phase utilized a block format, such that all threat cues were presented sequentially, as were all safety cues. The testing phase was split into two separate but consecutive runs (~7 min each) to reduce excessive motion that may occur during longer fMRI scans. Across both runs of the testing phase, a total of 12 threat cues were paired with the US, 12 threat cues were not paired with the US, and 12 safety cues were presented. Two additional conditions were included in the testing phase of the task: a “safety compound” condition in which the threat and safety cues were presented simultaneously to test whether the safety cue transferred to reduce fear to the threat cue, and a “novel compound” condition in which the threat cue and a novel cue were shown simultaneously to rule out effects of external inhibition80. Neither the safety compound nor novel compound condition was analyzed in the present study. The testing phase utilized an event-related design, and trial order was fully randomized across 6 counterbalanced versions. During every run, each cue was presented for 1500 ms and after 1000 ms a white dot appeared in the center of the shape (presented for 500 ms). Participants were instructed to press a button when the dot appeared on each trial. Participants were informed that pressing the button was simply to ensure that they were paying attention during the task. For reinforced trials of the threat cue, the onset of the aversive noise and presentation of the dot in the center of the shape were fully paired, such that they onset, lasted 500 ms, and terminated at the same time. A fixed inter-trial interval of 10 s separated each trial to allow for stabilization of the skin conductance response (SCR) signal. The assignment of the three different shapes used to cue the three stimulus types (threat, safety, or novel cue) was counterbalanced across participants. Counterbalanced task version did not relate to any variables of interest or latent profile assignment (see Supplementary Results). Additional details on the extinction and reversal runs of the task can be found in the original paper77. In the present study, we examined non-reinforced threat cues and safety cues during the two testing runs in fMRI analyses, and non-reinforced threat cues and safety cues during the acquisition block as well as during the two testing runs to evaluate cue learning via SCR. Details on SCR processing and analyses indicating that participants successfully learned the task cues can be found in the Supplementary Methods and Results.

Fig. 1: Threat and safety learning task design.
Fig. 1: Threat and safety learning task design.The alternative text for this image may have been generated using AI.
Full size image

Figure included with permission from a previous publication76. A During the acquisition phase of the task, participants were exposed to 10 threat cues paired with the unconditioned stimulus (US), 10 threat cues that were not paired with the US, and 10 trials of the safety cue. B The two testing phases of the task each included 6 threat trials paired with the US, 6 threat trials not paired with the US, 6 trials of the safety cue, 6 trials of the safety compound, and 6 trials of the novel compound (i.e., a total of 12 trials for each condition across both runs). C Example trial structure: a fixation cross is presented for 10 s, followed by presentation of the cue for 1.5 s, followed by 0.5 s in which a white dot appears at the center of the shape and participants are instructed to press a button.

fMRI preprocessing

fMRI data were converted to Brain Imaging Data Structure (BIDS)81 using heudiconv (https://github.com/nipy/heudiconv) and subsequently preprocessed using the HCP minimal preprocessing pipeline75 using the HCP Pipelines BIDS app (https://github.com/BIDS-Apps/HCPPipelines) version 3.17.14. This pipeline has been described in detail in previous work76,77,78. Briefly, preprocessing of task-based functional acquisitions involved gradient distortion correction, EPI “fieldmap” preprocessing and distortion correction, motion correction, nonlinear registration to the MNI template (MNI 152, 2 mm space), and grand-mean intensity normalization. The EPI fMRI images were corrected using spin echo fieldmap EPI scans with opposite phase encoding directions, resulting in opposite spatial distortion. The two fieldmap images were aligned using nonlinear optimization to estimate the distortion field and enable the removal of spatial and intensity distortions from the fMRI images via the HCP minimal preprocessing pipeline82,83,84.

fMRI first level analysis

All individual-level fMRI analyses were conducted with the FMRIB’s Software Library (FSL) version 6.0.7.9. For the first-level FEAT analysis, predictors for all task conditions (threat cue, safety cue, safety compound, and novel compound conditions; with inter-trial intervals treated as baseline) were convolved with a double-gamma canonical hemodynamic response function (HRF). To minimize the effects of motion on task-related results, each participant’s FEAT design matrix had translational and rotational motion parameters, resulting from FSL’s MCFLIRT85, added as nuisance regressors. Additionally, FSL’s fsl_motion_outliers function was used to detect fMRI frames that were corrupted by excessive motion and were therefore less reliable; outliers were determined using 1.5 times the interquartile range above the upper quartile86 and the mean framewise displacement (FD) was calculated87. The resulting outlier frame regressors (encoded as one-hot vectors indicating the presence or absence of an outlier) were then concatenated to the design matrix. We chose to employ this approach rather than censoring corrupted timepoints because regression of problematic timepoints does not disrupt the temporal structure of the timeseries. Temporal derivatives of all design matrix predictors were added as confound terms to the GLM to account for slice-timing differences and variability in the HRF delay across regions. Finally, timeseries were high-pass filtered with a cutoff of 90 s (estimated for our specific task design using FSL’s cutoffcalc function) to remove low frequency artifacts and pre-whitened with FILM to correct for autocorrelations in the timeseries.

Region of interest (ROI) extraction and covariate regression

Voxel-level parameter estimates produced in FSL from the first-level analyses of the first and second testing runs were averaged together using the fslmaths command88 to yield estimates of average activation for the three contrasts of interest (threat vs. baseline, safety vs. baseline, and threat vs. safety). Global mean activation was computed per participant for each contrast at the voxel level using the fslmaths command. Given the canonical role of the vmPFC, dACC, hippocampus, and amygdala in threat and safety learning and response89,90,91, we selected ROIs representing these key nodes to submit to LPA. Specifically, we derived anatomical segmentations of the bilateral hippocampus and amygdala from the Shen 368 atlas92, bilateral ventromedial prefrontal regions from the symmetrical Mackey vmPFC atlas93, and the bilateral dACC region from the Automated Anatomical Labeling Atlas 394 as in previous work76,78. All ROIs were averaged across hemispheres to increase model parsimony and because we did not have specific hypotheses regarding lateralization.

Quality assessment and motion exclusion

Following preprocessing, all data were visually inspected for artifacts by a highly trained team of research assistants. Subjects with task runs with severe artifacts (e.g., severe motion slice, signal distortion, etc.) were excluded from analysis. Given the well-documented impacts of motion on fMRI signal95, we employed rigorous motion correction during FEAT first level analysis, as previously described. In addition, we included mean framewise displacement across both task runs as a between-subjects covariate96,97. Finally, we inspected overlap between areas with fMRI artifacts and ROIs. Mackey atlas nodes 14m, 24, 25, and 32 were included in subsequent analyses, while nodes 11m, 14c, 14r, and 14rr were excluded (across all participants) due to overlap with artifacts.

Data preparation and outlier removal

We employed LPA64,65 to identify person-centered profiles characterized by shared patterns of adversity exposure across development and neural discrimination between threat and safety cues. Prior to submitting adversity and neural indicator variables to the LPA model, we regressed between-subjects covariates from each measure. Specifically, from each of the four adversity exposure variables (representing exposures in early childhood, middle childhood, adolescence, and adulthood) we regressed age at DISTAL interview and sex assigned at birth using a zero-inflated negative binomial model implemented in statsmodels98. For neural data, we regressed estimated total intracranial volume, site of fMRI scan acquisition, mean framewise displacement, mean whole-brain activation, and age at scan session from each ROI’s activation using ordinary least squares (OLS) models implemented in statsmodels98. We performed covariate regression from ROI activation data separately for each contrast of interest (threat vs. baseline, safety vs. baseline, and threat vs. safety). We chose to regress mean whole-brain activation to isolate region-specific variation in activation while controlling for global individual differences, and total intracranial volume to account for both variability in head size and as a proxy for potential sex-related differences99. Prior to fitting the LPA model, we tested for the presence of outliers in each variable (i.e., more than 3 standard deviations from the median), and excluded participants with any data surpassing this threshold (n = 11; original sample n = 131, final sample n = 120). Subsequently, we tested for multicollinearity among all adversity exposure and neural indicator variables using the variance inflation factor (VIF). Activation in Mackey areas 14m and 32 were highly correlated, leading us to average their activations and use this combined variable in subsequent analyses. Following this step, VIFs for all variables were less than 5, indicating that variables were not problematically multicollinear100. Finally, all indicator variables were z-scored prior to submission to the LPA model.

Latent profile analysis

Statistical analyses were conducted in Python (version 3.9)101, and R (version 4.4.2)102. A full list of python package versions can be found in the project Github repository (see Data and Code Availability). LPA was implemented in the Python package StepMix103, a mixture modeling package that introduces advanced features such as bias correction that have previously been predominantly unavailable in open-source software. The following variables were entered into the LPA: adversity count during early childhood, adversity count during middle childhood, adversity count during adolescence, adversity count during adulthood, hippocampal activation during the threat vs. safety contrast, amygdala activation during the threat vs. safety contrast, vmPFC area 24 activation during the threat vs. safety contrast, vmPFC area 25 activation during the threat vs. safety contrast, vmPFC areas 32 and 14m activation during the threat vs. safety contrast, and dACC activation during the threat vs. safety contrast. LPA models treating all variables as continuous with diagonal component covariance structures were fit across 1000 random starts for 1 through 6 latent profiles, and information criteria were retained for each model fit and compared. We chose to limit the maximum number of profiles to 6, as prior work suggests that with sufficient separation, the minimum expected sample per latent profile should be n = 20104. Thus, with n = 120, the maximum number of profiles we would be powered to detect is 6. Models were fit using the three-step method, and profile assignment was corrected using the Bolck, Croon, and Hagenaars (BCH) method64,103,105. The optimal profile number was selected by comparing fit based on information criteria. We employed the Bayesian Information Criterion (BIC)106 and the Akaike Information Criterion (AIC)107, both of which indicate better fit with values ranging closer to zero; and scaled entropy, in which higher values indicate higher classification confidence and values above 0.8 are considered acceptable103,108. After selecting the optimal profile solution based upon information criteria values, we confirmed a superior fit for the chosen solution with k latent profiles relative to the solution with k-1 profiles using 1000 iterations of a bootstrapped likelihood ratio test109. Participants were assigned profile membership, and the categorical variable representing profile membership was used in subsequent analyses with clinical symptoms. Finally, we ordered the profiles from least to most cumulative adversity exposure for ease of interpretation. Post-hoc tests for differences between profiles in adversity exposure across development were evaluated using two-tailed Mann–Whitney U-Tests110, and False Discovery Rate (FDR)111 correction was applied to account for multiple comparisons (i.e., the three pairwise tests comparing each pair of profiles). Differences between profiles in normally distributed data (e.g., neural activation and clinical symptoms) were evaluated with pairwise Games-Howell tests112. Differences in neural discrimination between threat and safety within profiles were evaluated relative to zero using one-sample t-tests and corrected for multiple comparisons using FDR correction. Post-hoc testing was implemented in the pingouin Python package113.

Statistical power considerations

Following latent profile identification, we sought to confirm that we were well-powered to identify the correct number of latent profiles in our sample. As distance between profiles may be more important than sample size in determining statistical power104,114,115, we indexed distance between profiles using two approaches. First, in line with previous work115, we computed pairwise Cohen’s d effect sizes between latent profiles for each variable submitted to the LPA model. We then computed the absolute value of each Cohen’s d value and averaged across each pairwise combination of latent profiles to determine the overall distance (average Cohen’s d) between the profiles115. Second, we computed a more recently proposed measure of separation—the distance metric (Δ)104. Specifically, we again retained Cohen’s d values representing the pairwise differences between profiles that were computed during pairwise testing for each of the 10 indicator variables submitted to the LPA model (exposure to adversity during early childhood, exposure to adversity during middle childhood, exposure to adversity during adolescence, exposure to adversity during adulthood, hippocampal activation during the threat vs. safety contrast, amygdala activation during the threat vs. safety contrast, vmPFC area 24 activation during the threat vs. safety contrast, vmPFC area 25 activation during the threat vs. safety contrast, vmPFC areas 32 and 14m activation during the threat vs. safety contrast, and dACC activation during the threat vs. safety contrast). We then squared each Cohen’s d value and summed the squares together for each pair of profiles (1 vs. 2, 1 vs. 3, 2 vs. 3). We computed the square root of the sum of squares between each pair of profiles, and then averaged these values together to obtain an overall estimate of distance between profiles.

Associations with clinical symptoms

Following profile assignment, we examined associations between profile membership and measures of clinical symptoms. We used the Jarque–Bera (JB) test116 to test whether symptom variables met assumptions of normality. None of the symptom measures (anxiety symptoms, trauma-related symptoms, externalizing symptoms) met the assumption of normality; thus, anxiety symptoms were transformed using a square-root transform and trauma-related and externalizing symptoms were transformed using a log transform. Transformations were chosen for each symptom variable based upon which transformation resulted most closely in an approximately normal distribution (i.e., JB>0.05). Next, transformed anxiety symptoms, transformed trauma-related symptoms, and transformed externalizing symptoms were evaluated as dependent variables in separate OLS models fit using lm() in R102. Age at questionnaire completion, sex assigned at birth, total household income, and years of education were included as covariates in all models. We chose to include age at questionnaire completion and sex assigned at birth as covariates in each model to adjust for potential age-related differences in symptom measures117 and given prior evidence of sex differences in the effects of adversity on neurodevelopment and mental health118,119. We included total household income and years of education as proxies for socioeconomic status-related experiences that can impact brain development120,121 and mental health3,119. Participants with missing data for any covariates were excluded from symptom analyses (n = 15; Table 1). Type III Sum of Squares ANOVA tables were then computed for each fit OLS model to ascertain the effect of the categorical latent profile variable relative to the grand mean122 using the car package in R123. We chose to employ “effects coding” in this manner given the lack of a clear reference group among the three profiles. Subsequently, pairwise differences between profiles were assessed using Games-Howell tests, implemented via the rstatix package in R112,124. We applied FDR correction for multiple comparisons to account for the three symptom models. Independent of the OLS models, Spearman correlations were fit to determine whether the clinical measures correlated with the covariates for continuous measures. Correlations among clinical symptom measures, covariates, and LPA indicator variables of interest are presented in Fig. S1.

Sensitivity analyses

In order to parse the relative contribution of cumulative adversity exposure in the present findings, we conducted two sensitivity analyses. First, we refit the LPA modeling pipeline using a single variable indexing cumulative lifetime adversity exposure instead of the four variables indexing the count of adversity exposures within each developmental stage. This single variable was submitted alongside the neural variables to the LPA model (hippocampal activation during the threat vs. safety contrast, amygdala activation during the threat vs. safety contrast, vmPFC area 24 activation during the threat vs. safety contrast, vmPFC area 25 activation during the threat vs. safety contrast, vmPFC areas 32 and 14m activation during the threat vs. safety contrast, and dACC activation during the threat vs. safety contrast). We compared information criteria to determine the best-fitting profile solution and then ordered the resulting profiles from least to most cumulative adversity exposure to facilitate profile assignment comparison between the present model and our original model. We then computed a Spearman correlation between the present profile assignments and the profile assignments from the original analysis to quantify similarity. Second, we sought to determine whether cumulative adversity exposure displayed a quadratic association with anxiety symptoms, as would be expected if the anxiety-related differences between profiles were primarily driven by cumulative adversity exposure. We fit an OLS regression model using transformed anxiety symptoms from the SCAARED questionnaire as the dependent variable, the sum score of cumulative adverse events (modeled as a quadratic polynomial term) as the primary independent variable of interest, and sex assigned at birth, age at questionnaire completion, total household income, and total years of education as covariates. We then examined the OLS results using a type III Sum of Squares ANOVA table to maintain consistency with previous analyses.

Results

LPA model fitting results

We fit a latent profile model using both neural and adversity exposure data across development and evaluated solutions for models fit with the number of latent profiles ranging from 1 to 6. Information criteria for each of these solutions is presented in Table 2. Based upon the BIC, the optimal number of profiles was determined to be k=3 (BIC=3364.296) given the superior ability of the BIC to identify the correct number of profiles relative to other information criteria115,125. The three-class solution also demonstrated acceptably high scaled entropy (scaled entropy = 0.903), indicating high classification confidence108. Using 1000 iterations of the bootstrapped likelihood ratio test, we confirmed that the three-profile solution demonstrated superior fit relative to the two-profile solution (p = 0.004).

Table 2 LPA information criteria

Statistical power

Next, we sought to confirm that we were adequately powered for the BIC to reliably detect the class solution using two separate methods. First, we computed distance between classes (i.e., average Cohen’s d) to assess statistical power. The average Cohen’s d between profiles 1 and 2 was 1.144, the average Cohen’s d between profiles 1 and 3 was 1.085, and the average Cohen’s d between profiles 2 and 3 was 0.723. This yielded an overall average value of 0.984, surpassing the minimum recommended distance value of 0.8 for two out of three profiles and overall115. Next, we computed the distance (Δ)104 between each pair of profiles (1 vs. 2: Δ = 4.230; 1 vs. 3: Δ = 3.814, 2 vs. 3: Δ = 2.781). Average separation across the three profiles (Δ = 3.608) surpassed the threshold for >99% power (Δ = 3)104, suggesting that the present sample shows sufficient separation for the BIC to correctly identify the number of latent profiles. Finally, we confirmed that neither LPA profile assignment nor any of the indicator variables differed as a function of counterbalanced task version (see Supplementary Results).

Latent profile characterization

The three latent profiles differed in adversity exposure across development (Fig. 2; Table S1) and in neural activation when discriminating between threat and safety across the vmPFC, hippocampus, and amygdala (Fig. 3). Participants in latent profile 1 (n = 14) reported the fewest adverse exposures across development and had lower adversity exposure within middle childhood and adolescence than participants in latent profile 2 (psFDR<0.01; Table 3). Latent profile 1 also demonstrated higher activation in the threat vs. safety contrast specifically in regions of the vmPFC compared to latent profiles 2 and 3 (ps < 0.001; Table 3); these findings were driven by higher activation to threat cues and lower activation to safety cues (Table S2). Participants in latent profile 2 (n = 66) reported a moderate number of adverse exposures across development that were increased relative to latent profile 1 specifically within middle childhood and adolescence (psFDR = 0.001; Table 3). Latent profile 2 also demonstrated lower activation in the threat vs. safety contrast, which differed from latent profile 1 in all regions except for the dACC (ps < 0.01; Table 3) and from latent profile 3 specifically in the hippocampus and amygdala (ps < 0.01; Table 3). Lower activation in the threat vs. safety contrast in latent profile 2 was predominantly driven by lower activation to threat in all regions (particularly the hippocampus and amygdala) and higher activation to safety in the vmPFC relative to latent profile 1 (Table S2). Participants in latent profile 3 (n = 40) reported the highest number of adverse exposures across development, with higher adversity exposure within all developmental stages than latent profiles 1 and 2 (psFDR<0.01; Table 3). In addition, participants in latent profile 3 demonstrated activation values close to zero in the threat vs. safety contrast, driven by low neural activation to both threat and safety cues in all regions (Fig. 3). Compared to latent profile 2, latent profile 3 showed higher activation to threat specifically in the hippocampus and amygdala (ps < 0.05; Table S2). Descriptive statistics for adversity exposure by latent profile are reported in Table S1, and full statistics for pairwise tests used to characterize differences between latent profiles in indicator variables are presented in Table 3. Statistics for between-profile differences in the threat vs. baseline and safety vs. baseline contrasts are presented in Table S2. Demographic information for each profile is presented in Table S3.

Fig. 2: Differences between latent profiles (n = 14 in profile 1; n = 66 in profile 2; n = 40 in profile 3) in adversity exposure within each developmental stage are presented.
Fig. 2: Differences between latent profiles (n = 14 in profile 1; n = 66 in profile 2; n = 40 in profile 3) in adversity exposure within each developmental stage are presented.The alternative text for this image may have been generated using AI.
Full size image

Mann–Whitney U-tests with FDR correction were used. The adversity exposure measures presented here are standardized residuals obtained following covariate regression. In this figure, the box shows the data quartiles and the whiskers show the data range. Points that are determined to be “outliers” using the inter-quartile range method are plotted outside the whiskers. ns not significant; *p < 0.05; **p < 0.01; ***p < 0.001.

Fig. 3: Differences between latent profiles (n = 14 in profile 1; n = 66 in profile 2; n = 40 in profile 3) in neural activation are presented.
Fig. 3: Differences between latent profiles (n = 14 in profile 1; n = 66 in profile 2; n = 40 in profile 3) in neural activation are presented.The alternative text for this image may have been generated using AI.
Full size image

Games-Howell post-hoc tests were used to determine whether activation differed across profiles for each ROI and contrast. The threat vs. safety contrast is presented in the first row, the threat vs. baseline contrast is presented in the second row, and the safety vs. baseline contrast is presented in the third row. The neural activation measures shown here are standardized residuals obtained following covariate regression. In this figure, the box shows the data quartiles and the whiskers show the data range. Points that are determined to be “outliers” using the inter-quartile range method are plotted outside the whiskers. ns = not significant; *p < 0.05; **p < 0.01; ***p < 0.001.

Table 3 Differences between profiles

Differences in neural discrimination within each profile

Next, we sought to formally test whether individuals within each latent profile displayed differential activation to threat and safety cues (i.e., whether individuals were neurally discriminating between threat and safety). To do this, we conducted two-tailed one-sample t-tests within each latent profile to evaluate whether neural activation in the threat vs. safety contrast differed statistically from zero. Statistics are presented in Table 4. Overall, neural activation in the threat vs. safety contrast in latent profile 1 differed from zero in all neural regions except the dACC (psFDR < 0.05; Table 4), suggesting individuals in this profile discriminated between threat and safety cues. Neural activation in latent profile 2 also differed from zero in all neural regions except for vmPFC area 24 and the dACC (pFDR < 0.05; Table 4). However, neural activation in the threat vs. safety contrast in latent profile 3 did not differ statistically from zero in any of the ROIs examined (psFDR>0.05; Table 4).

Table 4 Differences in neural discrimination within each profile

Associations with clinical symptoms

Finally, we used OLS models to examine differences between latent profiles in anxiety symptoms, trauma-related symptoms, and externalizing symptoms. The omnibus model for anxiety symptoms was significant (F(20, 84) = 1.740, p = 0.042), and the main effect of latent profile on anxiety symptoms was significant (F(2) = 4.404, p = 0.015). Post-hoc Games–Howell tests revealed that latent profile 1 (M = 5.762, SD = 1.030) had significantly higher anxiety symptoms than latent profile 2 (M = 4.692, SD = 1.403; mean difference = –1.000, SE = 0.243, 95% CI = [–1.865, –0.134], p= 0.022, d = 0.811, 95% CId = [0.317, 1.380]). Latent profile 2 (M = 4.692, SD = 1.403) also displayed significantly lower anxiety symptoms than latent profile 3 (M = 5.461, SD = 1.527; mean difference = 0.821, SE = 0.226, 95% CI = [0.057, 1.586], p = 0.032, d = –0.539, 95% CId = [–0.931, –0.043]), but there was no statistically significant evidence that latent profiles 1 and 3 differed in anxiety symptoms (mean difference = –0.178, SE = 0.283, 95% CI = [–1.162, 0.806], p= 0.897, d = 0.128, 95% CId = [–0.300, 0.799]; Fig. 4). Omnibus models were not significant for trauma-related symptoms (F(20, 74) = 1.604, p = 0.074) or externalizing symptoms (F(20, 82) = 1.362, p = 0.166), nor was the main effect of latent profile on either symptom measure significant (trauma-related symptoms: F(2) = 0.396, p = 0.674; externalizing symptoms: F(2) = 2.995, p = 0.087). As these models were not significant, post-hoc tests were not examined. Following multiple comparisons correction across OLS models for the three clinical symptom measures, the main effect of latent profile on anxiety symptoms survived (pFDR= 0.045). Spearman correlations among LPA indicator variables, clinical symptom measures, and covariates are presented in Fig. S1.

Fig. 4: Games-Howell post-hoc tests yielded differences in anxiety symptoms between latent profiles 1 and 2 and between latent profiles 2 and 3 (n = 12 in profile 1; n = 58 in profile 2; n = 35 in profile 3).
Fig. 4: Games-Howell post-hoc tests yielded differences in anxiety symptoms between latent profiles 1 and 2 and between latent profiles 2 and 3 (n = 12 in profile 1; n = 58 in profile 2; n = 35 in profile 3).The alternative text for this image may have been generated using AI.
Full size image

In this figure, the box shows the data quartiles and the whiskers show the data range. Points that are determined to be “outliers” using the inter-quartile range method are plotted outside the whiskers. ns not significant; *p < 0.05; **p < 0.01; ***p < 0.001.

Sensitivity Analyses

In order to disentangle the extent to which the present results may be driven by cumulative adversity exposure, we conducted two sensitivity analyses. First, we refit the LPA model using a single variable indexing cumulative lifetime adversity exposure instead of the four variables indexing the count of adversity exposures within each developmental stage. As in previous analyses, we relied on the BIC to indicate the correct class solution. The two-class solution showed the lowest BIC value (BIC = 2415.043; Table S4), suggesting that a two-class solution fit the data best. Class assignment in the two-class solution was weakly correlated with that of our original model (Spearman’s r = 0.211, p = 0.021). Furthermore, choosing to fit a three-class solution for consistency with previous analyses (despite it not being indicated by the BIC) did not recapitulate the solution observed with the developmental adversity variables, instead showing only weak correlation with class assignment in the original model (Spearman’s r = 0.196, p = 0.032). This three-class solution also did not show evidence of a statistically significant difference in anxiety symptoms across profiles (F(2) = 0.584, p = 0.560). These results suggest that cumulative exposure alone does not drive results of the present analysis, and that collapsing across developmental stage may obscure person-specific patterns of adversity exposure and neural activation that are relevant to mental health. Next, we sought to parse the extent to which the observed differences in anxiety symptoms between the profiles may be due to between-profile differences in cumulative adversity exposure rather than due to between-profile differences in the developmental timing of adversity exposure. To do this, we fit an OLS model to test whether cumulative adversity exposure showed a quadratic association with anxiety symptoms—in other words, to see if moderate adversity exposure was associated with lower anxiety, relative to lower and higher levels of adversity exposure, across the whole sample. Results did not show evidence of a significant quadratic association between anxiety symptoms and cumulative number of adverse events (F(1) = 2.531, p = 0.115). Together, these sensitivity analyses suggest that accounting for developmental stage when modeling the effects of adversity exposure may provide insight above and beyond cumulative exposure alone into heterogeneity in mental health outcomes.

Discussion

Parsing heterogeneity in neurobehavioral processes and mental health following adversity is a crucial step toward improving understanding of risk and resilience. In the present exploratory study, we leveraged a person-centered approach to identify profiles of individuals characterized by shared patterns of adversity exposure across development, from early childhood through young adulthood, and neural activation to threat and safety. Three latent profiles emerged, which displayed differences in developmental adversity exposure, neural responses during threat and safety learning, and anxiety symptoms in young adulthood. The first latent profile was characterized by lower levels of lifetime adversity exposure, higher activation to threat, and lower activation to safety. The second latent profile was characterized by moderate adversity exposure within middle childhood and adolescence, together with lower neural activation to threat and higher neural activation to safety. The third latent profile was characterized by higher levels of lifetime adversity exposure and diminished neural discrimination between threat and safety cues. Individuals in the second latent profile had the lowest levels of anxiety symptoms, whereas individuals in the first and third latent profiles had relatively higher levels of anxiety that did not statistically differ. Together, these findings suggest that both the timing and number of adversity exposures across development may be linked with distinct patterns of neural discrimination between threat and safety and that these joint patterns may be relevant for understanding anxiety risk.

The present findings add to a growing body of evidence that significant adversity exposure during development is associated with weaker neural discrimination between threat and safety cues in the context of aversive learning30. Specifically, we found that the co-occurrence of high lifetime adversity exposure and diminished neural threat/safety discrimination in the third latent profile was driven by blunted neural activation to both the threat and safety cues, aligning with prior evidence of blunted reactivity to threat among individuals with high levels of adversity exposure30,32,33,40. Interestingly, neural activation to threat in the third latent profile differed from the second latent profile––characterized by lower anxiety––in only a few brain regions. Specifically, individuals in the third latent profile showed slightly increased activation to the threat cue in the hippocampus and amygdala relative to individuals in the second latent profile. We posit that these patterns could reflect disrupted prefrontal regulation of subcortical regions in the third latent profile, or, conversely, more effective regulation of subcortical regions by the vmPFC in the second latent profile when faced with threat. Importantly, however, determining the cognitive correlates of diminished neural discrimination—i.e., whether diminished neural discrimination reflects diminished learning or an alternative process (e.g., decreased salience of both conditions despite learning)—will require additional research.

Contrary to our hypothesis that a profile would emerge with both the highest levels of adversity exposure and the highest levels of anxiety symptoms, we did not observe a linear relation between adversity exposure and anxiety across latent profiles. Indeed, individuals in the first latent profile, who had low lifetime adversity exposure and high neural discrimination between threat and safety, displayed levels of anxiety similar to those in the third latent profile (who had high lifetime adversity exposure and showed low neural discrimination between threat and safety). We hypothesize that the first latent profile reflects individuals whose anxiety symptoms may be unrelated to adversity exposure, in turn corresponding to distinct patterns of neural activation during threat and safety learning. These results suggest that although individuals may present similarly clinically (e.g., levels of anxiety that do not statistically differ between profiles 1 and 3), the role of threat and safety learning and its neural and experiential underpinnings may vary substantially across individuals.

The second latent profile (characterized by greater levels of adversity exposure within middle childhood and adolescence relative to the first latent profile, with neural threat/safety discrimination driven by increased prefrontal activation to safety) displayed the lowest levels of anxiety in young adulthood. This finding contrasts with our hypothesis that individuals in the latent profile with the lowest levels of adversity exposure would also display the lowest levels of anxiety symptoms. Instead, results suggest that among some individuals, moderate levels of adversity exposure during middle childhood and adolescence could be associated with processes that, together with a specific neural phenotype, foster future resilience to anxiety. These protective effects may be mediated in part by the prefrontal cortex22,126. The prefrontal cortex exhibits a protracted developmental timeline and undergoes circuit refinement throughout adolescence and into early adulthood50,51,52,127,128. Viewed through an adaptive lens129, enhanced prefrontal neuroplasticity during the adolescent period may facilitate neural adaptations to chronic, mild stress that promote resilience to future stressors8,126. Indeed, longitudinal evidence from a large study characterizing neural correlates of a resilience ‘r’ factor found that increased reward responsivity in prefrontal regions and decreased hippocampal response to threat were associated with higher ‘r’ factor scores130. These results dovetail with the present findings to suggest that relatively greater prefrontal engagement and lower subcortical reactivity may reflect more ‘resilient’ functioning across task domains.

Further, studies in rodents and non-human primates21,24,25,26 as well as in humans131,132,133,134 suggest that low-to-moderate levels of stress during development may promote resilience against future stressors. These reports are consistent with the present results, which suggest that both number of exposures and timing of exposures may play a role in shaping neural and behavioral phenotypes. In sensitivity analyses, we demonstrated that the present profile solution cannot be recapitulated using a measure of cumulative adversity exposure instead of adversity exposures binned by developmental stage. Further, there was no evidence of a sample-wide, non-linear association between cumulative adversity exposure and anxiety symptoms. Together, these results suggest that the developmental timing of adversity may meaningfully interact with the number, or frequency, of adversity exposures together with neural functioning to shape behavior and that adversity exposure during middle childhood and adolescence may be particularly impactful. These findings align with results from a recent study, which identified middle childhood as an especially important time when key experiential elements of adversity such as predictability and controllability might buffer against risk for adversity-related psychopathology70, highlighting the importance of this developmental stage for understanding resilience. While parsing additional experiential elements of adversity was not possible in the current sample, future studies that examine neurobiological processes linking experiential and timing-related elements of adversity with later mental health will be helpful for understanding mechanisms of resilience.

Limitations

The present findings should be interpreted in the context of several important limitations. First, this study was conducted with a laboratory-based sample of participants who completed detailed clinical interviews, resulting in rich phenotyping of adversity exposure. While this type of methodological detail holds promise for advancing the science of adversity exposure and neurodevelopment, it constrains the sample size that is feasible to collect. Although the latent profiles reported in this study demonstrated acceptable entropy and distance, the modest overall sample size may have restricted the ability of LPA to identify and resolve more “rare” profiles that represent relatively small proportions of the overall sample114,135. Similarly, due to sample size we did not parse adversity exposure by additional relevant dimensions, such as predictability, controllability, threat, or deprivation6,9,136. Future work probing interactions between the developmental timing of adversity and such dimensions could provide more granular insight into how adverse events impact threat and safety learning and mental health. Additionally, adversity exposure was assessed via retrospective report through clinical interviews in the present study. Although concordance between retrospective and prospective report of adversity has been shown to be higher when data are collected through interviews relative to questionnaires137, participants may not have been able to recall all adverse events, particularly those experienced in early childhood138. Despite this limitation139, retrospective report of adversity has been shown to better predict adult mental health symptoms compared with more “objective” adversity measures140,141. Future studies with large-scale longitudinal cohorts that systematically characterize children’s environments, including both adversity exposure and putative resilience factors142,143, are needed to disentangle both the role of childhood experiences in shaping neurodevelopment and mental health, as well as the comparative predictive utility of prospective and retrospective report of adversity exposure137. The present study also comprised predominantly high-functioning young adults (i.e., who were able to complete research paradigms including an aversive learning fMRI task and scan) and excluded several comorbid diagnoses, which may partially explain why the second profile (which showed moderate adversity exposure during middle childhood and adolescence, increased neural activation to safety, and lower anxiety in young adulthood) comprised the largest proportion of study participants. While resilience remains a common outcome following adversity144, how the present findings and interpretations may differ among individuals with severe psychopathology remains to be explored. Finally, our sample comprised young adults who were predominantly White with higher income and college educations. Replicating these findings in a large, socio-economically and demographically diverse sample will be important for understanding the extent to which these associations generalize to the broader population145.

Conclusions

The present study employed a data-driven, person-centered approach to characterize shared patterns of adversity exposure across development and neural discrimination between threat and safety in young adulthood. Our findings are consistent with previous research linking high levels of adversity exposure with diminished neural discrimination in responding to threat and safety cues and suggest that low-to-moderate levels of adversity exposure during middle childhood and adolescence may relate to neural threat/safety discrimination in ways that foster resilience to future anxiety for some young adults. Further, our findings suggest that distinct patterns of corticolimbic activation when responding to threat and safety may underlie relations between adversity exposure and anxiety. Ultimately, better understanding of how the developmental timing and number of adversity exposures jointly influence the development of corticolimbic circuits supporting affective learning and mental health could help to elucidate the neural underpinnings of anxiety disorders and inform personalized, developmentally-informed interventions for youth exposed to adversity.