Introduction

Cocaine use remains a critical public health issue in the United States of America. The most recent National Survey on Drug Use and Health1 indicates that in 2022, 5.3 million used cocaine, 509,000 initiated cocaine use, and 1.4 million experienced cocaine-use disorder (CUD). The number of deaths associated with cocaine before 2016 was relatively low; however, as synthetic opioids (e.g., fentanyl) infiltrated the cocaine supply, cocaine-related deaths rose by ~ 260% to over 24,000 in 20222.

CUD affects both the structure and function of the brain. Structurally, CUD is associated with decreases in gray matter volume3, white matter volume4, and cortical thickness5. Functionally, CUD is associated with prefrontal and subcortical dysfunction that is linked to cognitive deficits6,7, reward dysfunction in dopaminergic pathways8, and hyper-activity to craving-inducing drug cues9. Resting-state functional connectivity (rsFC) studies have revealed CUD is associated with aberrant rsFC within and between neural networks10,11,12. The direction of rsFC may be either positive or negative depending on whether the networks modulate in the same direction (i.e., activate together and deactivate together) or opposite directions (i.e., one activates as the other deactivates), respectively13. Both positive and negative type rsFC are considered fundamental aspects of brain organization that support cognitive processes14.

With widespread effects in the brain linked to cocaine use and CUD, an investigation into the interactions between large-scale networks of functionally coherent neural activity may facilitate a systems-level understanding of a brain chronically exposed to cocaine15. Large-scale networks refer to neural systems that contribute to a common set of functions but are distributed across the brain, which contrasts with focus on functionally isolated single regions. Disruptions to large-scale networks have been associated with psychiatric and neurological disorders, including bipolar, schizophrenia, depression, and obsessive-compulsive disorders16,17. Three well-established cortical networks include the default-mode network (DMN), consisting of medial prefrontal cortex (mPFC) and posterior cingulate cortex (PCC); the executive control network (ECN), made up of dorsolateral prefrontal (dlPFC) and parietal cortices; and the salience network (SN), including insula and anterior cingulate cortex, which have been summarized as a unifying triple network in psychopathology18. This ‘triple network’ model proposes that differential interactions (and imbalance) between SN, DMN, and ECN underlie several psychiatric and neurological disorders. Essentially, weak connections between SN and ECN result in stronger connections between SN and DMN, and is associated with reward, cognitive, and emotional dysregulation19.

The triple network model has been applied to substance-use disorders, including nicotine19, alcohol20, opioids21, and cocaine22,23,24,25. Since addiction is also characterized by dysfunction in the subcortical reward network, addiction studies that employ the triple network model have also incorporated subcortical brain regions26, including the striatum (ST) and medial temporal lobe (MTL) composed of amygdala, hippocampus, and parahippocampus. These previous studies have found network differences between people with addiction and control populations, particularly demonstrating an imbalance of SN-DMN and SN-ECN rsFC21,22,23,24,25,27,28. Connectivity of SN-DMN rsFC in those with addiction governs internal negative emotional states, like craving; in contrast, SN-ECN connectivity is linked to executive control, which tends to be diminished in those with addiction19. Compared to controls, people with CUD have exhibited aberrant SN-DMN, SN-MTL, and DMN-ECN rsFC22,23,24. Pertaining to clinical outcomes, data is emerging on the utility of large-scale network connectivity in predicting clinical outcomes22,29,30,31. For example, one study showed increased SN-ECN rsFC was associated with better outcomes30, while another showed that increased SN-DMN rsFC was associated with worse outcomes31. One of the important aspects of this research related to differential rsFC in those with addictions is that these networks may be targetable with interventions, such as transcranial magnetic stimulation, psychedelics, mindfulness, or more conventional methods (e.g., behavioral therapy).

