Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2025 Oct 3.
Published in final edited form as: Proc IEEE Int Symp Biomed Imaging. 2025 May 12;2025:10.1109/isbi60581.2025.10980810. doi: 10.1109/isbi60581.2025.10980810

INDIVIDUALIZED TRAJECTORY PREDICTION OF EARLY DEVELOPING FUNCTIONAL CONNECTIVITY

Weiran Xia 1,2, Xin Zhang 1,*, Dan Hu 2, Jiale Cheng 2, Zhengwang Wu 2, Li Wang 2, Weili Lin 2, Gang Li 2,*
PMCID: PMC12490125  NIHMSID: NIHMS2112027  PMID: 41050556

Abstract

Predicting the development of functional connectivity (FC) derived from resting-state functional MRI is pivotal for elucidating the intrinsic brain functional organization and modeling its dynamic development during infancy. Existing deep learning methods typically predict FC at a target timepoint from each available FC independently, yielding inconsistent predictions and overlooking longitudinal dependencies, which introduce ambiguity in practical applications. Furthermore, the scarcity and irregular distribution of longitudinal rs-fMRI data pose significant challenges in accurately predicting and delineating the trajectories of early brain functional development. To address these issues, we propose a novel Triplet Cycle-Consistent Masked Autoencoder (TC-MAE) for the trajectory prediction of the development of infant FC. Our TC-MAE has the capability to traverse FC over an extended period, extract unique individual characteristics, and predict target FC at any given age in infancy with longitudinal consistency. Extensive experiments on 368 longitudinal infant rs-fMRI scans demonstrate the superior performance of the proposed method in longitudinal FC prediction compared with state-of-the-art approaches.

Index Terms—: Functional Connectivity, Longitudinal Trajectory Prediction, Infant

1. INTRODUCTION

Functional connectivity (FC) derived from resting-state functional magnetic resonance imaging (rs-fMRI) plays a vital role in unraveling the intricate brain functional organization [1]. Researches on FC and its applications span a variety of fields. These include mutual prediction between FC and structural connectivity [2, 3], prediction between awake-state FC and sleep-state FC [4], and early detection of brain diseases based on FC [5]. Of note, subtle abnormal changes in FC during infancy may undergo significant amplification as various developmental processes unfold, resulting in more profound adverse effects [6], compared to FCs of adults. Predicting FC can help address issues such as longitudinal data augmentation, missing data imputation, identification of crucial biomarkers in functional organization, advancing our understanding of developmental patterns and mechanisms of individualized functional organization. However, current approaches primarily treat FC prediction at different timepoints as isolated tasks, neglecting the cross-correlation of FC across ages, resulting in poor temporal coherence and ambiguity in practical applications. Moreover, due to the strong motion effect and long acquisition time, current limited longitudinal infant FC data with highly irregular temporal distributions causes huge difficulties in individual feature learning and prediction. Despite the adoption of various advanced techniques [2, 7], the above issues remain inadequately addressed. As a result, predicting the individualized FC trajectory in infants becomes a task that is highly desired but challenging.

To address these challenges, we propose a novel Triplet Cycle-Consistent Masked Autoencoder (TC-MAE) for the longitudinal individualized prediction of early developing FC. The model can traverse FC over an extended period, extract unique individual characteristics, and predict the developmental trajectories of FC across ages during infancy. Specifically, 1) instead of predicting FC at different timepoints independently, we introduced the dynamic time warping loss [8], which is widely used to assess the similarity between time series, along with a cycle-consistent scheme to utilize longitudinal trajectory information across subjects’ ages, thus enabling more accurate predictions of the developmental trajectories of FC; 2) to address the issue of limited infant FC data, inspirated by Masked Autoencoder [9], we designed a Masked Autoencoder tailored specifically for FC prediction. To this end, we leveraged abundant adult FC data to pretrain a robust feature extraction encoder and extend its effectiveness to infant FC; 3) we introduced a dual-triplet network aiming at effectively disentangling age-related and identity(ID)-related information, thus accurately separating brain development-related features from ID-related ones. Then, ID-related features will be fused with developmental information by a dedicatedly designed identity conditional module to generate FCs for infants at all ages. Experiments on 368 longitudinal infant rs-fMRI scans demonstrate the superior performance of the proposed method in longitudinal FC prediction compared with state-of-the-art approaches.

2. METHODS

