Skip to main content
PeerJ logoLink to PeerJ
. 2026 Sep 30;14:e21439. doi: 10.7717/peerj.21439

Modular constraint-based joint dynamic functional brain graph learning model for identifying brain disorders

Peiming Xu 1,2,#, Yaru Li 3,#, Wei Si 4, Linmin Wang 4,✉, Xiao Jiang 4,✉
Editor: Feng Liu
PMCID: PMC13633691  PMID: 42829711

Abstract

Resting-state functional magnetic resonance imaging (rs-fMRI) captures spontaneous neural activity and has become a valuable tool for investigating functional alterations in brain disorders. A widely used strategy is to estimate functional connectivity (FC) between brain regions based on blood-oxygen-level-dependent (BOLD) signals, which can be further represented as functional brain graphs (FBGs). Despite promising results, existing methods typically rely on static FBGs derived from a single brain atlas, which limits their ability to capture the temporal variability of brain activity and integrate complementary anatomical information. Moreover, the modular organization of brain networks-an important feature linked to cognitive function and disease-has often been overlooked in model design. To address these limitations, we propose a modularity-constrained dynamic FBG learning framework for brain disorder classification. The proposed method integrates FBGs constructed from multiple brain atlases and captures dynamic spatio-temporal patterns using a sliding window strategy and a Transformer encoder. We employ a stochastic block model (SBM) to detect modular structures, and further incorporate modularity constraints into the training objective to enhance model interpretability and regularize learning. Experiments on the Autism Brain lmaging Data Exchange (ABIDE) and the REST-meta-MDD Consortium (REST-MDD) datasets demonstrate that our method achieves classification accuracies of 68.5% and 65.3%, respectively, outperforming conventional and competitive deep learning methods. This framework provides a novel perspective for dynamic modeling of brain functional connectivity and demonstrates potential for clinical application.

Keywords: Functional MRI, Graph learning, Brain atlases, Stochastic block model, Modularity constraint

Introduction

Resting-state functional magnetic resonance imaging (rs-fMRI) is a non-invasive technique that captures spontaneous fluctuations in blood-oxygen-level-dependent (BOLD) signals, offering a window into the brain’s intrinsic functional organization (Khosla et al., 2019; Zhang et al., 2025a; Shon et al., 2026). These signals are commonly used to construct functional brain graphs (FBGs) (Bullmore & Sporns, 2009; Sporns, 2011; Wang et al., 2025), where nodes represent brain regions-of-interest (ROIs) and edges quantify functional connectivity (FC), most commonly estimated using Pearson’s correlation (PC) (Poldrack, 2007; Sporns & Betzel, 2016). Unlike structural brain networks that characterize regional volume, cortical thickness, and the similarity of morphological features across brain regions (Cai et al., 2023), FBGs describe functional interactions between brain regions. FBGs provide a principled framework for characterizing network-level alterations in various neuropsychiatric disorders, including autism spectrum disorder (ASD), major depressive disorder (MDD) (Cohen et al., 2008; Han et al., 2022a), Alzheimer’s disease, and schizophrenia (Bullmore & Sporns, 2009; Fornito, Zalesky & Breakspear, 2015), as they capture whole-brain network interactions beyond isolated voxel- or region-level measurements, thereby enabling a more comprehensive characterization of functional brain alterations.

Recent advances in graph neural networks (GNNs) (Scarselli et al., 2008) and module detection techniques (Poldrack, 2007; Sporns & Betzel, 2016) have enhanced the capacity to extract informative and interpretable features from FBGs. These features hold significant potential for uncovering abnormal network patterns and improving the classification of brain disorders (Fornito, Zalesky & Breakspear, 2015). However, FC is not static; instead, it exhibits temporal variability even during rest. Modern neuroimaging studies show that fMRI-derived brain networks exhibit dynamic interactions between regions. These dynamics are crucial for understanding brain function and the pathological mechanisms of brain disorders (Fornito et al., 2012; Wu et al., 2011; Liu et al., 2017). This highlights the need for learning frameworks that can capture not only the modular structure but also the temporal dynamics of functional brain networks. Recently, Transformer-based architectures have demonstrated success in learning from sequences and dynamic graphs (Bedel et al., 2023; Kim et al., 2024). By attending to all time points in parallel, the self-attention mechanism can effectively capture long-range temporal interactions, offering a promising direction for modeling time-varying brain networks.

Beyond temporal dynamics, another notable limitation of existing methods lies in their reliance on a single brain atlas for graph construction. Although most previous studies have focused on brain graphs constructed from a single parcellation atlas, recent work suggests that different atlases capture complementary aspects of brain networks (Chu et al., 2022). However, integrating information from multiple atlases in a principled way remains an open challenge. Existing multi-view learning methods (Chu et al., 2022; Mahler et al., 2023) often treat atlas-specific graphs as independent views, without fully modeling the shared and distinct patterns across them.

Moreover, a growing body of research highlights the modular architecture of brain networks as a key organizing principle, closely related to cognitive function and neurological disorders (Sporns & Betzel, 2016). The stochastic block model (SBM) (Abbe, 2018; Abbe, Bandeira & Hall, 2016) offers a probabilistic approach for uncovering latent modular structures, yet its integration into end-to-end learning frameworks for neuroimaging tasks remains underexplored. Prior work has either used modularity post hoc for interpretation (Arroyo & Levina, 2020) or applied hard module assignments without modeling uncertainty or soft partitions (Paul & Chen, 2020). In addition, recent studies have explored how environmental factors, including air pollution and green space, influence brain structure and function (Liu et al., 2023; Zhang et al., 2025b). These findings contribute to the growing recognition of the complex interaction between environmental exposures and brain health, which could offer additional context for future investigations into brain network alterations.

To simultaneously address these challenges, we propose a modularity-constrained dynamic FBG learning framework for the classification of brain disorders. Specifically, our method incorporates modular structure priors, discovered using SBM, into a deep learning framework to guide functional module learning. To better model brain connectivity, we construct joint FBGs by integrating multiple brain atlases, capturing complementary anatomical information. Moreover, we employ a sliding window mechanism (Lee, Lin & Chen, 2001) to model the temporal dynamics of FC, while a Transformer encoder is used to extract spatio-temporal features from the dynamic graphs. Experimental evaluations on the Autism Brain Imaging Data Exchange (ABIDE) (Di Martino et al., 2014) and the REST-meta-MDD Consortium (REST-MDD) (Yan et al., 2019a) datasets demonstrate that the proposed method consistently outperforms several competitive methods in classifying brain disorders based on fMRI data.

The major contributions of this work are outlined as follows.

  • We propose a novel approach for joint brain graph construction by integrating complementary information from multiple anatomical atlases, thereby generating more comprehensive functional brain graphs.

  • We address the challenge of modeling the temporal dynamics of FC by introducing a sliding-window strategy coupled with a Transformer encoder for spatio-temporal representation learning.

  • We introduce a modular-constrained learning mechanism that incorporates prior knowledge of brain modular structures, derived via SBM, into the model’s optimization objective, enhancing both interpretability and classification performance.

The remainder of this article is organized as follows. ‘Related Work’ briefly reviews related research. ‘Materials and Method’ introduces the materials and the proposed method. ‘Results’ presents the experimental setup and results. In ‘Discussion’, we explore the impacts of several key components, Finally, we conclude this article in ‘Conclusion’.

Related work

Brain network learning