Less of an emphasis has been placed on the role of anterior (aDMN) vs. posterior DMN (pDMN) in these large-scale networks, and much of the data on CUD has been collected from individuals who are not inpatient and not treatment-seeking (but see references26,30). In addition, data on the importance of large-scale rsFC as it relates to outcomes is still emerging. The primary aim of the study was to investigate differences in large-scale network rsFC between inpatient treatment-seeking individuals with CUD vs. controls (CONs). Secondarily, we then sought to examine possible differences in rsFC in relation to drug use outcomes and mental health symptoms. Based on prior data, we expected to find altered connectivity in CUD (vs. CONs) that would reflect reduced executive control (reduced SN-ECN rsFC); more internal rumination (increased SN-DMN rsFC; reduced DMN-ECN rsFC); and aberrant reward connectivity (e.g., reduced ST-ECN rsFC). To test these hypotheses, we built a classification framework based on the triple network model. The algorithm of group information guided independent components analysis (GIG-ICA)32 was used to identify the triple network components (aDMN and pDMN, left [lECN] and right [rECN] ECN, and SN) as well as two subcortical areas: ST and MTL. We then compared rsFC within and between these networks in CUD vs. CON groups, investigated rsFC associations with clinical outcomes, and explored rsFC relationships with mental health symptoms.

Results

Demographic information

Participants (CUD [n = 34], CONs [n = 38]) were matched on age (CUD: mean = 45.5 [standard error of the mean = ± 6.1]; CONs: 43.8 [± 3.8], p = 0.16), sex (CUD: 34 males, no females; CONs: 38 males, no females, p = 1.0], and head motion (CUD: 0.21 [± 0.12]; CONs: 0.17 [± 0.08], p = 0.07).

CUD participants also provided additional data, including years of cocaine (17 [± 8.69]) and alcohol (16.5 [± 13.19]) use; history of cannabis (48.5%) and heroin (3%) use; history of prior emotional, physical, and/or sexual abuse (54.5%); and mental health symptoms (Beck’s Depression Index - II = 9.33 [± 8.23]; Beck’s Anxiety Index = 6 [± 6.19]). The Mini-International Neuropsychiatric Interview (using DSM-IV criteria) found that 26% (8/34) and 16% (5/34) of CUD individuals also had alcohol and/or marijuana “dependence”, respectively.

Classification based on DMN/SN/ECN

Using the GIG-ICA method, the brain was divided into 25 functional networks (FNs). The DMN, the SN, and the ECN were identified with both visual inspection and automatic template matching with group ICA maps (Fig. 1). Among the 25 FNs, two aligned with aDMN and pDMN. The aDMN includes primarily the mPFC, and the pDMN includes primarily the posterior cingulate cortex. One FN aligned with the SN, which includes the anterior cingulate cortex and insula. Two FNs aligned with the rECN and lECN, which include primarily dlPFC and dorsal lateral parietal cortex. The support vector machine (SVM) classification model was based on the triple network to classify CUD vs. CON groups. This classifier with 10-fold cross-validation (repeated 10 times) achieved 77.1%± standard deviation = 1.7% accuracy, 73.8%±1.7% sensitivity, and 80.0%±2.2% specificity. The area under the curve (AUC) was 0.87 ± 0.01 (Fig. 2).

Fig. 1
figure 1

Seven of the twenty-five spatial maps of function networks obtained by GIG-ICA. Spatial maps were obtained via one-sample t test of independent components (z-score maps) of all participants (p < 0.05, FWE corrected). FN functional network, ECN executive control network, DMN default mode network, SN salience network, ST striatal regions, MTL medial temporal lobe.

Fig. 2
figure 2

The receiver operating characteristic (ROC) curves of the classifiers based on DMN/SN/ECN. The ROC curves for each of the 10-fold cross-validation runs are displayed in different colors. AUC area under curve.

Group differences (CONs vs. CUD) in RsFC among triple network FNs

CUD and CON groups differed in rsFC between two sets of triple networks (see Fig. 3; Table 1 for full stats). The groups differed in SN-aDMN rsFC, with the CUD group having stronger (and significantly positive) rsFC (t (68) = − 3.05, p = 0.003; Hedges g = 0.72) compared to the (non-significant) rsFC in CONs. They also differed in rECN-aDMN rsFC, with the CUD group having stronger (and significantly positive) rsFC (t (68) = − 2.81, p = 0.005; Hedges g = 0.67) compared to the (significantly positive) rsFC in the CONs. Both differences survived FDR correction. Full stats for one-sample t-tests (showing positive or negative triple network rsFC) are shown in Supplemental Tables S1-S2.

Fig. 3
figure 3