2.1. Architecture Overview

The architecture of our proposed Triplet Cycle-Consistent Masked Autoencoder (TC-MAE) is shown in Fig. 1. Specifically, we separately design a model backbone and three key stages of training: Pretraining, Triplet Reconstruction, and Longitudinal Prediction. Following these three stages, the model backbone can generate individualized FC development trajectory for any subject during the testing phase.

Fig. 1.

Fig. 1.

The framework of the proposed Triplet Cycle-Consistent Masked Autoencoder (TC-MAE) includes three stages: pretraining, triplet reconstruction, and longitudinal prediction. In the pretraining stage, only the encoder and decoder are trained, while all components are involved in the subsequent stages.

Specifically, to predict infant FC across ages and capture individualized, temporally coherent FC progression, our proposed model backbone, TC-MAE, is composed of three key components, i.e., an encoder and a decoder, a feature disentanglement module, and an identity condition module. The training stage of this model contains three distinct sub-stages. In the Pretraining stage, the encoder and decoder of a Masked Autoencoder are pretrained using abundant adult FC data to capture the underlying relationships between different patches in FC. In the Triplet Reconstruction stage, we establish a new triplet network configuration consisting of three parallel branches of the backbone that can share weights. All components are trained at this stage to capture more latent relationships in FC. Simultaneously, an Identity Conditional Module (ICM) is employed to incorporate age-related information, while the triplet network disentangles individual ID-related information and age-related information. The Longitudinal Prediction stage introduces a ring prediction mechanism across multiple timepoints and leverages specific loss to capture longitudinal information in infant FC development. This novel approach aims to preserve temporal consistency in prediction results, ensuring a coherent developmental trajectory of FC. Finally, in the testing stage (Fig. 1(e)), the trained model takes an available FC as input to jointly predict multi-time-point FC during infancy.

2.2. Pretraining Stage

To address the scarcity of infant FC data, we leverage abundant adult FC data for pretraining to learn and extract FC domain features. We specifically tailored the Masked Autoencoder [9] for FC, as depicted in Fig.1(a), which has outstanding ability to extract domain and holistic information from FC as a pretraining framework. In our model, unlike dividing images into square patches in traditional MAE, we dissect the FC matrix x into n patches by rows to keep the FC features of each row corresponding to a brain region. We use random mask module, which selectively obscures most of patches each time with a ratio φ, denoted as Masked(x,φ). The consecutive reconstruction task is designed to compel the encoder E to focus on global information from the unmasked patches and restore the entire FC by the decoder G. Based on the mean square loss, the pretraining loss of the entire Pretraining Stage is defined as follows:

PT=G(E(Masked(x,φ)))-x22 (1)

2.3. Triplet Reconstruction Network

To effectively disentangle mixed age-related and ID-related information and extract features from the source FC, we introduce a triplet design [10] and structure the training samples in units xit1,xit2,xjt1, where the first two elements represent FCs from the same individual i at different ages t1 and t2, and the third element is an FC from a different individual j at age t1. As depicted in Fig.1 (b), during the stage of triplet reconstruction, the encoder E and decoder G trained in the previous stage will be retained and fine-tuned using infant FC data. A shared ID extractor and an age extractor disentangle the the output of the encoder into two distinct components: I and A, representing ID-related and age-related information, respectively. A is then channeled into an age predictor P, a key downstream task that enhances the effectiveness of the disentanglement. The age prediction loss is defined as follows: age=Σx=xit1,xit2,xjt1yx-PAx. Where yx is the real age of the FC x.

Simultaneously, the I is directed to the identity conditional module (ICM), designed to learn identity-restricted age-conditional progression patterns. The ICM, as shown in Fig. 1(d), containing a fully connected feed-forward network, can convert the input I into a feature representation based on the age group and select the corresponding feature according to the input target age condition. This process is repeated six times to enhance extraction effect, and finally, the result is input into the decoder G to complete the reconstruction. The reconstruction is evaluated using Pearson’s correlation coefficient (pcc) and mean absolute error (mae), which measure the similarity between the source FC x and the recovered FC xˆ=G(ICM(I,t)). The pcc loss, mae loss and the joint reconstruction loss are defined as:

reconpcc=Σx=xit1,xit2,xjt1C(x,G(ICM(I,t))) (2)
reconmae=Σx=xit1,xit2,xjt1x-G(ICM(I,t))1 (3)
recon=reconmae-βreconpcc (4)