With the development of deep learning techniques, GNNs have advanced brain network analysis (Kipf & Welling, 2016; Veličković et al., 2017). Graph convolutional networks (GCNs) and graph attention networks (GATs) have been widely used for encoding FBGs and classifying brain diseases (Parisot et al., 2018). For instance, Parisot et al. (2018) leveraged GCNs for neurological disorder classification, and introduced edge-weighted GNNs to better utilize connectivity strength. Despite these advances in GNN-based modeling, most studies rely on single-atlas representations, limiting the ability to capture complementary anatomical and functional information. To address this, recent works have explored multi-atlas learning (Chen et al., 2026; Wang et al., 2022). For example, Chen et al. (2026) proposed an attention-based multi-atlas fusion framework for brain disorder prediction. Inspired by this work, we adopt a multi-atlas learning approach to integrate complementary features from different brain parcellation schemes, thereby enhancing the representational and discriminative capabilities of the model.

Temporal dynamics learning

Traditional methods estimate static functional networks using PC or partial correlation over the full fMRI time series, yielding one connectivity matrix per subject (Wang et al., 2009; Wang, Zuo & He, 2010; Drysdale et al., 2017). However, they fail to capture the temporal dynamics. Dynamic FC applies a sliding window to segment the time series and build time-varying graphs (Hutchison et al., 2013; Allen et al., 2014), The sliding-window based dynamic FBGs can be viewed as a time-varying system with implicit delays introduced by the windowing mechanism. Similar delay-dependent dynamic behaviors have been extensively analyzed in nonlinear dynamical systems with impulses, underscoring the importance of modeling stable temporal evolution in complex dynamic structures (Liu & Zeng, 2019). However, modeling each window separately limits the ability to capture global temporal dependencies across windows, thereby necessitating learning frameworks that can integrate both short-term dynamics and long-range temporal context.

Recurrent neural networks (RNNs) (Graves, Mohamed & Hinton, 2013) and long short-term memory (LSTM) models (Hochreiter & Schmidhuber, 1997) have been employed to model fMRI dynamics (Yan et al., 2019b), but their inherent sequential processing architecture imposes critical limitations including restricted computational parallelism during training and susceptibility to vanishing or exploding gradients when capturing long-range dependencies. Transformers (Vaswani et al., 2017) offer two key advantages for modeling dynamic brain networks: parallelizable training and a global temporal attention mechanism that effectively captures long-range dependencies. While they have been successfully applied to fMRI sequence learning (Kan et al., 2022; Han et al., 2022b) with improved performance in capturing temporal patterns, existing methods remain primarily based on single-atlas features and may not generalize well to heterogeneous representations from multiple parcellations. Importantly, the joint use of multiple atlases forms a multi-layer or coupled-network representation of the brain, where each atlas provides a structurally distinct yet complementary view. Recent studies have shown that multi-layer coupled network frameworks can enhance representational richness and system-level inference in complex network learning tasks (Fu, Li & Feng, 2025).

Modularity and topological priors in brain networks

Human brain networks exhibit modular structures, with communities of regions exhibiting stronger intra-module than inter-module connectivity (Sporns & Betzel, 2016). Exploiting such topological priors can enhance representation learning. Several works utilize modularity to regularize or guide brain network learning (Kim, Ye & Kim, 2021). For instance, Kim, Ye & Kim (2021) introduced modularity-aware attention for brain network classification. Leveraged modularity constraints in a matrix factorization framework. However, existing modular approaches often require pre-defined module structures or rely on static brain graphs, limiting their effectiveness on dynamic, heterogeneous networks. To learn modular structures adaptively, SBM (Holland, Laskey & Leinhardt, 1983; Peixoto, 2014) provides a principled probabilistic framework for detecting community assignments and inter-module connectivity patterns. Recent works have explored the incorporation of SBM into deep learning pipelines for structured graph analysis (Duranthon & Zdeborová, 2023), but have rarely been extended to dynamic brain networks or multi-atlas integration.

Materials and method

Materials