Resting State functional connectivity (rsFC) within the triple network, including the large-scale functional salience network (SN), default-mode network (anterior [aDMN] and posterior [pDMN]), and executive control network (left [lECN] and right [rECN]) between individuals with cocaine-use disorder (CUD) vs. controls (CONs). The CUD group showed significantly stronger positive rsFC among two pairs of networks: SN-aDMN and aDMN-rECN. *Significant difference between CON vs. CUD groups.

Table 1 CON vs. CUD on RsFC of triple network.

Group differences (CON vs. CUD) in RsFC among subcortical regions and triple networks

The ST and MTL were identified with both visual inspection and automatic template matching with group ICA maps (Fig. 1). The CUD and CON groups differed in four sets of subcortical regions and triple networks (see Fig. 4; Table 2). The groups differed in MTL-aDMN rsFC, with the CON group having stronger (and significantly positive) rsFC compared to the (non-significant) CUD rsFC (t (68) = 2.75, p = 0.009; Hedges g = 0.65). They differed in ST-aDMN rsFC, with the CON group having stronger (and significantly negative) rsFC compared to the (non-significant) CUD rsFC (t (68) = − 2.23, p = 0.036; Hedges g = 0.53). They differed in ST-lECN rsFC, with the CON group having stronger (and significantly negative) rsFC compared to the (non-significant) CUD rsFC (t (68) = − 2.61, p = 0.007; Hedges g = 0.62). Finally, they differed in ST-rECN rsFC, with the CON group having stronger (and significantly negative) rsFC compared to the (non-significant) CUD rsFC (t (52.3) = 2.42, p = 0.021; Hedges g = − 0.58). Results involving the MTL-aDMN and ST-lECN survived FDR correction, while the ST-aDMN and ST-rECN results did not. Full stats for one-sample t-tests (showing positive or negative rsFC between subcortical regions and triple networks) are shown in Supplemental Tables S3-S4.

Fig. 4
figure 4

Resting state functional connectivity (rsFC) between subcortical networks and triple networks, including striatum (ST), amygdala/hippocampal complex (i.e., medial temporal lobe [MTL]), as well as the large-scale functional networks: salience (SN), default-mode (anterior [aDMN] and posterior [pDMN]), and executive control (left [lECN] and right [rECN]) networks. These were compared between individuals with cocaine-use disorder (CUD) vs. controls (CONs). The CUD group showed significantly different rsFC among the following pairs of regions/networks: ST-aDMN, ST-lECN, ST-rECN, and MTL-aDMN. *Significant difference between CON vs. CUD groups.

Table 2 CON vs. CUD groups on RsFC of subcortical and triple networks.

Secondary: association with drug-use outcomes

Between network rsFC differences between the CON vs. CUD groups were tested for associations with clinical outcomes. Subgroups within the CUD group that had differing levels of drug-use outcomes were classified via hierarchical clustering, with three outcome groups identified (see methods, High, Low, and Intermediate drug-use outcomes). One-way ANOVA showed significant differences between CON and drug-use groups (total = 4 groups: Control, Low, Intermediate, and High) in aDMN-rECN rsFC (F(3,66) = 2.85, p = 0.044, η2 = 0.12, CI95 [0 0.24]), SN-aDMN rsFC (F(3,66) = 4.49, p = 0.006, η2 = 0.17, CI95 [0.02 0.30]), ST-aDMN (F(3,66) = 3.61, p = 0.018), and ST-rECN rsFC (F(3,66) = 4.31, p = 0.008, η2 = 0.17, CI95 [0.01 0.30]). SN-aDMN, ST-aDMN, and ST-rECN survived FDR correction. Post-hoc tests, Tukey corrected, revealed the “High” group had significantly stronger rsFC compared to CONs for SN-aDMN (CONs vs. High, p = 0.01), ST-aDMN (CONs vs. High, p = 0.009), and ST-rECN rsFC (CONs vs. High, p = 0.004) (Fig. 5).

Fig. 5
figure 5