where tt1,t2, corresponding to the subjects’ age, C represents the Pearson’s correlation and β balances the respective loss terms.

To enhance the discrimination of I and A among different subjects, we incorporate a dual intensive triplet loss. Specifically, Iit2 and Ijt1 are serving as the ID-positive and ID-negative samples for Iit1, while Ajt1 and Ait2 represent the age-positive and age-negative samples for Ait1. This dual intensive triplet loss is defined to enforce the similarity of the features of similar-age pairs and same-ID pairs as follows:

triID=CIit1,Ijt1+CIit2,Ijt1-2*CIit1,Iit2 (5)
triAge=CAit1,Ait2+CAjt1,Ait2-2*CAit1,Ajt1 (6)
tri=LtriID+LtriAge (7)

Finally, the loss of the triplet reconstruction network, TR, integrating the age prediction loss, intensive triplet loss, and joint reconstruction loss, is designed as: TR=recon+αage+δtri, where α and δ govern the impact of age prediction loss and dual intensive triplet loss, respectively.

2.4. Longitudinal Prediction

To reinforce the temporal consistency between longitudinal FCs, we introduce a Longitudinal Prediction Network (Fig. 1(c)), to predict the trajectory 𝒯i=xˆi1,,x^im, which consists of a set of predicted FCs across the first two years of age. A dynamic time warping (DTW) loss [8] is adopted to ensure the predicted trajectories based on different inputs for the same subject are similar. The DTW loss for N subject is calculated as:

DTW=Σi=1NsoftDTWγ𝒯it1,𝒯it2 (8)

where softDTWγ is the dynamic time warping distance, γ is set to 0.1 and 𝒯it1 and 𝒯it2 are the predicted trajectories based on t1 and t2, respectively. Meanwhile, inspired by [11] in image translation, we incorporate a decoder with additional constraints on backward mapping, ensuring the consistency of longitudinal predictions. After generating the FC trajectory from t1, we select one FC, xˆit2, which has a ground truth at the corresponding timepoint t2, and perform a reverse mapping to predict the original input FC: x^it2=GICMIit1,t2,x^^it1=GICMI^it2,t1. We then impose a cycle-consistency loss to ensure both the generated FC xˆit2 and the reconstructed FC x^^it1 are meaningful representations of the target FC xit2 and the original FC xit1. The cycle-consistent loss cycle and the overall prediction loss Pre are defined as follows:

cycle=εxit2-x^it222+xit1-x^^it122 (9)
Pre=LDTW+Lcycle (10)

3. EXPERIMENT

3.1. Dataset

During the pretraining stage, we employ 2,171 resting-state fMRI scans of 1,086 adult subjects from the Human Connectome Project (HCP) dataset [12]. In the subsequent stages, we utilize 368 longitudinal resting-state fMRI scans of infants aged younger than 600 days from the Baby Connectome Project (BCP) dataset [13]. After a detailed investigation of the dataset, we divide the BCP dataset into six temporal partitions, which are [1, 60], [61, 120], [121, 210], [211, 300], [301, 450] and [451, 600] days, corresponding to six early developing periods. This non-uniform division captures infants’ rapid developmental changes in the first 6 months with finer temporal granularity. For infant structural and functional MRI processing, we follow the methodologies detailed in [10, 14, 15, 16] to extract the fMRI time-series for each vertex on middle cortical surfaces, all-time series within each cortical region are then further averaged based on the parcellation scheme in [17]. We compute functional connectivity using Pearson’s correlation and Fisher’s r-to-z transformation, focusing on the absolute value of FCs [18]. All subjects are stratified and split into training and testing set with a portion of 4:1, and a 5-fold cross-validation in training set is used for tuning the parameters.

3.2. Implementation Details and Ablation Study

The encoder and decoder adopt the ViT-base model [19]. The ID extractor, age extractor and age predictor consist of fully connected layers with dimensions (768, 668), (768, 100) and (100, 1), respectively. An ablation study is conducted to evaluate the contributions of all components. The experimental results (Table 1) indicate that all components of TC-MAE contribute to the result. Our Pretraining stage successfully captured domain features, and the Triplet Reconstruction Network along with Longitudinal Prediction Network further enhanced the model’s robustness and accuracy.

Table 1.