To validate the effectiveness of the proposed method in the classification of brain disorders, We use two widely used public datasets (i.e., ABIDE (http://fcon_1000.projects.nitrc.org/indi/abide) and REST-MDD (http://rfmri.org/REST-meta-MDD)). The original fMRI data from these two datasets undergoes preprocessing. The preprocessing steps include slice-timing correction, motion correction, spatial normalization, and smoothing. These steps aim to eliminate the influence of noise and irrelevant signals and improve data quality.

Proposed method

The proposed modularity-constrained joint dynamic FBG learning model comprises three key components: (1) multi-atlas FBG construction, (2) spatio-temporal graph representation learning, and (3) modularity-constrained optimization. Figure 1 illustrates the framework of the proposed model.

Figure 1. Illustration of the proposed modular constraint-based joint dynamic functional brain graph (FBG) learning model.

Figure 1

Multi-atlas FBG construction

The FBGs are constructed based on fMRI data. For each subject, the FBG can be represented as a graph G=(X,A), where X denotes the node feature matrix, and A represents the adjacency matrix. Considering the dynamic nature of FBGs, a sliding window approach is applied to segment the fMRI time series. The BOLD signals within each time window are used to construct dynamic FBGs. The dynamic FBGs for each subject can be expressed as G(t)={X(t),A(t)}t=1T, where t denotes the time window index and T is the total number of time windows. We use the PC to calculate the FC strength between brain regions in each time window and employ the derived PC matrix as node feature matrix. The node feature matrices from the AAL, DOS160, and CC200 brain atlases for the t-th time window are denoted as XAAL(t)∈RnAAL×nAAL,XDOS160(t)∈RnDOS160×nDOS160,XCC200(t)∈RnCC200×nCC200, where n is the number of ROIs.

To remove weak or noisy connections, the adjacency matrices are thresholded. Specifically, only the top 30% of the strongest connections are preserved (i.e., the top 30% of the largest values in the node feature matrix are set to 1, while the remaining values are set to 0). This results in sparse FBGs. Given that different brain atlases (i.e., AAL, DOS160, and CC200) divide the brain into different sets of ROIs, a joint adjacency matrix A is generated for each time window to integrate their complementary features and is denoted as: A(t)={AAAL(t),ADOS160(t),ACC200(t)}t=1T.

Feature learning for joint dynamic functional brain graphs

To perform dynamic learning on the joint FBGs, we utilize the graph isomorphism network (GIN) (Kim & Ye, 2020; Chen et al., 2019), which is effective at capturing the topological structures of FBGs by aggregating neighboring node features. The formula for GIN is as follows:

hv(k)=MLP(k)((1+ε(k))⋅hv(k−1)+∑uϵN(v)hu(k−1)), (1)

where MLP(k) is a multi-layer perceptron (MLP) at the k-th layer, hv(k) denotes the feature of node v at the k-th layer, ε(k) is a learnable parameter, and N(v) denotes the set of neighboring nodes of node v. The summation aggregates the features of neighboring nodes u∈N(v), and (1+ε(k)) adjusts the contribution of the node’s own feature during aggregation. This operation is followed by a non-linear transformation to enhance the model’s expressiveness.

In our model, the adjacency matrix A and node feature matrix X are used as inputs. Given the dynamic nature of FBGs, the node features at each time window are updated through two GIN layers. After two layers of transformation, the updated node feature matrix F is given by:

F=f(X,A)=δ(ε(1)I+A)[δ(ε(0)I+A)XW(0)]W(1), (2)

where δ represents the ReLU activation function which is applied after each layer in the GIN, W0 and W1 represent the weight matrices learned in the first and second layers, respectively.

For graph-level classification, the learned node feature matrix F∈F(t) is passed through a readout layer to obtain a graph-level representation. This study adopts an attention-based readout mechanism (Kim, Ye & Kim, 2021), where the attention weights S(t) of the node features are computed as:

S(t)=sigmoid(Q(1)σ(Q(0)Fmean(t))), (3)

where σ is the nonlinear activation function, Q(0) and Q(1) are learnable weight matrices, and Fmean(t) is the vector obtained by averaging the node feature matrix along the node dimension. After obtaining the attention weights S(t), the graph-level representation is:

G(t)=S(t)F(t). (4)

To capture the temporal dynamics of fMRI sequences and analyze the contributions of dynamic FBGs across time, a single-head Transformer encoder (Parmar et al., 2018; Han et al., 2022b) is employed to learn temporal attention. The self-attention mechanism of the Transformer quantifies the significance of different time windows. After Transformer processing, we obtain a new sequence of dynamic graph representations G′(t), incorporating both spatial and temporal attention. The final graph-level representation is:

G′=∑t=1TG′(t). (5)

To leverage information from different atlases, we concatenate the representations generated from the AAL, DOS160, and CC200 brain atlases:

Gjoint=GAAL′⊕GDOS160′⊕GCC200′, (6)

where ⊕ denotes the concatenation operation. The joint FBGs with the concatenated features Gjoint are then fed into a fully connected layer followed by a softmax layer for final prediction.

Modularity-constrained objective function optimization

To introduce a modular constraint into the objective function, we first employ the SBM for module detection. Using the maximum likelihood estimation method, we calculate the module membership information of nodes and the inter-module connection probability matrix. The specific steps are as follows: Assume there are K modules in the network, and each node i belongs to a particular module. Estimate the inter-module connection probability matrix B, where Brs denotes the connection probability between module r and module s. Solve the model parameters through an optimization algorithm to obtain the module membership information of the nodes. The model employs a novel modular constraint as follow:

Lmod=−∑t=1T∑k=1K∑i,j=1Nkfitk⋅fjt,k‖fit,k‖⋅‖fjt,k‖, (7)

where fit,k and fjt,k are the embeddings of two nodes in the k-th module (which contains Nk nodes) at the t-th segment. Such modular constraints are conceptually aligned with block-structured decomposition methods, where structure-preserving algorithms maintain coherent sub-blocks and promote stable representation learning during matrix factorization (Wei et al., 2024). The total modular constraint obtained by summing up the modular constraints calculated using different brain atlases is as follows:

LM=LmodAAL+LmodDOS160+LmodCC200. (8)

During training, the cross-entropy loss function LC is used to optimize the model parameters. To avoid the problems of gradient vanishing or gradient explosion, an orthogonal constraint (i.e., Lortho=||(1/m)FTF−I||2) is added to the node feature matrix. Such orthogonality regularization helps stabilize optimization and maintain the structural integrity of learned representations, which is consistent with structure-preserving orthogonal transformation techniques in matrix computations (Li et al., 2016). The total loss function is therefore formulated as:

L=LC+λ1LM+λ2Lortho, (9)

where hyperparameters λ1 and λ2 control the weights of modularity constraint LM and orthogonality constraint Lortho respectively, balancing the contributions between cross-entropy loss LC and other regularization terms (Wen & Yin, 2013).

Results

Implementation details

The proposed method in this study is implemented on the PyTorch platform and trained using an NVIDIA T600 GPU. The following hyperparameters are set in this study: the network architecture includes two GIN layers and one Transformer encoder layer. For the ABIDE dataset, the window size is set to 40 and the stride to 5; for the REST-MDD dataset, the window size is set to 45 and the stride remains 5. The regularization factors λ1 and λ2 are consistently set to 0.1 for both the ABIDE and REST-MDD datasets. We also discuss the influence of these hyperparameters in a subsequent section. The learning rate is 0.001, the number of training epochs is 40, the batch size is 8, and the dropout rate is 0.5.

Experimental results and analysis

We use five metrics to comprehensively evaluate the performance of different methods (Genders et al., 2012), including accuracy (ACC), sensitivity (SEN), specificity (SPE) (Swift, Heale & Twycross, 2020), F1-score (F1) (Chicco & Jurman, 2020), and area under the receiver operating characteristic curve (AUC) (Huang & Ling, 2005).

To evaluate the classification performance, we compared our method (denoted as Ours) against a set of baselines, including both classical machine learning techniques and competitive deep learning methods. Specifically, the classical approaches include PC followed by support vector machine classification (PC+SVM) and PC with random forest (Breiman, 2001) (PC+RF), which are commonly used as benchmarks in brain FC analysis. Additionally, we compared against six representative deep learning methods, including GCNs (Kipf & Welling, 2016), identity-aware GCNs (IA-GCNs) (You et al., 2021), GATs (Veličković et al., 2017), neighborhood-enhanced GATs (NE-GATs), dynamic graph modeling (DGM) (Tian, Xiong & Shi, 2021), and brain network Transformer (BNT) (Kan et al., 2022). The settings and implementation details of the comparative experiments are consistent with the configurations reported in Si et al. (2025). The experimental results on the two datasets are shown in Tables 1 and 2, respectively. A t-test is conducted to compare the results of our method with each baseline method, where an asterisk (*) indicates a statistically significant difference ( p<0.05).

Table 1. Results of the proposed model and eight different methods on the ABIDE dataset, with best results shown in bold.

Method ACC (%) SEN (%) SPE (%) F1 (%) AUC (%) p-value
PC + SVM 62.2 (4.0) 56.3 (12.0) 66.8 (7.8) 58.4 (9.0) 65.0 (7.6) 0.0013*
PC + RF 61.6 (6.8) 58.9 (13.5) 67.8 (2.0) 65.4 (11.5) 63.0 (7.8) 0.0010*
GCNs 63.7 (7.4) 65.2 (18.4) 59.8 (10.7) 66.8 (13.0) 66.0 (8.1) 0.0235*
IA-GCNs 63.9 (5.2) 61.7 (12.8) 64.8 (5.3) 66.7 (9.0) 60.9 (10.3) 0.0122*
GATs 65.8 (7.6) 59.7 (20.4) 66.9 (14.2) 63.4 (7.6) 67.0 (8.1) 0.0466*
NE-GATs 66.4 (5.8) 57.2 (15.6) 67.4 (5.5) 61.8 (11.6) 66.0 (8.5) 0.0312*
DGM 64.8 (3.5) 64.8 (14.5) 59.6 (9.0) 60.5 (7.3) 64.0 (6.1) 0.0009*
BNT 65.6 (4.6) 68.2 (11.0) 57.9 (11.7) 64.1 (6.2) 66.0 (4.5) 0.0242*
Ours 68.5 (7.1) 66.4 (8.9) 68.7 (11.9) 68.5 (7.6) 74.0 (6.8) –

Note:

*

p < 0.05 (two-sample t-test).

Table 2. Results of the proposed model and eight different methods on the REST-MDD dataset, with best results shown in bold.

Method ACC (%) SEN (%) SPE (%) F1 (%) AUC (%) p-value
PC + SVM 59.6(8.5) 52.3(18.9) 64.8(19.9) 63.4(12.4) 63.0(12.7) 0.0006*
PC + RF 60.8(5.9) 57.6(9.6) 62.8(3.5) 62.4(5.9) 62.0(7.7) 0.0010*
GCNs 61.7(10.4) 65.2(16.0) 55.8(16.0) 63.8(10.2) 65.0(12.6) 0.0419*
IA-GCNs 61.9(8.6) 60.7(10.3) 58.8(15.4) 66.7(7.5) 65.0(10.7) 0.0290*
GATs 60.8(8.8) 55.7(34.3) 64.8(24.2) 63.4(21.1) 66.0(5.5) 0.0048*
NE-GATs 62.4(4.3) 57.2(22.0) 67.4(26.1) 61.8(9.1) 66.0(7.8) 0.0109*
DGM 61.8(12.1) 63.8(15.7) 59.6(23.3) 60.5(10.7) 64.0(13.4) 0.0433*
BNT 61.6(8.3) 65.2(8.7) 56.7(13.2) 64.3(7.4) 67.0(9.9) 0.0216*
Ours 65.3(6.6) 68.7(15.6) 62.5(17.2) 67.5(7.7) 70.0(13.0) –

Note:

*

p < 0.05 (two-sample t-test).

First of all, as shown in Table 1, our method achieves superior classification performance compared to other baseline methods on the ABIDE dataset across most evaluation metrics. In particular, the proposed method (74.0%) achieves an AUC that is 7.0% higher than the second-best method GATs (67.0%). This performance improvement can be attributed to the effective integration of multi-atlas features, which enables the model to capture richer and more robust representations of FC patterns relevant to ASD classification. In addition, Table 2 presents the classification results on the REST-MDD dataset. As we can see, the proposed method (68.7%) achieves an SEN that is 3.5% higher than the second-best method DGM (65.2%). In addition, the proposed method demonstrates competitive performance in terms of ACC, F1-score, and AUC, further highlighting its robustness and generalization ability in distinguishing individuals with MDD from healthy controls. The consistent performance gains observed on both datasets confirm that our joint dynamic FBG learning approach effectively exploits complementary information provided by multiple brain atlases. It can be observed that our method exhibits statistically significant differences compared to other methods, supporting the superiority of our method in brain disease classification. These results underscore the potential applicability of our method in real-world clinical scenarios, offering a promising direction for improving the diagnostic accuracy of brain disorders through advanced graph-based learning frameworks.

Discussion

Ablation study

To verify the contribution of each component in the proposed method, we conduct a set of experiments by comparing the proposed method with its five degraded variants, and the results are shown in Tables 3 and 4. We also perform t-test on the outcomes of our method and each degraded variant, and asterisk (*) represents a statistically significant difference ( p<0.05) between our method and a particular method.

Table 3. Results of the proposed model and its three variants on the ABIDE dataset, with best results shown in bold.

Model ACC (%) SEN (%) SPE (%) F1 (%) AUC (%) p-value
Ours w/o SBM 63.4 (5.9) 61.8 (22.1) 53.7 (24.6) 62.8 (7.7) 67.0 (3.4) 0.0183*
Ours (AAL-only) 67.1 (10.2) 61.5 (18.5) 68.2 (10.7) 65.4 (11.9) 70.0 (14.9) 0.1065
Ours (DOS160-only) 62.3 (7.4) 51.8 (13.3) 71.1 (7.0) 55.8 (10.1) 66.0 (6.6) 0.0274*
Ours (CC200-only) 65.1 (7.2) 59.3 (16.2) 70.4 (10.3) 60.8 (9.4) 71.0 (8.6) 0.0445*
Ours w/o SW 66.8 (9.3) 65.9 (6.9) 63.4 (14.6) 66.1 (8.3) 70.0 (13.7) 0.0360*
Ours 68.5 (7.1) 66.4 (8.9) 68.7 (11.9) 68.5 (7.6) 74.0 (6.8) –

Notes:

SBM, stochastic block model; SW, sliding window.

*

p < 0.05 (two-sample t-test).

Table 4. Results of the proposed model and its three variants on the REST-MDD dataset, with best results shown in bold.

Model ACC (%) SEN (%) SPE (%) F1 (%) AUC (%) p-value
Ours w/o SBM 62.4 (6.1) 63.8 (6.8) 54.6 (16.6) 61.9 (3.8) 65.0 (11.4) 0.0247*
Ours (AAL-only) 61.4 (5.1) 63.1 (22.3) 59.3 (21.9) 64.6 (9.2) 64.0 (9.1) 0.0013*
Ours (DOS160-only) 62.1 (9.3) 55.9 (20.6) 64.8 (26.6) 63.9 (10.0) 64.0 (15.1) 0.0503
Ours (CC200-only) 63.6 (11.7) 69.1 (13.7) 57.8 (23.3) 67.1 (9.5) 66.0 (12.8) 0.0461*
Ours w/o SW 62.8 (8.3) 64.9 (8.7) 59.4 (13.2) 62.1 (7.4) 63.0 (9.9) 0.0194*
Ours 65.3 (6.6) 68.7 (15.6) 62.5 (17.2) 67.5 (7.7) 70.0 (13.0) –

Note:

SBM, stochastic block model; SW, sliding window.

*

p < 0.05 (two-sample t-test).

As shown in Tables 3 and 4, the ablation study demonstrates the consistent contribution of each proposed component across both the ABIDE and REST-MDD datasets. Firstly, removing the SBM component led to the most significant performance drop, with accuracy decreasing by at least 3% (5% on ABIDE, 3% on REST-MDD), confirming its crucial role in enhancing classification. Secondly, using any single brain atlas (AAL, DOS160, or CC200) instead of the joint multi-atlas information resulted in an accuracy decrease of at least 1.4%. This reduction highlights that integrating complementary information from diverse atlases provides a more comprehensive feature representation, thereby enhancing the model’s performance. Specifically, the AAL atlas achieves the best performance on the ABIDE dataset, whereas the CC200 atlas performs best on the MDD dataset, possibly because different brain parcellation schemes have different impacts on the classification of different brain disorders. Finally, removing the dynamic graph learning module caused a performance decline of at least 1.7%, validating its effectiveness in capturing spatio-temporal dynamics for the classification task.

Influence of hyperparameter

To further explore the impact of key hyperparameters in the proposed method on classification performance, we conduct a comprehensive analysis, including the number of modules K, sliding window size L, and the constraint weights λ1 and λ2. The experimental results are shown in Figs. 2, 3, and 4, respectively.

  • (1)

    Number of modules K. As illustrated in Fig. 2, on the ABIDE dataset, K was varied from 2 to 6. The model achieved the highest classification accuracy of 68.5% when K was set to 3. On the REST-MDD dataset, the same range of K was tested, and the best performance (65.3%) was obtained when K was set to 4. These results indicate that the number of modules significantly affects model performance. Too few modules may fail to effectively capture the modular structure of FBGs, resulting in insufficient feature representation. Conversely, too many modules may introduce redundant information, increase model complexity, and potentially lead to overfitting. Therefore, selecting an appropriate number of modules is essential for achieving optimal classification performance.

  • (2)

    Sliding window size L. Figure 3 shows the impact of sliding window size on model performance. For the ABIDE dataset, the tested values of L range from 30 to 50. The model achieves the highest classification performance of 68.5% when L is set to 40. For the REST-MDD dataset, the tested values of L range from 35 to 55, and the model reaches the highest accuracy of 65.3% when L was set to 45. These findings demonstrate that the choice of sliding window size is a crucial factor influencing the model’s performance. A window that is too small may fail to capture sufficient temporal information, leading to incomplete feature representations. On the other hand, an overly large window may introduce redundant information, increase computational burden, and increase the risk of overfitting, thus impairing the model’s generalization ability. Therefore, a properly selected sliding window size facilitates the extraction of dynamic FC features and improves classification accuracy.

  • (3)

    Constraint weights λ1 and λ2. As shown in Fig. 4A, on the ABIDE dataset, when λ1 is set to 0.1 and λ2 to 0.1, the model achieves the best balance between classification performance and training stability, resulting in an accuracy of 68.5%. Under the same settings, the proposed model attains an accuracy of 65.3% on the REST-MDD dataset, as shown in Fig. 4B. On the ABIDE dataset, further analysis shows that when λ2 is fixed and λ1 is varied, the classification accuracy shows larger fluctuations compared to when λ1 is fixed and λ2 is varied. This suggests that the model is more sensitive to changes in λ1. In contrast, variations in λ2 cause relatively smaller performance fluctuations, indicating that the model is less sensitive to this parameter. Specifically, increasing λ1 leads to a decline in classification accuracy, which may be attributed to over-smoothing effects from overly strong modular constraints. Increasing λ2 while keeping λ1 fixed also results in decreased accuracy, likely due to the strong orthogonality constraint on the node feature matrix hindering model convergence and degrading performance. Similar trends can also be observed on the REST-MDD dataset. Hence, appropriate tuning of λ1 and λ2 is critical for effective model training and performance optimization.

Figure 2. Effect of module number (K) on model performance for ABIDE and REST-MDD datasets.

Figure 2

Figure 3. Effect of the length of sliding window (L) on model performance for ABIDE and REST-MDD datasets.

Figure 3

Figure 4. Influence of constraint weights ( λ1 and λ2) on results for the ABIDE and REST-MDD datasets.

Figure 4

Visualization analysis

We input rs-fMRI data from both typically developing (TD) individuals and patients into the proposed model and visualize the resulting FBGs for comparison. The results are presented in Fig. 5. Specifically, the FBGs of the TD control group are compared separately with those of both ASD and MDD patient groups. To more intuitively present the FBGs constructed after modular feature extraction, the visualization tool BrainNet Viewer (Xia, Wang & He, 2013) is employed, and visualizations are rendered from three different perspectives.

Figure 5. Comparison between typically developing (TD) controls and patients on the ABIDE and REST-MDD datasets.

Figure 5

As shown in Fig. 5A, dense intra-regional functional connections are observed within the frontal and parietal lobes in the TD control group, particularly visible in the axial view, while ASD patients show increased inter-regional and long-range connectivity, suggesting more complex network patterns. These abnormal connections may be related to social and behavioral deficits in ASD (Li et al., 2013; Zhang et al., 2018). As shown in Fig. 5B, abnormal long-range connectivity is observed between the orbitofrontal cortex and occipital lobe, as well as between frontal and parietal regions. These disruptions are linked to impairments in visual processing, language, and cognitive control (Liu et al., 2024; Helm et al., 2018; Kwaasteniet et al., 2013). Overall, the results reveal distinct connectivity patterns between patient groups and TD control group. The integration of modularity improves both classification accuracy and the interpretability of the model, offering insights into the neural mechanisms of ASD and MDD.

Conclusion

In this study, we propose a modularity-constrained joint dynamic FBG learning model to improve the accuracy and enhance the interpretability of brain disorder classification. By integrating multiple brain atlases, the proposed model constructs joint FBGs, thereby enriching feature representation. To capture spatio-temporal dynamics, we employ the sliding window mechanism coupled with a Transformer encoder, while a SBM is applied to detect modular structures, thus introducing modular constraints that guide the learning process. Experiments on two datasets demonstrate the effectiveness of our model, and ablation studies confirm the benefits of both multi-atlas integration and modular constraints. Visualization results further reveal significant FBG differences between TD individuals and patients, highlighting the model’s potential for neuroscience and brain disorder research. In future work, we aim to incorporate multimodal data, such as electroencephalography (EEG) (Yeh et al., 2024; Ye et al., 2024; Pei et al., 2025), to capture richer features and thereby improve the performance of brain disorder identification.

Acknowledgments

We appreciate the general support from our institutions and colleagues.

Funding Statement

The authors received no funding for this work.

Contributor Information

Linmin Wang, Email: w17860361619@163.com.

Xiao Jiang, Email: jiangxiao94@163.com.

Additional Information and Declarations

Competing Interests

The authors declare that they have no competing interests.

Author Contributions

Peiming Xu conceived and designed the experiments, performed the experiments, analyzed the data, authored or reviewed drafts of the article, and approved the final draft.

Yaru Li conceived and designed the experiments, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft.

Wei Si conceived and designed the experiments, performed the experiments, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft.

Linmin Wang analyzed the data, prepared figures and/or tables, authored or reviewed drafts of the article, and approved the final draft.

Xiao Jiang conceived and designed the experiments, authored or reviewed drafts of the article, and approved the final draft.

Data Availability

The following information was supplied regarding data availability:

The Autism Brain Imaging Data Exchange Data is available at ABIDE: https://fcon_1000.projects.nitrc.org/indi/abide/abide_I.html.

The REST-meta-MDD data is available at The R-fMRI Network: http://rfmri.org/REST-meta-MDD.

The code is available at GitHub and Zenodo:

- https://github.com/BNA278/ModularFBGs.

- BNA278. (2026). BNA278/ModularFBGs: ModularFBGs (v1.0). Zenodo. https://doi.org/10.5281/zenodo.19759730.

References

  • Abbe (2018).Abbe E. Community detection and stochastic block models: recent developments. Journal of Machine Learning Research. 2018;18(177):1–86. [Google Scholar]
  • Abbe, Bandeira & Hall (2016).Abbe E, Bandeira AS, Hall G. Exact recovery in the stochastic block model. IEEE Transactions on Information Theory. 2016;62(1):471–487. doi: 10.1109/tit.2015.2490670. [DOI] [Google Scholar]
  • Allen et al. (2014).Allen EA, Damaraju E, Plis SM, Erhardt EB, Eichele T, Calhoun VD. Tracking whole-brain connectivity dynamics in the resting state. Cerebral Cortex. 2014;24(3):663–676. doi: 10.1093/cercor/bhs352. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Arroyo & Levina (2020).Arroyo J, Levina E. Simultaneous prediction and community detection for networks with application to neuroimaging. 2020. ArXiv. [DOI]
  • Bedel et al. (2023).Bedel HA, Sivgin I, Dalmaz O, Dar SU, Çukur T. BolT: fused window transformers for fMRI time series analysis. Medical Image Analysis. 2023;88:102841. doi: 10.1016/j.media.2023.102841. [DOI] [PubMed] [Google Scholar]
  • Breiman (2001).Breiman L. Random forests. Machine Learning. 2001;45:5–32. doi: 10.1023/a:1010933404324. [DOI] [Google Scholar]
  • Bullmore & Sporns (2009).Bullmore E, Sporns O. Complex brain networks: graph theoretical analysis of structural and functional systems. Nature Reviews Neuroscience. 2009;10(3):186–198. doi: 10.1038/nrn2575. [DOI] [PubMed] [Google Scholar]
  • Cai et al. (2023).Cai M, Ma J, Wang Z, Zhao Y, Zhang Y, Wang H, Xue H, Chen Y, Zhang Y, Wang C, Zhao Q, Xue K, Liu F. Individual-level brain morphological similarity networks: current methodologies and applications. CNS Neuroscience & Therapeutics. 2023;29(12):3713–3724. doi: 10.1111/cns.14384. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Chen et al. (2019).Chen Z, Villar S, Chen L, Bruna J. On the equivalence between graph isomorphism testing and function approximation with GNNs. 2019 doi: 10.48550/arXiv.1905.12560. ArXiv. [DOI] [Google Scholar]
  • Chen et al. (2026).Chen Z, Wu J, Pu L, Li S, Zhang Y, Yao D, Yan H. MAF-GNN: graph neural network-based multi-atlas brain functional information fusion for major depressive disorder diagnosis with rs-fMRI. Information Processing & Management. 2026;63:104524. doi: 10.1016/j.ipm.2025.104524. [DOI] [Google Scholar]
  • Chicco & Jurman (2020).Chicco D, Jurman G. The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genomics. 2020;21(1):6. doi: 10.1186/s12864-019-6413-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Chu et al. (2022).Chu Y, Wang G, Cao L, Qiao L, Liu M. Multi-scale graph representation learning for autism identification with functional MRI. Frontiers in Neuroinformatics. 2022;15:802305. doi: 10.3389/fninf.2021.802305. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Cohen et al. (2008).Cohen AL, Fair DA, Dosenbach NU, Miezin FM, Dierker D, Van Essen DC, Schlaggar BL, Petersen SE. Defining functional areas in individual human brains using resting functional connectivity MRI. Neuroimage. 2008;41(1):45–57. doi: 10.1016/j.neuroimage.2008.01.066. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Di Martino et al. (2014).Di Martino A, Yan C-G, Li Q, Denio E, Castellanos FX, Alaerts K, Anderson JS, Assaf M, Bookheimer SY, Dapretto M, Deen B, Delmonte S, Dinstein I, Ertl-Wagner B, Fair DA, Gallagher L, Kennedy DP, Keown CL, Keysers C, Lainhart JE, Lord C, Luna B, Menon V, Minshew NJ, Monk CS, Mueller S, Müller R-A, Nebel MB, Nigg JT, O’Hearn K, Pelphrey KA, Peltier SJ, Rudie JD, Sunaert S, Thioux M, Tyszka JM, Uddin LQ, Verhoeven JS, Wenderoth N, Wiggins JL, Mostofsky SH, Milham MP. The autism brain imaging data exchange: towards a large-scale evaluation of the intrinsic brain architecture in autism. Molecular Psychiatry. 2014;19(6):659–667. doi: 10.1038/mp.2013.78. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Drysdale et al. (2017).Drysdale AT, Grosenick L, Downar J, Dunlop K, Mansouri F, Meng Y, Fetcho RN, Zebley B, Oathes DJ, Etkin A, Schatzberg AF, Sudheimer K, Keller J, Mayberg HS, Gunning FM, Alexopoulos GS, Fox MD, Pascual-Leone A, Voss HU, Casey B, Dubin MJ, Liston C. Resting-state connectivity biomarkers define neurophysiological subtypes of depression. Nature Medicine. 2017;23(1):28–38. doi: 10.1038/nm.4246. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Duranthon & Zdeborová (2023).Duranthon O, Zdeborová L. Neural-prior stochastic block model. Machine Learning: Science and Technology. 2023;4:035017. doi: 10.1088/2632-2153/ace60f. [DOI] [Google Scholar]
  • Fornito et al. (2012).Fornito A, Harrison BJ, Zalesky A, Simons JS. Competitive and cooperative dynamics of large-scale brain functional networks supporting recollection. Proceedings of the National Academy of Sciences of the United States of America. 2012;109(31):12788–12793. doi: 10.1073/pnas.1204185109. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Fornito, Zalesky & Breakspear (2015).Fornito A, Zalesky A, Breakspear M. The connectomics of brain disorders. Nature Reviews Neuroscience. 2015;16(3):159–172. doi: 10.1038/nrn3901. [DOI] [PubMed] [Google Scholar]
  • Fu, Li & Feng (2025).Fu S, Li L, Feng J-E. Strategy optimization of controlled evolutionary games on a two-layer coupled network using lebesgue sampling. Nonlinear Analysis: Hybrid Systems. 2025;56:101570. doi: 10.1016/j.nahs.2024.101570. [DOI] [Google Scholar]
  • Genders et al. (2012).Genders TS, Spronk S, Stijnen T, Steyerberg EW, Lesaffre E, Hunink MM. Methods for calculating sensitivity and specificity of clustered data: a tutorial. Radiology. 2012;265(3):910–916. doi: 10.1148/radiol.12120509. [DOI] [PubMed] [Google Scholar]
  • Graves, Mohamed & Hinton (2013).Graves A, Mohamed A-R, Hinton G. Speech recognition with deep recurrent neural networks. ICASSP; 2013. pp. 6645–6649. [Google Scholar]
  • Han et al. (2022a).Han H, Li X, Gan JQ, Yu H, Wang H. Biomarkers derived from alterations in overlapping community structure of resting-state brain functional networks for detecting Alzheimer’s disease. Neuroscience. 2022a;484:38–52. doi: 10.1016/j.neuroscience.2021.12.031. [DOI] [PubMed] [Google Scholar]
  • Han et al. (2022b).Han K, Wang Y, Chen H, Chen X, Guo J, Liu Z, Tang Y, Xiao A, Xu C, Xu Y, Yang Z, Zhang Y, Tao D. A survey on vision transformer. IEEE Transactions on Pattern Analysis and Machine Intelligence. 2022b;45(1):87–110. doi: 10.1109/tpami.2022.3152247. [DOI] [PubMed] [Google Scholar]
  • Helm et al. (2018).Helm K, Viol K, Weiger TM, Tass PA, Grefkes C, Del Monte D, Schiepek G. Neuronal connectivity in major depressive disorder: a systematic review. Neuropsychiatric Disease and Treatment. 2018;14:2715–2737. doi: 10.2147/ndt.s170989. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Hochreiter & Schmidhuber (1997).Hochreiter S, Schmidhuber J. Long short-term memory. Neural Computation. 1997;9(8):1735–1780. doi: 10.1162/neco.1997.9.8.1735. [DOI] [PubMed] [Google Scholar]
  • Holland, Laskey & Leinhardt (1983).Holland PW, Laskey KB, Leinhardt S. Stochastic blockmodels: first steps. Social Networks. 1983;5(2):109–137. doi: 10.1016/0378-8733(83)90021-7. [DOI] [Google Scholar]
  • Huang & Ling (2005).Huang J, Ling CX. Using AUC and accuracy in evaluating learning algorithms. IEEE Transactions on knowledge and Data Engineering. 2005;17(3):299–310. doi: 10.1109/tkde.2005.50. [DOI] [Google Scholar]
  • Hutchison et al. (2013).Hutchison RM, Womelsdorf T, Allen EA, Bandettini PA, Calhoun VD, Corbetta M, Della Penna S, Duyn JH, Glover GH, Gonzalez-Castillo J, Handwerker DA, Keilholz S, Kiviniemi V, Leopold DA, De Pasquale F, Sporns O, Walter M, Chang C. Dynamic functional connectivity: promise, issues, and interpretations. NeuroImage. 2013;80:360–378. doi: 10.1016/j.neuroimage.2013.05.079. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Kan et al. (2022).Kan X, Dai W, Cui H, Zhang Z, Guo Y, Yang C. Brain network transformer. Advances in Neural Information Processing Systems. 2022;35:25586–25599. doi: 10.48550/arxiv.2210.06681. [DOI] [Google Scholar]
  • Khosla et al. (2019).Khosla M, Jamison K, Ngo GH, Kuceyeski A, Sabuncu MR. Machine learning in resting-state fMRI analysis. Magnetic Resonance Imaging. 2019;64:101–121. doi: 10.1016/j.mri.2019.05.031. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Kim et al. (2024).Kim B-H, Choi J, Yun E, Kim K, Li X, Lee J. Learning dynamic brain connectome with graph transformers for psychiatric diagnosis classification. 2024 IEEE International Symposium on Biomedical Imaging (ISBI); Piscataway: IEEE; 2024. pp. 1–5. [Google Scholar]
  • Kim & Ye (2020).Kim B-H, Ye JC. Understanding graph isomorphism network for rs-fMRI functional connectivity analysis. Frontiers in Neuroscience. 2020;14:630. doi: 10.3389/fnins.2020.00630. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Kim, Ye & Kim (2021).Kim B-H, Ye JC, Kim J-J. Learning dynamic graph representation of brain connectome with spatio-temporal attention. Advances in Neural Information Processing Systems. 2021;34:4314–4327. doi: 10.48550/arxiv.2105.13495. [DOI] [Google Scholar]
  • Kipf & Welling (2016).Kipf TN, Welling M. Semi-supervised classification with graph convolutional networks. 2016. ArXiv. [DOI]
  • Kwaasteniet et al. (2013).Kwaasteniet B, Ruhe E, Caan M, Rive M, Olabarriaga S, Groefsema M, Heesink L, van Wingen G, Denys D. Relation between structural and functional connectivity in major depressive disorder. Biological Psychiatry. 2013;74(1):40–47. doi: 10.1016/j.biopsych.2012.12.024. [DOI] [PubMed] [Google Scholar]
  • Lee, Lin & Chen (2001).Lee C-H, Lin C-R, Chen M-S. Sliding-window filtering: an efficient algorithm for incremental mining. Proceedings of the Tenth International Conference on Information and Knowledge Management; 2001. pp. 263–270. [Google Scholar]
  • Li et al. (2016).Li Y, Wei M, Zhang F, Zhao J. Real structure-preserving algorithms of householder based transformations for quaternion matrices. Journal of Computational and Applied Mathematics. 2016;305:82–91. doi: 10.1016/j.cam.2016.03.031. [DOI] [Google Scholar]
  • Li et al. (2013).Li J, Xu C, Cao X, Gao Q, Wang Y, Wang Y, Peng J, Zhang K. Abnormal activation of the occipital lobes during emotion picture processing in major depressive disorder patients. Neural Regeneration Research. 2013;8(18):1693–1701. doi: 10.3969/j.issn.1673-5374.2013.18.007. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Liu et al. (2024).Liu W, Jiang X, Deng Z, Xie Y, Guo Y, Wu Y, Sun Q, Kong L, Wu F, Tang Y. Functional and structural alterations in different durations of untreated illness in the frontal and parietal lobe in major depressive disorder. European Archives of Psychiatry and Clinical Neuroscience. 2024;274(3):629–642. doi: 10.1007/s00406-023-01625-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Liu et al. (2017).Liu F, Wang Y, Li M, Wang W, Li R, Zhang Z, Lu G, Chen H. Dynamic functional network connectivity in idiopathic generalized epilepsy with generalized tonic–clonic seizure. Human Brain Mapping. 2017;38(2):957–973. doi: 10.1002/hbm.23430. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Liu et al. (2023).Liu F, Xu J, Guo L, Qin W, Liang M, Schumann G, Yu C. Environmental neuroscience linking exposome to brain structure and function underlying cognition and behavior. Molecular Psychiatry. 2023;28(1):17–27. doi: 10.1038/s41380-022-01669-6. [DOI] [PubMed] [Google Scholar]
  • Liu & Zeng (2019).Liu X, Zeng YM. Analytic and numerical stability of delay differential equations with variable impulses. Applied Mathematics and Computation. 2019;358:293–304. doi: 10.1016/j.amc.2019.04.051. [DOI] [Google Scholar]
  • Mahler et al. (2023).Mahler L, Wang Q, Steiglechner J, Birk F, Heczko S, Scheffler K, Lohmann G. International Workshop on Machine Learning in Clinical Neuroimaging. Cham: Springer; 2023. Pretraining is all you need: a multi-atlas enhanced transformer framework for autism spectrum disorder classification; pp. 123–132. [Google Scholar]
  • Parisot et al. (2018).Parisot S, Ktena SI, Ferrante E, Lee M, Guerrero R, Glocker B, Rueckert D. Disease prediction using graph convolutional networks: application to autism spectrum disorder and alzheimer’s disease. Medical Image Analysis. 2018;48:117–130. doi: 10.1016/j.media.2018.06.001. [DOI] [PubMed] [Google Scholar]
  • Parmar et al. (2018).Parmar N, Vaswani A, Uszkoreit J, Kaiser L, Shazeer N, Ku A, Tran D. Image transformer. International Conference on Machine Learning; 2018. pp. 4055–4064. [Google Scholar]
  • Paul & Chen (2020).Paul S, Chen Y. A random effects stochastic block model for joint community detection in multiple networks with applications to neuroimaging. Annals of Applied Statistics. 2020;14(2):993–1029. doi: 10.1214/20-aoas1339. [DOI] [Google Scholar]
  • Pei et al. (2025).Pei G, Hu M, Ouyang J, Jin Z, Wang K, Meng D, Wang Y, Chen K, Wang L, Cao L-Z, Funahashi S, Yan T, Fang B. Enhancing attention network spatiotemporal dynamics for motor rehabilitation in Parkinson’s disease. Cyborg and Bionic Systems. 2025;6:0293. doi: 10.34133/cbsystems.0293. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Peixoto (2014).Peixoto TP. Hierarchical block structures and high-resolution model selection in large networks. Physical Review X. 2014;4(1):011047. doi: 10.1103/physrevx.4.011047. [DOI] [Google Scholar]
  • Poldrack (2007).Poldrack RA. Region of interest analysis for fMRI. Social Cognitive and Affective Neuroscience. 2007;2(1):67–70. doi: 10.1093/scan/nsm006. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Scarselli et al. (2008).Scarselli F, Gori M, Tsoi AC, Hagenbuchner M, Monfardini G. The graph neural network model. IEEE Transactions on Neural Networks. 2008;20(1):61–80. doi: 10.1109/tnn.2008.2005605. [DOI] [PubMed] [Google Scholar]
  • Shon et al. (2026).Shon Y, Kang E, Heo D-W, Suk H-I. Explainable normative modeling for brain disorder identification in resting-state fMRI. IEEE Transactions on Medical Imaging. 2026;45(4):1606–1619. doi: 10.1109/tmi.2025.3631105. [DOI] [PubMed] [Google Scholar]
  • Si et al. (2025).Si W, Wang G, Liu L, Zhang L, Qiao L. Graph neural network with modular attention for identifying brain disorders. Biomedical Signal Processing and Control. 2025;102:107252. doi: 10.1016/j.bspc.2024.107252. [DOI] [Google Scholar]
  • Sporns (2011).Sporns O. The human connectome: a complex network. Annals of the New York Academy of Sciences. 2011;1224(1):109–125. doi: 10.1111/j.1749-6632.2010.05888.x. [DOI] [PubMed] [Google Scholar]
  • Sporns & Betzel (2016).Sporns O, Betzel RF. Modular brain networks. Annual Review of Psychology. 2016;67(1):613–640. doi: 10.1146/annurev-psych-122414-033634. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Swift, Heale & Twycross (2020).Swift A, Heale R, Twycross A. What are sensitivity and specificity? Evidence-Based Nursing. 2020;23(1):2–4. doi: 10.1136/ebnurs-2019-103225. [DOI] [PubMed] [Google Scholar]
  • Tian, Xiong & Shi (2021).Tian S, Xiong T, Shi L. Streaming dynamic graph neural networks for continuous-time temporal graph modeling. 2021 IEEE International Conference on Data Mining (ICDM); Piscataway: IEEE; 2021. pp. 1361–1366. [Google Scholar]
  • Vaswani et al. (2017).Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN, Kaiser Ł, Polosukhin I. Advances in Neural Information Processing Systems 30. 2017. Attention is all you need. [Google Scholar]
  • Veličković et al. (2017).Veličković P, Cucurull G, Casanova A, Romero A, Lio P, Bengio Y. Graph attention networks. 2017. ArXiv. [DOI]
  • Wang et al. (2025).Wang X, Fang Y, Wang Q, Yap P-T, Zhu H, Liu M. Self-supervised graph contrastive learning with diffusion augmentation for functional MRI analysis and brain disorder detection. Medical Image Analysis. 2025;101:103403. doi: 10.1016/j.media.2024.103403. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Wang et al. (2022).Wang Y, Liu J, Xiang Y, Wang J, Chen Q, Chong J. MAGE: automatic diagnosis of autism spectrum disorders using multi-atlas graph convolutional networks and ensemble learning. Neurocomputing. 2022;469:346–353. doi: 10.1016/j.neucom.2020.06.152. [DOI] [Google Scholar]
  • Wang et al. (2009).Wang J, Wang L, Zang Y, Yang H, Tang H, Gong Q, Chen Z, He Y. Parcellation-dependent small-world brain functional networks: a resting-state fMRI study. Human Brain Mapping. 2009;30(5):1511–1523. doi: 10.1002/hbm.20623. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Wang, Zuo & He (2010).Wang J, Zuo X-N, He Y. Graph-based network analysis of resting-state functional MRI. Frontiers in Systems Neuroscience. 2010;4:16. doi: 10.3389/fnsys.2010.00016. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Wei et al. (2024).Wei A, Li Y, Ding W, Zhao J. A new structure-preserving algorithm based on the semi-tensor product of matrices for split quaternion matrix LDU decomposition and its applications. Journal of Computational and Applied Mathematics. 2024;451:116072. doi: 10.1016/j.cam.2024.116072. [DOI] [Google Scholar]
  • Wen & Yin (2013).Wen Z, Yin W. A feasible method for optimization with orthogonality constraints. Mathematical Programming. 2013;142(1):397–434. doi: 10.1007/s10107-012-0584-1. [DOI] [Google Scholar]
  • Wu et al. (2011).Wu J-T, Wu H-Z, Yan C-G, Chen W-X, Zhang H-Y, He Y, Yang H-S. Aging-related changes in the default mode network and its anti-correlated networks: a resting-state fMRI study. Neuroscience Letters. 2011;504(1):62–67. doi: 10.1016/j.neulet.2011.08.059. [DOI] [PubMed] [Google Scholar]
  • Xia, Wang & He (2013).Xia M, Wang J, He Y. BrainNet viewer: a network visualization tool for human brain connectomics. PLOS ONE. 2013;8(7):e68910. doi: 10.1371/journal.pone.0068910. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Yan et al. (2019a).Yan C-G, Chen X, Li L, Castellanos FX, Bai T-J, Bo Q-J, Cao J, Chen G-M, Chen N-X, Chen W, Cheng C, Cheng Y-Q, Cui X-L, Duan J, Fang Y-R, Gong Q-Y, Guo W-B, Hou Z-H, Hu L, Kuang L, Li F, Li K-M, Li T, Liu Y-S, Liu Z-N, Long Y-C, Luo Q-H, Meng H-Q, Peng D-H, Qiu H-T, Qiu J, Shen Y-D, Shi Y-S, Wang C-Y, Wang F, Wang K, Wang L, Wang X, Wang Y, Wu X-P, Wu X-R, Xie C-M, Xie G-R, Xie H-Y, Xie P, Xu X-F, Yang H, Yang J, Yao J-S, Yao S-Q, Yin Y-Y, Yuan Y-G, Zhang A-X, Zhang H, Zhang K-R, Zhang L, Zhang Z-J, Zhou R-B, Zhou Y-T, Zhu J-J, Zou C-J, Si T-M, Zuo X-N, Zhao J-P, Zang Y-F. Reduced default mode network functional connectivity in patients with recurrent major depressive disorder. Proceedings of the National Academy of Sciences of the United States of America. 2019a;116(18):9078–9083. doi: 10.1073/pnas.1900390116. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Yan et al. (2019b).Yan W, Calhoun V, Song M, Cui Y, Yan H, Liu S, Fan L, Zuo N, Yang Z, Xu K, Yan J, Lv L, Chen J, Chen Y, Guo H, Li P, Lu L, Wan P, Wang H, Wang H, Yang Y, Zhang H, Zhang D, Jiang T, Sui J. Discriminating schizophrenia using recurrent neural network applied on time courses of multi-site FMRI data. EBioMedicine. 2019b;47:543–552. doi: 10.1016/j.ebiom.2019.08.023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Ye et al. (2024).Ye W, Wang J, Chen L, Dai L, Sun Z, Liang Z. Adaptive spatial–temporal aware graph learning for EEG-based emotion recognition. Cyborg and Bionic Systems. 2024;5(6):0088. doi: 10.34133/cbsystems.0088. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Yeh et al. (2024).Yeh C-H, Zhang C, Shi W, Zhang B, An J. Quantifying sharpness and nonlinearity in neonatal seizure dynamics. Cyborg and Bionic Systems. 2024;5:0076. doi: 10.34133/cbsystems.0076. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • You et al. (2021).You J, Gomes-Selman JM, Ying R, Leskovec J. Identity-aware graph neural networks. Proceedings of the AAAI Conference on Artificial Intelligence. 2021;35(12):10737–10745. doi: 10.1609/aaai.v35i12.17283. [DOI] [Google Scholar]
  • Zhang et al. (2018).Zhang F-F, Peng W, Sweeney JA, Jia Z-Y, Gong Q-Y. Brain structure alterations in depression: psychoradiological evidence. CNS Neuroscience & Therapeutics. 2018;24(11):994–1003. doi: 10.1111/cns.12835. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Zhang et al. (2025a).Zhang Z, Zhang Y, Wang H, Lei M, Jiang Y, Xiong D, Chen Y, Zhang Y, Zhao G, Wang Y, Zhang W, Xu J, Zhai Y, An Q, Li S, Hao X, Liu F. Resting-state network alterations in depression: a comprehensive meta-analysis of functional connectivity. Psychological Medicine. 2025a;55:e63. doi: 10.1017/s0033291725000303. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • Zhang et al. (2025b).Zhang Z, Zhao Q, Xu J, Yang K, Wu Y, Lei M, Wu Q, Wang H, Cai W, An Q, Zhai Y, Wang Y, Li C, Guo L, Liu F. Linking environmental exposures to depression: insights from epidemiology, biology, and methodology. Brain Conflux. 2025b;1(2):e244. doi: 10.71321/ymyc0370. [DOI] [Google Scholar]

Associated Data

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

Data Availability Statement

The following information was supplied regarding data availability:

The Autism Brain Imaging Data Exchange Data is available at ABIDE: https://fcon_1000.projects.nitrc.org/indi/abide/abide_I.html.

The REST-meta-MDD data is available at The R-fMRI Network: http://rfmri.org/REST-meta-MDD.

The code is available at GitHub and Zenodo:

- https://github.com/BNA278/ModularFBGs.

- BNA278. (2026). BNA278/ModularFBGs: ModularFBGs (v1.0). Zenodo. https://doi.org/10.5281/zenodo.19759730.


Articles from PeerJ are provided here courtesy of PeerJ, Inc

RESOURCES