Associating resting state functional connectivity (rsFC) with clinical outcomes comparing controls (CONs) and subgroups within the cocaine use disorder group (CUD) based on drug use (High, Low, Intermediate). The group with “High” drug-use outcomes showed significantly difference rsFC (compared to CONs) among the following pairs of networks/regions: SN-aDMN, ST-aDMN, and ST-rECN. ST striatum, a/pDMN anterior/posterior default mode network, MTL medial temporal lobe, SN salience network, l/rECN left/right executive control network. #Significant main effect of group. *Significance difference between CUD subgroup and the CON group.

Exploratory: correlation of RsFC with other drug use outcomes and mental health variables

Between-network differences between groups were explored for relationships with prior years of drug use, depression symptoms, and anxiety symptoms (Supplementary Table S5). SN-aDMN rsFC significantly correlated with the Beck Anxiety Inventory (BAI) in the CUD group (r (33) = 0.39, p = 0.024), a result that did not survive FDR correction (Supplementary Fig. S1).

Discussion

The present study found differential rsFC between people with CUD and CONs both within the triple network model and between the triple networks and subcortical regions (i.e., striatum, amygdala, and hippocampus) using complementary statistical analyses. The pattern classification analysis demonstrated that the networks of the triple network model provided discriminative information to distinguish CUD and CON with an AUC of 0.87, and voxel-wise comparisons highlighted specific network rsFC differences between CUD and CON groups. The primary differences in the triple network occurred between the aDMN and other networks, specifically with CUD (vs. CONs) showing medium sized effects of increased SN-aDMN and aDMN-rECN rsFC. Cohen’s U3 showed that SN-aDMN and aDMN-rECN rsFC was greater than the CON group means in approximately 75% and 76% of the CUD group, respectively. Between subcortical structures and the triple network, participants with CUD generally had a lack of rsFC and differed significantly from CONs for ST-aDMN, ST-ECN (both left and right), and MTL-aDMN rsFC. These effects were all medium in size, with Cohen’s U3 showing that 74% of the CUD group had MTL-aDMN rsFC greater than the CON group mean, while 70–73% of the CUD group had rsFC lower than the CON group mean for aDMN-ST, ST-lECN, and ST-rECN. Across types of analyses, our primary findings highlight consistent differences between the CUD and CON groups in large-scale network connectivity, especially involving the aDMN (but not pDMN). Secondary results found differential rsFC involving ST and aDMN was associated with worse drug-use outcomes. Exploratory results suggest higher SN-aDMN rsFC may correlate with more anxiety symptoms, though more data is needed.

Aberrant within and between network rsFC involving the DMN is common among many addictions. A recent review summarized findings in the SUD population and found that, generally, long-term drug-use is associated with disrupted dynamics between the DMN, SN, and ECN; and cessation of substances (and accompanying withdrawal) seems to correspond with increased rsFC between the SN and DMN but decreased rsFC within the DMN and between the ECN and DMN33. However, another study found a decrease in rsFC between the SN and DMN23, results which may have been due to differences in methodological approaches (e.g., nicotine use prior to scan) and/or population (e.g., non-treatment seeking). Using nicotine (e.g., smoking cigarettes) has been shown to shift rsFC away from SN-DMN and toward SN-ECN19. Disruptions between the SN and DMN may facilitate increased sensitivity to internal sensations, stress, and negative emotions, resulting in cravings, while disruptions between the DMN and ECN may interfere with cognitive control over internal rumination and drug craving, impeding decision-making33. The present results indicate the importance of the anterior DMN, as results showed differential rsFC involving the aDMN (but not pDMN), contrary to findings from previous studies33. Research distinguishes functionality of the aDMN and pDMN, with processes related to regulation/inhibition and interoception, respectively. In this study, discrepant results may be due to several factors, including timing of substance cessation, opportunity to use nicotine prior to the scan, and role of aDMN.

The present study suggests aberrant rsFC in CUD between subcortical regions and other triple networks (Fig. 4, Supplemental Table S3). With the exception of the MTL-aDMN rsFC, the CON group displayed primarily negative rsFC between subcortical regions and triple networks (Fig. 4, Supplemental Table S4), and the CUD lacked this inverse relationship in MTL-aDMN rsFC as well as both ST-aDMN and ST-rECN rsFC. Together, the lack of rsFC in CUD and the significant negative rsFC in CONs between subcortical and triple networks resulted in significant group differences. Results may be related to interference of reward-seeking on self-focused or executive function and impact decision-making related to substance use33,34. A recent meta-analysis in substance-use disorder found reduced rsFC between subcortical regions and both DMN and ECN regions, with results primarily driven by CUD studies26. Reduced rsFC between subcortical and cortical networks may be indicative of impaired decision-making and regulation of negative affect33,35. In contrast, one study found that CUD was associated with increased connectivity between the ST and pre-frontal cortical regions; a result driven by differential trait impulsivity36.