Ablation study of TC-MAE (Mean ± Std).

Method mae pcc
TC-MAE 0.104 ± 0.02* 0.790 ± 0.06*
w/o Pretraining 0.136 ± 0.03 0.726 ± 0.09
w/o Triplet Reconstruction 0.120 ± 0.03 0.780 ± 0.09
w/o Longitudinal Prediction 0.120 ± 0.02 0.752 ± 0.07
*

indicates statistically significantly better results than other methods with p-value<0.05.

3.3. Evaluation and Comparison

We conduct comprehensive comparisons with the following approaches: the MLP-type network [7], which incorporates source FC with the target age information by one-hot encoding; the multi-marginal Wasserstein GAN (MWGAN) [21], which defines a generator for the target FC prediction at each age; the multi-GCN based generative adversarial network (MGCN-GAN) [22], which generates FCs from different ages by adjusting the weight of each branch; and the Conditional Intensive Triplet Network (CITN) [20], which uses a similar triplet scheme for prediction. The comparison results for a representative individual are displayed in Fig. 2(a). Notably, in comparison to TC-MAE, the results from other methods lack details and fail to accurately preserve FC features. Table 2 further reinforces these observations by presenting average prediction results across subjects using various methods, highlighting the superior effectiveness of our proposed TC-MAE in predicting of FC development during infancy.

Fig. 2.

Fig. 2.

(a) FC predictions from TC-MAE and four competing methods are shown. The first column shows the input and ground truth, and the last five columns display the predictions and difference maps, with exemplary parts highlighted in red and yellow in the third row. (b) Comparison of predicted trajectories from various timepoints using different methods, with the source input indicated by the star.

Table 2.

Comparison between TC-MAE and other competing methods (Mean ± Std).

Method mae pcc
TC-MAE (proposed) 0.104 ± 0.02* 0.790 ± 0.06*
CITN [20] 0.116 ± 0.03 0.766 ± 0.06
MWGAN [21] 0.111 ± 0.01 0.755 ± 0.01
MGCN-GAN [22] 0.132 ± 0.06 0.710 ± 0.05
MLP [7] 0.148 ± 0.02 0.500 ± 0.01
*

indicates statistically significantly better results than other methods with p-value<0.05.

Furthermore, to compare the methods in preserving longitudinal consistency, we illustrated individual-level functional network trajectories predicted from different timepoints in Fig. 2(b). Each brain region in the Desikan-Killiany atlas was assigned to its corresponding network [23], and the inter- and intra-network FCs were calculated by averaging the FCs related to the corresponding regions. We selected the visual network as the representative to demonstrate the individual trajectories. As shown, compared with other approaches, TC-MAE better captures the dynamic features of longitudinal development and aligns more closely with the actual developmental trajectory.

4. CONCLUSION

This study introduces the Triplet Cycle-Consistent Masked Autoencoder (TC-MAE) for individualized infant FC trajectory prediction. We use Longitudinal Prediction network to reinforce the temporal coherence of different timepoints. We adapted the Masked Autoencoder to learn domain knowledge and holistic information from FC by performing pretraining leveraging abundant adult FC data. Additionally, we employed the Triplet Reconstruction Network to effectively disentangle mixed age-related and ID-related information, enabling individualized prediction. The promising results on the BCP dataset underscore the superiority of our model in predicting FC trajectories during infancy.

ACKNOWLEDGMENTS

This work was supported in part by NIH grants (MH123202).

Footnotes

COMPLIANCE WITH ETHICAL STANDARDS

This research study was conducted retrospectively using human subject data made available in open access by Human Connectome Project and Baby Connectome Project [12, 13]. Ethical approval was not required as confirmed by the license attached with the open access data.