Our secondary results showed differential connectivity involving ST and aDMN was associated with drug-use outcomes (i.e., percent positive UDS), in that participants with CUD and “High” drug use outcomes had significantly different (stronger positive) rsFC compared to CONs in SN-aDMN, ST-aDMN, and ST-rECN. Those with “Low” drug-use outcomes generally had more negative rsFC, which was similar to CONs. To our knowledge, this is the first paper to show that a differential rsFC between subcortical regions and aDMN or rECN may be predictive of worse drug-use outcomes. Results may indicate that negative ST-aDMN rsFC protects against drug use motivation by preventing interference of ST reward activation during self-focused DMN activity. Exploratory analyses found a positive (uncorrected) correlation between increased SN-aDMN rsFC and higher concurrent anxiety. If this exploratory finding were to be confirmed by future studies, it may align with studies showing altered SN-DMN rsFC in anxiety disorders37,38, perhaps reflecting impairment when goal directed attention (driven by the SN) and self-focused attention (driven by the aDMN) interfere with each other39,40.

Present results are generally in line with previous literature showing aberrant SN and/or DMN rsFC associating with worse clinical outcomes30,31, suggesting aberrant rsFC involving the DMN may be tied to craving, relapse, and increased drug-cue reactivity33. In addition, studies have found that increased (positive) rsFC between nodes in the SN with nodes in the DMN was associated with opioid relapse21, but rsFC between these same nodes were decreased when stabilized on methadone27. Other examples in the addiction literature have demonstrated negative connectivity associated with cocaine-use outcomes, including one that reported enhanced negative connectivity between nodes in aDMN and nodes in the ECN, suggesting impairment in cognitive control networks even after four weeks of abstinence24.

Targeting regions within the aDMN (e.g., mPFC) may be a viable intervention for CUD. For example, studies have shown that stimulation (e.g., via transcranial magnetic stimulation) of the mPFC decreases cocaine use41 and affects rsFC42. Additional lines of research examining changes following cognitive behavioral therapy (CBT) have demonstrated decreased activations in mPFC and treatment related changes within DMN and SN43. As CBT approaches have evidenced efficacy for the treatment of anxiety disorders44, and findings indicate CBT modulates FC between DMN, nodes within the SN and other neural networks45,46, components of CBT may complement approaches aimed at reducing the anxiety-linked SN-aDMN rsFC suggested by the present study. Emerging evidence suggests classic psychedelic (e.g., psilocybin) interventions may alter rsFC in large-scale networks47,48, which could address the disrupted FC patterns associated with CUD25.

There are several limitations to the present study. For example, this was a secondary analysis, utilizing datasets from separate CUD and CON studies. The CUD data were collected over the span of a decade from individuals with CUD in the local region, who historically have primarily consisted of males; thus, application to other populations may be limited. The CON group was obtained from an existing dataset, and thus some information was limited. Future studies corroborating results could strengthen findings by ensuring identical, contemporaneous data-collection procedures for both groups. On average, 38% of participants were retained at the end of the 8-week outcome phase, and approximately 34% of urine samples were missed. In this paper, and in the field generally, missing UDS are conventionally scored as ‘positive’, as the reason for missed appointments is often related to drug use (e.g., see49). Additionally, CUD participants were allowed to use nicotine (e.g., smoke cigarettes) before the scan; however, we do not have additional information about which participants specifically used nicotine and exactly when. In addition, there is no clear consensus on how to interpret negative rsFC, as it may relate to factors such as activation in opposite directions50, spatial distance and lack of efficiency51, and/or methodology52. Finally, the sample size is relatively small, and therefore a 10-fold cross-validation (CV) strategy was adopted to maximize the use of available data for both training and validation, with a risk of overfitting. Larger datasets (e.g., ABCD, Human Connectome Project) may be used in future studies to test replicability of findings and evaluate the classification performance with independent test datasets.

In conclusion, this study used pattern classification of large-scale brain networks to distinguish CUD and CON groups, with the most robust differences involving the aDMN, including SN-aDMN and aDMN-rECN rsFC. In addition, individuals with CUD generally had reduced rsFC between the triple network and subcortical regions, including ST-aDMN, ST-ECN, and MTL-aDMN. Secondary results found differences between drug-use groups, with high cocaine use associating with higher (positive) ST-aDMN, ST-rECN, and SN-aDMN rsFC compared to CONs (who showed lower negative rsFC). Further, exploratory results suggest higher (positive) SN-aDMN rsFC correlates with higher anxiety scores. These results add to the growing literature showing aberrant triple network and subcortical rsFC is associated with substance use disorders and suggest aDMN rsFC as an important underlying neural correlate of CUD and potential target for intervention.

Methods

Participants

This secondary analysis utilized data from 50 with CUD who were treatment-seeking and willing to go inpatient for 7–10 days. At the end of the inpatient stay, participants underwent a functional magnetic resonance imaging (fMRI) session, followed by an eight-week outpatient phase. In addition, 52 CONs were selected from a previous dataset to be used as a comparator group53. Inclusion/exclusion criteria for CUD have been described previously54. In total, 38 CONs and 34 with CUD were included in the analysis based on the following criteria: participants had structural MRI data and resting-state fMRI data; head motion was minimal (see data preprocessing), resulting groups were matched on age, sex, and head motion; Individuals with a current DSM diagnoses (other than substance-use disorder in CUD), lifetime history of head injury with loss of consciousness for more than 3 min, contraindications for MRI, and clinically significant medical conditions were excluded. This study was conducted in accordance with the Declaration of Helsinki and was approved by the University of Pennsylvania Institutional Review Board. The participants provided informed written consent to participate in the study.

Behavioral and outcomes measures

The CUD group completed mental health questionnaires at baseline (approximately 7–10 days prior to scanning), including the Beck Depression Inventory - II (BDI-II)55 and the BAI56. In addition, participants were asked to visit the study center twice per week for eight weeks to submit a UDS. Percent positive UDS (for cocaine) was calculated by counting the number of positive or missing UDS and dividing by the total number of opportunities (n = 16) to submit a UDS.

fMRI data acquisition