REFERENCES

  • [1].Heuvel M and Pol H, “Exploring the brain network: a review on resting-state fmri functional connectivity,” European neuropsychopharmacology, vol. 20, no. 8, pp. 519–534, 2010. [DOI] [PubMed] [Google Scholar]
  • [2].Zhang L, Wang L, and Zhu D, “Recovering brain structural connectivity from functional connectivity via multi-gcn based generative adversarial network,” in MICCAI. Springer, 2020, pp. 53–61. [Google Scholar]
  • [3].Gao X, Zhang X, Zhang L, et al. , “Predicting diverse functional connectivity from structural connectivity based on multi-contexts discriminator gan,” in MICCAI. Springer, 2023, pp. 348–357. [Google Scholar]
  • [4].Hu D, Yin W, Wu Z, et al. , “Reference-relation guided autoencoder with deep cca restriction for awake-to-sleep brain functional connectome prediction,” in MICCAI. Springer, 2021, pp. 231–240. [Google Scholar]
  • [5].Wang L, Zhang L, and Zhu D, “Learning latent structure over deep fusion model of mild cognitive impairment,” in ISBI. IEEE, 2020, pp. 1039–1043. [Google Scholar]
  • [6].Gao W, Lin W, Grewen K, et al. , “Functional connectivity of the infant human brain: plastic and modifiable,” The Neuroscientist, vol. 23, no. 2, pp. 169–184, 2017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [7].O Tolstikhin I, Houlsby N, Kolesnikov A, et al. , “Mlp-mixer: An all-mlp architecture for vision,” Advances in NIPS, vol. 34, pp. 24261–24272, 2021. [Google Scholar]
  • [8].Cuturi M and Blondel M, “Soft-dtw: a differentiable loss function for time-series,” in International conference on machine learning. PMLR, 2017, pp. 894–903. [Google Scholar]
  • [9].He K, Chen X, Xie S, et al. , “Masked autoencoders are scalable vision learners,” in CVPR, 2022, pp. 16000–16009. [Google Scholar]
  • [10].Hu D, Wang F, Zhang H, et al. , “Disentangled intensive triplet autoencoder for infant functional connectome fingerprinting,” in MICCAI. Springer, 2020, pp. 72–82. [Google Scholar]
  • [11].Zhu J, Park T, Isola P, et al. , “Unpaired image-to-image translation using cycle-consistent adversarial networks,” in ICCV, 2017, pp. 2223–2232. [Google Scholar]
  • [12].Van Essen DC, Smith SM, Barch DM, et al. , “The wu-minn human connectome project: an overview,” Neuroimage, vol. 80, pp. 62–79, 2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [13].Howell BR, Styner MA, Gao W, et al. , “The unc/umn baby connectome project (bcp): An overview of the study design and protocol development,” NeuroImage, vol. 185, pp. 891–905, 2019. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [14].Hu D, Wang F, Zhang H, et al. , “Existence of functional connectome fingerprint during infancy and its stability over months,” Journal of Neuroscience, vol. 42, no. 3, pp. 377–389, 2022. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [15].Wang L, Wu Z, Chen L, et al. , “ibeat v2. 0: a multisite-applicable, deep learning-based pipeline for infant cerebral cortical surface reconstruction,” Nature protocols, vol. 18, no. 5, pp. 1488–1509, 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [16].Wang F, Zhang H, Wu Z, et al. , “Fine-grained functional parcellation maps of the infant cerebral cortex,” elife, vol. 12, pp. e75401, 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [17].Desikan RS, Ségonne F, Fischl B, et al. , “An automated labeling system for subdividing the human cerebral cortex on mri scans into gyral based regions of interest,” Neuroimage, vol. 31, no. 3, pp. 968–980, 2006. [DOI] [PubMed] [Google Scholar]
  • [18].Ran Q, Jamoulle T, Schaeverbeke J, et al. , “Reproducibility of graph measures at the subject level using resting-state fmri,” Brain and behavior, vol. 10, no. 8, pp. 2336–2351, 2020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [19].Dosovitskiy A, “An image is worth 16×16 words: Transformers for image recognition at scale,” arXiv preprint arXiv:2010.11929, 2020. [Google Scholar]
  • [20].Yu X, Hu D, Zhang L, et al. , “Longitudinal infant functional connectivity prediction via conditional intensive triplet network,” in MICCAI. Springer, 2022, pp. 255–264. [Google Scholar]
  • [21].Cao J, Mo L, Zhang Y, et al. , “Multi-marginal wasserstein gan,” Advances in NIPS, vol. 32, 2019. [Google Scholar]
  • [22].Zhang L, Wang L, Zhu D, et al. , “Predicting brain structural network using functional connectivity,” Medical image analysis, vol. 79, pp. 102463, 2022. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [23].Yeo BT, Krienen FM, Sepulcre J, et al. , “The organization of the human cerebral cortex estimated by intrinsic functional connectivity,” Journal of neurophysiology, 2011. [Google Scholar]

RESOURCES