A 3 Tesla SIEMENS MR scanner (Erlangen, Germany) was used to obtain the structural MRI data (T1-weighted images) and resting-state fMRI data of all participants. The resting scan for each group followed standard procedures and was approximately 5 min in duration. Participants were instructed to recline in the scanner gantry with their heads stabilized by foam padding and to close their eyes (but not fall asleep). The scanner parameters for CUD: T1-weighted images were: TR = 1620 ms; TE = 3.87 ms; FA = 15 degrees; matrix = 192 × 256; slice thickness = 1 mm; and 160 slices. The resting-state fMRI data were scanned by the following parameters: TR/TE = 2000/30 ms; FOV = 220 × 220 mm; matrix = 64 × 64; FA = 90°; slice thickness = 4.5 mm; 32 interleaved even slices; and 150 volumes. For the CONs, resting-state fMRI data were acquired using a gradient echo echo-planar imaging sequence (FOV = 220 mm, 64 × 64 × 64 matrix, slice thickness = 4 mm, TR = 2s, TE = 24ms, 150 volumes with no inter-slice gap.

Data preprocessing

All T1-weighted images were performed with bias correction and segmentation to transform resting-state fMRI data from native space to standard space. The bias correction was implemented by an improved N3 algorithm57. The segmentation of T1-weighed images was implemented by DARTEL toolbox in Statistical Parametric Mapping (SPM12, Wellcome Department of Cognitive Neurology, London, UK, http://www.fil.ion.ucl.ac.uk/spm) software. Then, we conducted the preprocessing of resting-state fMRI data using SPM 12 and AFNI (https://afni.nimh.nih.gov/). Considering the magnetization equilibration, the first 6 time points of each time series were removed. The remaining fMRI volumes underwent de-spiking, slice correction, and head realignment. In order to reduce the effect of head motion, fMRI data with excessive head motion were excluded, i.e., (1) translational or rotational motion parameters were over 2 mm or 2° and (2) root mean square of framewise displacement (RMSFD) was over 0.5 mm. The intensity of each resting-state fMRI was scaled to make the mean value of the whole brain 1,000. The nuisance covariate effects of the white matter and cerebrospinal fluid, as well as 6 rigid head motion parameters, were removed. Subsequently, temporal band-pass filtering (0.01 < f < 0.08 Hz) was performed, and the fMRI data were normalized to the Montreal Neurological Institute (MNI) space via the segmented results of T1-weighted images. The normalized fMRI data were then resampled to 3 mm × 3 mm × 3 mm voxels. The Gaussian kernel with a full-width at half-maximum (FWHM) of 6 mm was used to smooth the data.

Identification of networks and classification

GIG-ICA was applied to compute the specific independent components of each participant with correspondence across all participants32. First, the tool Melodic (default setting) in FSL was used to compute the group template with 25 independent components (referred to as functional networks [or FNs] throughout) based on the preprocessed resting-state fMRI data of both the CON and CUD groups. Then the group template was used as a reference to calculate participant specific independent components and their corresponding time series with a multi-objective optimization solver. Subsequently, 7 FNs (ST, MTL, SN, aDMN, pDMN, lECN, and rECN) were identified with both visual inspection and automatic template matching with group ICA maps (Fig. 1).

A classifier based on the triple network model was built to differentiate the CUD group from the CON group. The FNs of these three resting-state networks were used as the basis for a linear subspace and were analyzed on the Grassmann manifold to calculate Riemannian distance. Networks were mapped on the Grassmann manifold58 to construct a subspace distance metric, which implemented the whole network as the feature in the classification59. Then, the Riemannian distance was used in conjunction with a support vector machine (SVM) to build the classifier53,60,61. A 10-fold CV was used to evaluate the performance of the classifier. Specifically, all participants were randomly divided into 10 subsets with equal or almost equal size. These 10 subsets were used in 10 training-testing runs. In each run, one of the 10 subsets was used as the testing set as the other nine subsets were used as the training set. The training-testing runs were repeated until all 10 subsets had been used as the testing set. Then, the accuracy of the classification, the sensitivity, and the specificity were calculated based on the 10 training-testing runs. A receiver operating characteristic (ROC) curve and the AUC were also computed based on classification scores of all participants. In order to avoid statistical bias, the 10-fold CV was repeated 10 times.

Statistical analysis

A voxel-wise rsFC map of each FN was obtained by computing the Pearson correlation coefficient between the time series of the FN and that of each voxel in the gray matter and then transformed using Fisher’s z-transformation. Such comparisons of rsFC maps enable identification of voxel-wise differences in FNs between the CON and CUD groups, complementary to the patten classification study that compares multiple FNs jointly. Then, two-sample t tests, with percentile bootstrapping (1,000 samples) and 95% confidence intervals (CI), were conducted to compare the rsFC map of each FN between the CON and CUD groups. Statistics are reported in Tables 1 and 2 (and Supplementary Tables S1-S4), including t values, p values, mean differences, confidence intervals, and Hedges g. Significant differences between the CON and CUD groups were tested for associations with mental health and drug use outcome variables. Subgroups within the CUD group that had differing levels of drug-use outcomes were classified via hierarchical clustering, with three outcome groups identified. Those with urine drug-screen (UDS) scores that averaged < 40% positive were labeled as the relatively “Low” drug-use group (n = 9); those with average UDS scores of > 85% positive were labeled as the relatively “High” drug-use group (n = 13); and those that fell in between 40% and 85% were labeled as the “Intermediate” (Int) drug-use group (n = 12). Total sum scores for the BAI and BDI-II were calculated and used as continuous measures. Spearman’s correlation was used to test associations between rsFC and outcome variables, because the drug-use, mental health, and behavioral variables were non-normally distributed. Though our significance threshold was set at p < 0.05 and we report FDR correction results, we opted for results to be presented primarily via estimation methods both to move away from “null hypothesis significance testing” and to highlight the importance of effect sizes and confidence intervals62. Interpretation of effect sizes was aided by reporting proportion of distribution overlap between groups63.