Next Article in Journal
Evaluating Validation Strategies in Motor Imagery EEG: A Full-Cohort GAF–PLV Analysis and Matched Sensitivity Study
Previous Article in Journal
Maximal Handgrip Strength as a Measure of General Functional Capacity Rather than Parkinson’s Disease-Specific Impairment
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

HDGNN-Mamba2: Mamba-Based Spatiotemporal Heterogeneous Dynamic Graph Neural Network for Major Depressive Disorder Classification

College of Electronic and Information Engineering, Tongji University, Shanghai 201804, China
*
Author to whom correspondence should be addressed.
Brain Sci. 2026, 16(8), 872; https://doi.org/10.3390/brainsci16080872
Submission received: 11 July 2026 / Revised: 12 August 2026 / Accepted: 14 August 2026 / Published: 17 August 2026

Highlights

What are the main findings?
  • HDGNN-Mamba2, a novel Mamba2-GNN hybrid with cross-attention fusion, jointly models temporal dynamics and spatial topology of fMRI brain networks, overcoming the limitations of Transformers and existing GNNs.
  • The framework achieves 83.88% accuracy on REST-meta-MDD, demonstrating competitive performance among GNN-based approaches, with higher sensitivity (86.52%).
What are the implications of the main findings?
  • The heterogeneous graph module integrates spatiotemporal brain features with non-imaging demographic data via dynamic edge updating, enabling more comprehensive subject representations beyond existing approaches.
  • The framework identifies interpretable MDD-related model-attributed regions consistent with existing studies, demonstrating its potential as an exploratory framework for MDD classification using multimodal brain imaging and demographic data.

Abstract

Background: Major depressive disorder (MDD) affects 332 million people worldwide, yet diagnosis remains reliant on subjective clinical interviews with substantial inter-rater variability. Objective neuroimaging model-attributed regions offer a path toward precision psychiatry, but existing computational approaches often lack clinical interpretability. Methods: We propose HDGNN-Mamba2, a Mamba-based spatiotemporal heterogeneous dynamic graph neural network. A hybrid Mamba2-GNN block with cross-attention fusion is developed to capture individual spatiotemporal contextual features and identify model-attributed regions. A heterogeneous global graph block with dynamic edge updating is constructed, integrating individual brain features with non-imaging phenotypic information (sex, age, education) to extract embeddings through inter-individual relationship modeling. Heterogeneous Graph Supervised Contrastive Learning is integrated to enhance discriminative capacity. Results: Evaluated on 533 subjects from the REST-meta-MDD dataset, HDGNN-Mamba2 achieved 83.88% accuracy, 86.52% sensitivity, and 80.85% specificity in ten-fold cross-validation. The identified model-attributed regions include the anterior cingulate cortex, parahippocampal gyrus, and thalamus. Conclusions: HDGNN-Mamba2 demonstrates competitive performance as an algorithmic framework for MDD classification, offering complementary architectural advantages in spatiotemporal fusion and interpretable region identification.

1. Introduction

Major depressive disorder (MDD) is a common mental disorder that places a substantial burden on affected individuals [1]. According to the latest World Health Organization estimate, approximately 332 million people worldwide have depression [2]. Depression is characterized by persistent low mood and loss of interest or pleasure. It can cause psychological and physical problems that affect work, study, appetite, sleep, and the ability to enjoy daily activities [3]. MDD may also involve suicidal thoughts or behaviors [4]. MDD is diagnosed mainly through clinical interviews and questionnaires based on self-reported symptoms. These procedures can be time-consuming and depend partly on clinical judgment, which may make early diagnosis difficult. MDD is also heterogeneous in clinical presentation, prognosis, and treatment response [5]. Objective and efficient methods are therefore needed to support MDD classification and identify model-attributed brain regions [6]. Recent advances in artificial intelligence and machine learning have shown promise in biomedical research, including disease diagnosis and drug discovery [7].
Currently, various medical imaging techniques are available to enhance the diagnosis and understanding of neurological disorders, such as positron emission tomography (PET), electroencephalography (EEG), functional magnetic resonance imaging (fMRI), magnetoencephalography (MEG), and diffusion tensor imaging (DTI) [8]. Among those medical imaging methods, fMRI possesses characteristics such as non-invasiveness, high spatial resolution, and multidirectional imaging capabilities for detecting brain activity, and has been widely used to investigate the pathogenesis of MDD [9]. Liang et al. discovered the neural subtypes related to MDD in resting-state functional magnetic resonance imaging (rs-fMRI) data, which may provide valuable evidence for understanding the heterogeneity of depression [10]. These findings indicate that fMRI can deepen our understanding of MDD pathophysiology and may inform future diagnostic approaches. Through the fusion of multimodal data, including fMRI data, psychosocial cognition, and social information, deep learning (DL) and machine learning methods are applied to the intervention, diagnosis, and management of psychiatric disorders, particularly depression [11].
In recent studies, the machine learning algorithms most frequently employed for classifying depression include K-Nearest Neighbor (KNN), Logistic Regression (LR), Support Vector Machine (SVM), Decision Tree, and Naive Bayes (NB) [12]. Yamashita et al. developed the logistic regression algorithm to distinguish participants with MDD from healthy controls, achieving a classification accuracy of approximately 70% [13]. Using the Extreme Gradient Boosting (XGBoost) method, Shi et al. developed an rs-FC model that outperformed other approaches in classifying participants with MDD versus healthy controls at the individual level, reaching an accuracy of 72.8% [14]. However, traditional machine learning approaches do not support end-to-end learning and have significant limitations, as classification results largely depend on the importance of features obtained in the initial phase, while also exhibiting deficiencies in capturing topological and temporal features.
The ability of DL methods to perform automatic feature extraction and establish end-to-end classification models has driven their increasing application in the field of mental health diagnosis. Gupta et al. adopted a DNN (deep neural network) framework combined with hierarchical node pruning. This technique not only minimized the initial parameter count but also yielded 76.4% accuracy for MDD classification, while simultaneously mitigating the risk of overfitting [15]. Wei et al. developed a multi-stream 3D CNN architecture that allowed for the simultaneous training of features from sMRI and rs-fMRI modalities. The model achieved a 69.38% accuracy rate in classifying participants with MDD versus healthy controls [16]. Using a Transformer-Encoder architecture, Dai et al. extracted functional connectivity features from large-scale multi-site rs-fMRI data to differentiate between participants with MDD and healthy controls, achieving a mean classification accuracy of 78.11% [17]. The complex topological nature of brain networks poses a fundamental challenge for conventional deep learning models like CNNs, which are not inherently designed to accommodate non-Euclidean data. Graph convolutional neural networks present a promising approach for processing fMRI data, as such data inherently reflect the functional architecture of the human brain [18]. Venkatapathy et al. proposed a graph neural network-based ensemble model capable of distinguishing participants with MDD from healthy controls and, additionally, first-episode from recurrent depression. Tested on a large fMRI dataset comprising 821 participants with MDD and 765 healthy controls, the model attained 71.18% accuracy with upsampling and 70.24% accuracy with downsampling in the MDD versus HC classification [19]. Dai et al. introduced a dynamic feature extraction approach that computed time-point-specific Pearson correlations between brain regions to capture functional connectivity, which was then input into a graph convolutional network (GNN) for MDD classification, attaining 75.8% accuracy and revealing MDD-related brain regions [20].
Demographic information has been consistently recognized in clinical research as an important factor in the diagnosis of neurological disorders. Xing et al. achieved 90.0% accuracy on the ADNI II dataset by using demographic features as auxiliary outputs to classify normal controls and Alzheimer’s disease patients [21]. Liu et al. introduced a Multi-channel Fusion GNN that utilizes dual channels to extract features from low-order and high-order brain graphs. By incorporating demographic data via one-hot encoding, the model effectively identified MDD-associated brain regions, achieving 77.6% accuracy [22]. Building on insights from prior studies, this paper incorporates demographic data as supplementary input features.
Emotional instability over time is a common feature in psychiatric patients, which raises the possibility that their brain network connectivity patterns are not fixed but instead evolve dynamically. The fMRI signals are time series data, and the aforementioned deep learning methods primarily extract features from the brain’s spatial domain. This focus may limit their ability to capture temporal dynamics of inter-regional interactions. Recurrent Neural Networks (RNNs) are suitable for time series feature extraction, but suffer from long-term dependency issues, leading to information loss [23]. While Transformer-based models demonstrate superior performance in capturing global dependencies, the computational complexity of self-attention grows quadratically with image size, resulting in significant overhead [24]. Recently, modern structured state space sequence models (SSMs) such as Mamba have demonstrated strong performance in long-sequence modeling [25,26], achieving linear scaling with input length while efficiently representing dependencies at both global and local levels [27,28,29].
This paper proposes HDGNN-Mamba2, a Mamba-based spatiotemporal Heterogeneous Dynamic Graph Neural Network, for the classification of participants with MDD and healthy controls. In light of the importance of capturing spatiotemporal patterns from fMRI, the network constructs a heterogeneous graph network by fusing multimodal data such as spatiotemporal features extracted from individual subject fMRI time series and demographic phenotypic information, attaining competitive predictive accuracy via an end-to-end framework. Moreover, the proposed method identifies significant model-attributed regions for disease classification. First, a hybrid Mamba2-GNN block with a cross-attention Fusion mechanism is designed to combine Mamba with graph convolutional networks for extracting individual spatiotemporal contextual features from the fMRI data and to identify model-attributed regions. In this block, the Conv-SSD layer is used as the temporal layer to capture temporal dependencies within fMRI signals. The Conv-SSD layer utilizes a selective state space mechanism to perform encoding and representation learning on the input sequences, enabling it to capture dependencies across different positions in the sequence. Once the time series of each brain region has been processed by the temporal layer, the outputs are passed to the spatial layer, where a graph attention network is used to model spatial correlations between brain regions. Functional connectivity is quantified by Pearson correlation between regional fMRI time series. Furthermore, the graph network incorporates a self-attention-based pooling module, where a multi-head attention mechanism adjusts node scores to retain important nodes while eliminating redundant ones. These preserved high-importance nodes contain model-attributed regions relevant to MDD prediction. Second, a heterogeneous global graph is constructed to capture subject-level relationships by leveraging embeddings derived from individual brain features and non-imaging demographic data. The spatiotemporal features of individual brain regions are treated as node information in the heterogeneous graph. A clustering method is used to compute distinct inter-subject relationships from each phenotypic dataset, which are then encoded as different types of edges. The self-attention mechanism was employed to fuse information across edge types, obtaining heterogeneous global graph network feature embeddings that integrate diverse characteristic types. Finally, the HDGNN-Mamba2 model enhances the classification performance of MDD by capturing the most essential embedded features through the integration of multimodal data, including individual brain network characteristics and global inter-subject correlation features.
The contributions of this paper can be summarized as follows:
  • We proposed a novel spatiotemporal heterogeneous dynamic graph neural network framework for classifying MDD using fMRI data. This model extracts spatiotemporal feature embeddings from individual subject brain data and identifies model-attributed regions, while enhancing semantic information through heterogeneous network fusion of multimodal data including individual spatiotemporal brain features and diverse non-imaging phenotypic information between subjects.
  • A cross-attention Fusion mechanism is designed that enables bidirectional interaction between temporal and spatial features in the Mamba2-GNN block, where temporal dynamics and spatial topologies mutually enhance each other through cross-modal attention, capturing complex spatiotemporal dependencies that cannot be represented by independent processing.
  • A dynamic edge updating mechanism is proposed for heterogeneous graph neural networks, which periodically refines inter-subject connectivity based on evolving node embeddings. A learnable gating fusion strategy balances static phenotypic priors with dynamic feature similarities, enabling the graph topology to co-adapt with the representation learning process.
  • A Heterogeneous Graph Supervised Contrastive Learning module is integrated into the heterogeneous graph training, which explicitly promotes within-class cohesion and between-class separation in the embedding space by pulling embeddings of same-class subjects closer and pushing embeddings of different-class subjects apart, thereby providing complementary supervisory information to the classification loss.
  • An attention-based pooling approach is introduced to boost interpretability in the identification of key model-attributed regions, as well as to select the most discriminative spatiotemporal feature embeddings derived from brain regions of individual subjects.

2. Preprocessing and Data

2.1. fMRI Dataset

This study employs data derived from the REST-meta-MDD dataset. To our knowledge, the research team led by Yan Chaogan at the Institute of Psychology, Chinese Academy of Sciences, collaborated with twenty-five depression research teams spanning 17 institutions across China, collecting and processing MDD data following standardized protocols, ultimately developing the REST-meta-MDD dataset [30]. The REST-meta-MDD dataset has effectively integrated data from 1128 healthy control subjects and 1300 depression patients across various research centers. In particular, it is currently the world’s largest depression-related brain functional imaging database, containing participants’ demographic information, and has been made openly accessible to researchers worldwide. Specifics regarding data collection details may be accessed via the Supplementary Table on the website (http://rfmri.org/REST-meta-MDD (accessed on 12 August 2026)). In this study, we focused on the S20 cohort. The S20 cohort includes 533 subjects, comprising 282 participants with confirmed MDD diagnoses and 251 healthy individuals. Beyond the BOLD fMRI time series data, sociodemographic factors for each participant, such as age, sex, and duration of schooling, sourced from the REST-meta-MDD project, are incorporated in this study.
The demographic characteristics of the S20 cohort are summarized in Table 1. The MDD and healthy controls (HC) groups did not differ significantly in age or sex distribution. However, the HC group had significantly more years of education than the MDD group. This disparity is consistent with previous reports that depression is associated with lower educational attainment in clinical samples.

2.2. Data Preprocessing

The DPARSF toolkit [31] (http://www.rfmri.org/DPARSF (accessed on 12 August 2026)) was employed for data preprocessing. The preprocessing workflow included the following steps: (1) The initial ten volume features of the rs-fMRI data were excluded to achieve stability in the scanner’s magnetic field gradient. (2) Head motion correction was performed to realign images using a six-parameter rigid-body linear transformation. (3) T1-weighted structural scans were aligned with the mean functional volume via a linear transformation with six free parameters and no resampling. (4) T1-weighted images underwent segmentation into three tissue types: white matter, gray matter, and cerebrospinal fluid. (5) All acquired imaging datasets underwent normalization to align with the MNI standard anatomical space. (6) Head movement confounds were eliminated via regression based on the 24-parameter Friston model. (7) Bandpass filtering was applied to all time series within 0.01–0.1 Hz.

2.3. Functional Connectivity

The construction of brain functional connectivity mainly involves three steps: the parcellation of brain regions of interest, the extraction of time series, and the calculation of the indexes of brain functional connectivity.
(1)
Regions of Interest
Following the preprocessing of fMRI data, it is essential to segment the regions of interest within the three-dimensional brain image. The most common parcellation approach uses brain atlases, which map voxels to anatomical or functional regions. Regional feature values are then computed by voxel-wise averaging or clustering. The segmentation of brain regions further transforms the large voxel point feature into a more macroscopic brain region-level feature, which is helpful for further analysis and more interpretable. Common brain atlases include: AAL (Automated Anatomical Labeling), Craddock, Harvard Oxford (HO), and POWER, among others. The POWER atlas was selected in this paper. Anatomical atlases such as AAL exhibit relatively poor within-ROI functional homogeneity and may not accurately reproduce voxel-level functional connectivity patterns, whereas functional parcellations provide superior homogeneity in this regard [32]. The cerebral imaging data are parcellated into 264 functional regions of interest based on the POWER functional parcellation template.
(2)
Extraction of Time Series
fMRI data are four-dimensional, consisting of three-dimensional brain image information and one-dimensional time information. The extraction of time series is to convert four-dimensional data into a two-dimensional N × T matrix M. N is the number of cerebral regions, T denotes the temporal dimension, and Mij is the characteristic value of brain region i at time j. Therefore, fMRI data can be transformed into temporal sequences corresponding to individual brain regions. The schematic illustration of time series extraction is presented in Figure 1.
(3)
Calculation of the Indexes of Brain Functional Connectivity
The commonly used coefficients to measure the relationship between brain regions include the Pearson correlation coefficient, partial correlation coefficient and wavelet coefficient. To quantify functional connectivity between ROIs, this study adopts the Pearson correlation coefficient as a simple yet widely used correlation metric. The formula of the Pearson correlation coefficient is as follows:
ρ i j = c o r r ( x i , x j ) = t = 1 N ( x j t x j ¯ ) ( x i t x i ¯ ) t = 1 N ( ( x i t x i ¯ ) 2 ) t = 1 N ( x j t x j ¯ ) 2
In the above formula, x i and x j refer to the time series of the ROI i and ROI j, respectively, x i ¯ and x j ¯ represent the time series mean of the ROI i and ROI j. ρ i j denotes the Pearson correlation computed between a pair of ROIs, with a range of −1 ≤ ρ i j ≤ 1. If ρ i j is positive, it indicates a positive correlation between the signal intensities of a pair of ROIs over time, suggesting functional synergy. In contrast, a negative ρij points to functional antagonism across the ROIs, with a stronger correlation as the absolute value increases. When ρ i j = 0, it can be concluded that there is no correlation between the signal intensities of the two ROIs over time. The result is a Pearson correlation matrix, where each column or row corresponds to the connectivity profile between a given ROI and all remaining ROIs.

3. Methods

3.1. Preliminaries

In modern SSM-based models, such as structured state space sequence models (S4) and Mamba [33,34,35], both rely on classical continuous systems that represent one-dimensional input functions or sequences as x t R , mapped to the output h t R N through an intermediate implicit state y t R . The above procedure can be expressed by a linear ordinary differential equation (ODE) as:
h t ˙ = A h t + B x t ,
y t = C h t ,
where A R N × N is defined as the state matrix, with B R N × 1 and C R N × 1 serving as the projection parameters. To enhance compatibility with deep learning applications, S4 and Mamba implement discretization on this continuous system. Specifically, they integrate a temporal scaling factor ∆ and adopt a predetermined discretization method to convert the continuous matrices A and B into their discretized versions A ¯ and B ¯ . As a common practice, the ZOH (zero-order hold) technique is employed to perform discretization, which can be formulated as:
A ¯ = e A ,
B ¯ = ( A ) 1 ( e A I ) B ,
Once discretized, the SSM-based model can be computed using linear recursion:
h t = A ¯ h t 1 + B ¯ x t ,
y t = C h t ,
Alternatively, the model can be expressed as a global convolution:
K ¯ = ( C B ¯ , C A B ¯ , C A ¯ L 1 B ¯ ) ,
y = K ¯ × x ,
where K ¯ R L represents a structured convolution filter, and L is the size of the input sequence x.
Recently, Mamba2 introduced the SSD framework, which reduces matrix A to a scalar form [36]. Mamba2 is designed for efficient long-context modeling. Mamba2 operates using a structured state space representation. This special case of SSMs is applicable to both linear and quadratic scenarios. The mathematical formulation of Mamba2 (SSD) is presented as follows:
y ( t ) = i = 1 t C t T A t : i + 1 B i x ( i ) ,
A t : i = j = i + 1 t A j ,
where t (1 ≤ t ≤ T) denotes the current time step, while A i , B i , C t T are dynamically updated parameterized matrices.

3.2. Architecture Overview

The HDGNN-Mamba2 framework is schematically depicted in Figure 2. The fMRI data used in this study were derived from the REST-meta-MDD dataset. For each individual subject, the preprocessed fMRI data were used to extract blood-oxygen-level-dependent average signal sequences corresponding to ROIs, defined according to a brain atlas template. We performed pairwise Pearson correlation analysis on the time series to construct functional connectivity matrices, which served as adjacency matrices for individual brain region graphs to characterize functional associations between pairwise brain regions. Simultaneously, the time series and the resulting adjacency matrices were input into the Mamba2-GNN block of the HDGNN-Mamba2 module, where bidirectional interaction between temporal and spatial features was achieved via a cross-attention fusion mechanism to learn spatiotemporal features of individual brain networks. The updated ROI regions of each individual brain area aggregated information from adjacent nodes. Three phenotypic datasets were processed using clustering methods to form three types of connectivity relationships among subjects, which were then used as edge attributes in the heterogeneous graph. Individual brain networks aggregated information from different types of edges through the HGNN layer of the HDGNN-Mamba2 module, obtaining heterogeneous global graph network feature embeddings that integrated multiple feature categories. Finally, the aggregated multimodal features were fed into a classifier to complete the prediction task. The HDGNN-Mamba2 was mainly composed of the following parts: a Mamba2-GNN block, an HGNN block and a classifier layer.

3.3. Mamba2-GNN

MDD affects different etiological brain regions, which implies that not all brain regions hold equal importance in diagnosing MDD. As shown in Figure 3, we proposed the Mamba2-GNN block method to extract spatiotemporal features of individual brain regions. This method primarily consisted of the Temporal Block and Spatial Block, eliminating noisy connections while preserving critical vertices and edge linkages.

3.3.1. Temporal Block

As illustrated in Figure 3, the temporal block used a Conv-SSD layer to capture temporal dependencies in fMRI series. The core module of the Conv-SSD layer was Mamba2, which was equipped with a 1D convolutional layer (1D-CNN), layer normalization, and residual connections that improved training stability and overall performance. First, a 1D convolutional layer was adopted to encode the initial fMRI time series x into a hidden state x. Second, within the Conv-SSD layer, this component processed the full x sequence to extract features. The feature data were then divided into two streams: one stream was fed as input X R to the Spatial Block, while the other was processed through dimensionality reduction using a larger 1D convolutional kernel (3 × 3). The result was then fused with the Spatial Block’s output through a residual connection. The Conv-SSD layer was defined as:
x = C o n v 1 d ( x ) ,
X R = S S D ( x , A , B , C , ) + x ,
y m = C o n v 1 d ( X R ) ,
The Conv-SSD layer mapped the input time series to a hidden representation with a unified dimension D = 64. Thus, the output temporal feature was y m ∈ RN × D, where N = 264.

3.3.2. Adjacency Matrix

Individual brain networks carry topological information, and graph neural networks exhibit significant advantages in processing such node-edge connection data.
Consequently, each subject was modeled as a graph G R = ( V , E ) , in which V signified the fMRI temporal feature data of each ROI extracted subsequent to the Conv-SSD layer, and E was the edge weights capturing the interconnection patterns between nodes. The Pearson correlation coefficient ρ i j computed in the prior section was utilized in this context. The adjacency matrix A i j was shown below.
A i j = | ρ i j |   ,   if   i j 1   ,   if   i = j ,
where all pairs of ROIs were fully connected, with edge weights given by the absolute Pearson correlation coefficient | ρ i j | to quantify functional associations between brain regions. The adjacency matrix was denoted as A i j R N × N , where N = 264. A fully connected graph was adopted to avoid arbitrary thresholding that may discard weak but potentially informative functional relationships.

3.3.3. Spatial Block

The core module in the Spatial Block was the graph neural network module for brain region ROIs (RGNN). The RGNN was primarily composed of ROI graph convolutional layers (GCN), normalization layers (PairNorm), pooling layers (SAGPooling), and others. The calculation formula for one graph convolutional layer and normalization layer was as follows:
X R l + 1 = σ ( G C N ( X R , A R ) ) = σ ( D ˙ R 1 / 2 · A ˙ R · D ˙ R 1 / 2 · X R l · W R l ) ,
X R l + 1 = N o r m ( X R l + 1 ) ,
where R is the input graph, W R l denotes the learnable weight matrix, A ˙ R = A R + I is the adjacency matrix with added self-loops, D R is the degree matrix, D ˙ R 1 / 2 · A ˙ R · D ˙ R 1 / 2 represents the normalized Laplacian matrix, σ represents the activation function, with X R l and X R l + 1 respectively denoting the node embeddings learned at layers l and l + 1. The normalized Laplacian operator implicitly downweights weak edges during spectral convolution, mitigating noise amplification in the fully connected graph.
Empirical findings suggest that under specific circumstances, the classification efficacy of Graph Neural Networks (GNNs) may not exhibit improvement with the augmentation of layer depth; rather, it can experience notable degradation. This phenomenon is associated with the potential over-smoothing challenge that may emerge in GNN architectures. Within the model proposed in this work, the node normalization layer was designed to normalize node representations, avoiding the convergence of all node embeddings to a similar state. This mechanism not only improved the stability of GNNs but also contributed to alleviating overfitting. The detailed implementation procedures were outlined as follows:
First, we centralized each node’s features to obtain:
h ¯ i l + 1 = h i l + 1 1 n i = 1 n h i l + 1 ,
Let s be the scaling factor; then h ¯ i l + 1 was scaled to yield:
h ̿ i l + 1 = s · ( h ¯ i l + 1 1 n i = 1 n | | h ¯ i l + 1 | | 2 ) ,
By substituting | | h ¯ i l + 1 | | 2 in the preceding expression with n | | h ¯ i l + 1 | | 2 , the PairNorm in SI (scaling individually) mode was obtained. Thus, the equation became:
h ̿ i l + 1 = s · ( h ¯ i l + 1 | | h ¯ i l + 1 | | 2 ) ,
While the graph was fully connected at initialization, adaptive sparsification was achieved during training by the SAGPooling module, which retained only the top-K most discriminative nodes. A pooling module driven by self-attention mechanisms (SAGPooling) was devised to extract node features with discriminative power alongside selecting salient nodes. A node-wise pooling component was employed to coarsen the graph, retaining only the most important nodes. Furthermore, the count of network parameters could be decreased by the pooling layer, thereby enabling overfitting to be mitigated. In this manner, higher-level graph structural representations could be conveyed by the node representations generated on the coarsened graph.
Let the node features of the current layer be denoted by X R l , and let the self-attention score matrix S R l be estimated through graph convolution. A Top-K node screening mechanism was then employed to retain a selection of nodes from the local brain, with k denoting the node count required to construct a new graph. When selecting K nodes, the node ranking operation was based on indices idx of the top K values output by S R l . Subsequently, by utilizing the tanh activation function across the top K component S R l , the self-attention weights were derived. Then, via a point-wise product between X R l and s, the pooled node features X R l + 1 were obtained. The adjacency matrix A i d x l , i d x l l underwent row and column operations to construct the new adjacency matrix A R l + 1 .
S R l = G C N ( X R l , A R ) ,
s = t a n h ( S R l ) ,
i d x R l = T O P k ( s ) ,
X R l + 1 = X i d x l l · s ,
A R l + 1 = A i d x l , i d x l l ,
The final output y G = [ y g 1 , y g 2 , , y g k ] of the Spatial Block was generated by further applying RGNN layers to K chosen node attributes.
y G = L i n e a r ( G C N ( X R l + 1 ) ) ,
A cross-attention fusion mechanism was proposed that enabled bidirectional interaction between temporal and spatial features. The motivation was that the K brain region activities were inherently spatiotemporal, where the activity of a region at a given time was influenced by both its own temporal dynamics and its topological connections to other regions. Furthermore, temporal and spatial information provided complementary perspectives on brain function, and their interaction can reveal patterns that neither modality captured alone.
y G = C r o s s A t t e n ( y G , y m , k ) + y G ,
y m = C r o s s A t t e n ( y m , k , y G ) + y m , k ,
where CrossAttn(A,B) denotes the standard cross-attention mechanism with A as the query and B supplying the value and key. y m , k denote temporal features of the k brain regions retained in the Spatial Block, extracted from y m using the same index set idx. The final output Y of the Mamba2-GNN layer was adaptively fused through a learnable gating mechanism:
Y = g G M · y m + ( 1 g G M ) y G ,
where g G M was a gating vector that dynamically balanced the contribution of temporal and spatial information for each brain region.
Then the individual brain region features were reshaped into a 1D vector, which served as the node feature for the subsequent heterogeneous graph. In this graph, every subject was treated as a node, and the flattened feature vector captured the subject’s discriminative spatiotemporal brain patterns.

3.4. HGNN

Previous studies rarely considered the differences in patient demographic data. To reflect these differences, we constructed a heterogeneous population relationship graph (HGNN) Gs = {V’,E’}, for all of the subjects S = {S1, S2,…, Sn}, based on demographic data and fMRI data. Here, n is the total number of subjects, E’ defines the edges connecting vertices, and the node set V’ represents the subjects. Diverse demographic data (e.g., sex, age, educational attainment) served as edge relations, which were determined using clustering methodologies.
Taking subject sex as an example, clustering yielded groups of the same sex, where the same-sex relationship was assigned a value of 1 and different-sex relationships were assigned 0, forming an adjacency matrix. Ultimately, a heterogeneous graph structure with different path sets θ = { S G S ; S E S ; S A S } was constructed, where S represents subjects, S-G-S denotes sex-related paths between subjects, S-E-S represents education-related paths between subjects, and S-A-S indicates age-related paths between subjects. Heterogeneous graph node features h = { Y 1 , Y 2 , , Y D } R n × m , where m = k × D is the feature dimension. The adjacency matrix of V’ is A θ 0 . A θ 0 R n × n represents the clustering-based relationship scores between two subjects derived from demographic data. Age and education were discretized via k-means (k = 2, Euclidean distance) fitted on the training set within each fold; the resulting binary groupings were refined by dynamic edge updating.
To further enhance the expressive power of the heterogeneous graph, a Dynamic Edge Updating (DEU) mechanism was introduced that periodically refined the inter-subject adjacency matrices during training. For each phenotypic path θ , the dynamic similarity was fused with the original static edge using a learnable gate g θ . The fused adjacency matrix A θ was as follows:
A θ = g θ · S h + ( 1 g θ ) · A θ 0 ,
where S h is the cosine similarity matrix computed from L2-normalized node embeddings, with values in [−1, 1] and no thresholding applied. To ensure training stability, the edge updates were performed once every Δ = 10 epochs, and the adjacency matrix remained constant between updates. Self-edges were preserved, and the scalar gate gθ was learnable and differentiable.
HGNN layer primarily employed an attention-based graph convolutional module as the backbone network for feature learning. The schematic diagram of the architecture of HGNN is shown in Figure 4. The layer first computed intra-path graph aggregation by determining the attention weight α i j θ from node i to node j. Once the attention weights between nodes were computed, message aggregation was performed on the neighbors of node to aggregate information from different paths and neighbors, thereby obtaining the graph feature z i θ for each path. Subsequently, all path information was adaptively aggregated through learnable proportional weights for each path. The formula was as follows:
H = A θ · H ,
e i j θ = a t t n o d e ( H i , H j ; θ ) ,
α i j θ = s o f t m a x ( e i j θ ) ,
z i θ = σ k ( j N e a r α i j θ · h j ) ,
w θ = 1 | θ | i | θ | q T · t a n h ( W · z i θ + b ) ,
β θ = s o f t m a x ( w θ ) ,
Z = β θ · z θ ,
α i j θ represents the normalized calculation of node weights e i j θ , w θ denotes the weight of each path, β θ is the normalization of w θ , q T is the learnable parameter for path types, W and b are learnable parameters, ‖ k denotes multi-head attention, and | θ | represents the total number of paths.

3.5. Heterogeneous Graph Supervised Contrastive Learning

To further boost the discriminative capacity of the subject embeddings learned by the heterogeneous graph, a supervised contrastive learning module tailored for brain disorder diagnosis was introduced. Positive and negative pairs were constructed based on clinical diagnostic labels, requiring no additional data preprocessing or augmentation.
Z = {z1, z2, …, zN} is the set of subject embeddings output by the HGNN module. Each subject i is associated with a diagnostic label y ~ ∈ {0, 1}, where 0 denotes HC and 1 denotes MDD. The positive mask matrix Pij and negative mask matrix N i j are defined as:
P i j = 1 ,   if   y ~ i = y ~ j   and   i j 0 ,   otherwise ,
N i j = 1 ,   if   y ~ i y ~ j   0 ,   otherwise ,
The similarity between any pair of subject features was computed:
s i m ( z i , z j ) = z i T z j | z i | 2 · | z j | 2 ,
For each subject i, the contrastive loss was defined as:
L c l i = l o g j = 1 N P i j · e x p ( s i m ( z i , z j ) / τ ) k i N e x p ( s i m ( z i , z k ) / τ ) ,
where τ > 0 is a temperature parameter that adjusts the smoothness of the similarity distribution. A smaller τ amplifies the differences between similarities, leading to a harder assignment. The embeddings used for metric learning were cached at the beginning of each epoch via a gradient-free forward pass and detached from the computation graph. This allowed the metric-learning objective to be computed over the entire training fold, providing sufficient non-anchor samples for stable optimization despite the small batch size, while preventing gradient backpropagation through cached embeddings and restricting updates to the current mini-batch. The cache was refreshed each epoch because subject representations evolved during training. Test-fold subjects were explicitly excluded from this cache.
The total loss combined the classification loss and the contrastive loss:
L c l = 1 N i = 1 N L c l i ,
By minimizing this loss, the model learned to pull embeddings of same-class subjects closer and push embeddings of different-class subjects apart.

3.6. Classification and Loss Function

The feature vector Z = {z1, z2, …, zN} output by the HGNN layer was passed to a fully connected layer. The fully connected layer output features for the cross-entropy loss, defined as:
o j = s o f t m a x ( W z j + b ) ,
L c e = 1 N j = 1 N [ y ~ j l o g ( o j ) + ( 1 y ~ j ) l o g ( 1 o j ) ] ,
where y ~ ∈ {0, 1} is a labeled sample in the fMRI data.
The overall loss of the HDGNN-Mamba2 framework was a weighted sum of the contrastive loss and the cross-entropy classification loss:
L = λ · L c l + L c e ,
where λ > 0 was a balancing hyperparameter that controlled the relative contribution of the contrastive loss.

4. Experiments and Results

4.1. Training Setup

In the paper, a ten-fold stratified cross-validation framework was adopted to measure the algorithm’s performance. Following dataset shuffling, the entire data corpus was partitioned into ten sub-datasets. For each validation iteration, one sub-dataset served as the test set, while the other nine sub-datasets were merged to create the outer training set. Within each outer training set, a stratified inner split was performed to reserve 10% as an internal validation subset for early stopping, with the remaining 90% used as the training inner subset for model parameter updates. To prevent information leakage, all data-dependent operations—including clustering for phenotypic attributes, graph adjacency reconstruction, dynamic edge updating, contrastive pair generation, and normalization parameters—were confined exclusively to the training inner subset within each cross-validation fold. The internal validation subset was used only for monitoring validation loss during early stopping and was not involved in graph construction, clustering, or parameter updates. Specifically, the k-means centers for age and education were fitted exclusively on the training inner subset and then applied to discretize the held-out test dataset. Both individual brain graph adjacency matrices and the heterogeneous subject graph were constructed using only training inner subset subjects, with test subjects subsequently embedded via inductive inference using the fixed training-derived graph structure and node parameters. All normalization parameters were computed solely from the training inner subset and applied to the validation and test datasets without re-estimation. The cosine similarity matrix and learnable gates for dynamic edge updating were derived exclusively from training inner subset embeddings, with validation and test subjects excluded from the computation. For supervised contrastive learning, the gradient-free forward pass and embedding cache were built from training inner subset subjects only, and positive and negative pairs were formed using training diagnostic labels alone, ensuring that the test dataset remained entirely isolated until final evaluation. The complete inductive procedure is formalized in Algorithm 1.
Algorithm 1: Per-Fold Inductive Cross-Validation for HDGNN-Mamba2
  • Input: Dataset D with n = 533 subjects, 10-fold stratified split
  • Output: Mean ± Std of metrics across 10 folds
  • Partition 533 subjects into 10 stratified folds
  • for each fold k = 1 to 10 do
  •   D_train ← 9 folds (~480 subjects), D_test ← 1 fold (~53 subjects)
  •   D_train_s, D_val ← stratified_split(D_train, ratio=0.9/0.1)
  •    // ── Stage 1: Preprocessing
  •   C_age = k-means(D_train_s.age, k=2)
  •   C_edu= k-means(D_train_s.edu, k=2)
  •   // Build adjacency matrix: TRAIN nodes only
  •   A_train←{Samesex(D_train_s.sex),SameCluster(D_train_s.edu,C_edu), SameCluster(D_train_s.age, C_age)}  //S-G-S,S-E-S,S-A-S
  •   // ── Stage 2: End-to-End Training (HDGNN-Mamba2)
  •   for epoch = 1 to 100 do
  •       for each subject s in D_train_s do
  •           z_s ← Mamba2_GNN({X_s})
  •       end for
  •       in_emb_train ← {z_s | s ∈ D_train_s}
  •       //Dynamic edge update (every Δ epochs, train embeddings only)
  •       A_train ← DEU( A_train, sim( in_emb_train ), Δ=10 ) // Dynamic edge update, train only
  •       Z_train = HGNN( A_train, {in_emb_train} )    // Population graph, train only
  •       Z_cache ← Detach(Z_train)        // Training inner subset, detached
  •       L_cl ← SupervisedcontrastiveLoss(Z_cache, D_train_s.y) // Standard supervised contrastive loss
  •       L_ce ← CrossEntropy(Z_train, D_train_s.y)
  •       L ← L_ce + λ·L_cl 
  •       L.backward(); optimizer.step()
  •       val_loss, val_acc ← Evaluate(D_val)
  •        if val_loss not improved for 20 epochs then
  •           break
  •        end if
  •        RestoreBestModelState()
  •   end for
  •   //── Stage 3: Test Evaluation
  •   // Build test adjacency: test nodes connect to train nodes via phenotype
  •   A_test ←∅
  •   for each test subject t in D_test do
  •       z_t ← Mamba2_GNN(X_t)  // Test subject feature
  •   // Connect test node to top-K train nodes by phenotype similarity
  •       sim_train ← Similarity(t, D_train_s, [sex, age, edu])
  •       top_k ← TopK(sim_train, k=5)
  •       A_test ← A_test ∪ {(t, neighbor) | neighbor ∈ top_k}
  •   end for
  •   // Concatenate train and test, forward through HGNN (no grad)
  •   Z_all ← HGNN_Inference(A_train ⋃A_test, concat(in_emb_train, {z_t}))
  •   ŷ_test ← argmax(Z_all[n_train_s:])  // Test predictions
  •     Compute metrics: ACC, SEN, SPE, AUROC, AUPRC
  • end for
  • return Mean ± Std of metrics across 10 folds
The detailed model configuration is as follows. The Mamba2-GNN block contains two temporal Conv-SSD layers and two RGNN spatial layers, both with a unified hidden dimension of 64. The SAGPooling layer retains the top K = 10 nodes (pooling ratio ≈ 0.038) and used four attention heads. The HGNN block comprises two attention-based graph convolutional layers with a hidden dimension of 64. The random seed was set to 42. All experiments were implemented using PyTorch 2.0.1 and PyTorch Geometric 2.3.1 on a Linux operating system with an NVIDIA RTX 4090 GPU (24 GB memory).
The training hyperparameters were set as follows: a learning rate of 0.0001, a dropout rate of 0.5, and a weight decay of 0.0001, following conventional settings in deep learning for small-sample neuroimaging classification. For the supervised contrastive learning module, τ = 0.5, Δ = 10, and λ = 0.1 were selected based on commonly adopted values in contrastive learning for graph-structured data and were fixed a priori without dataset-specific tuning on the S20. The pooling ratio (K = 10) was predetermined for clinical interpretability and not treated as a tunable hyperparameter. The Adam optimizer was used with a batch size of 4. Early stopping was monitored on a 10% stratified validation subset held out from each fold’s training set.

4.2. Statistical Metrics

For model evaluation, precision, accuracy (ACC), F1-score, and Recall served as the key metrics. First, it is necessary to clarify four concepts: TN (true negative), TP (true positive), FP (false positive), and FN (false negative). TP denotes the number of MDD subjects correctly classified as MDD. TN denotes the number of healthy controls correctly classified. FP denotes the number of healthy controls mistakenly classified as MDD. FN denotes the number of MDD subjects mistakenly classified as healthy controls.
These metrics are defined as follows:
A c c u r a c y = T N + T P T P + F P + F N + T N ,
P r e c i s i o n = T P F P + T P ,
R e c a l l = T P T P + F N ,
F 1 = 2 × P r e c i s i o n × R e c a l l P r e c i s i o n + R e c a l l ,
In binary classification, Sensitivity (also termed Recall) is defined as TP/(TP + FN), and Specificity as TN/(TN + FP). Precision is equivalent to Positive Predictive Value (PPV), defined as TP/(TP + FP).

4.3. Classification of fMRI Data

The HDGNN-Mamba2 model achieved a mean accuracy of 0.8388 ± 0.0542 for MDD classification under the inductive evaluation protocol. The discriminative performance of HDGNN-Mamba2 across all ten folds is summarized in Figure 5 and Figure 6. Figure 5 presents the ten-fold averaged ROC curve, with a mean AUROC of 0.8819 ± 0.0565. Figure 6 presents the ten-fold averaged precision–recall curve, with a mean AUPRC of 0.8886 ± 0.0622. The ROC curve consistently exceeds the random-guess diagonal, and the PR curve exceeds the random-guess baseline over a broad range of recall values. Regarding model complexity, the HDGNN-Mamba2 architecture contains approximately 0.46 million trainable parameters. The complete 10-fold cross-validation experiment required approximately 15 h and 8 GB peak memory. Detailed per-fold performance metrics are provided in Supplementary Table S1.
To verify the efficacy of the suggested approach, we carried out comparative experiments against the following methods. The REST-meta-MDD project dataset was used for all comparative experiments. The SVM model was implemented through Scikit-learn. The GCN and GAT models were implemented using the PyTorch Geometric library. The results of the comparison are shown in Table 2.
To statistically evaluate the accuracy difference between HDGNN-Mamba2 and MFGCN, we conducted a paired t-test on per-fold accuracy across ten folds. The mean difference was 0.30 percentage points (SD = 2.68, p = 0.73, 95% CI [−1.62%, +2.22%]), indicating that the two models achieve comparable accuracy on this dataset. HDGNN-Mamba2 trades a marginal F1-score reduction (0.8490 vs. 0.8528) for higher sensitivity (86.52% vs. 82.73%), reflecting a recall-oriented precision-recall trade-off. The distinct advantages of HDGNN-Mamba2 are its architectural innovations including cross-attention fusion, dynamic edge updating, and interpretable attention-based pooling.

4.4. Ablation Experiment

Ablation experiments were performed on the test dataset to verify the effectiveness of the proposed model and method. To evaluate the contribution of each module, we conducted ablation experiments by removing them individually and in combination. Specifically, we compared the full HDGNN-Mamba2 model against configurations without cross-attention fusion, without DEU, and without Supervised Contrastive Learning (λ = 0). Additionally, we compared against the original component-level baselines, including standalone Conv-SSD (Temporal only), Conv-SSD + HGNN (without Spatial), RGNN + HGNN (without Temporal), HGNN (without Mamba2-GNN), and Mamba2-GNN.
Ten-fold cross-validation was employed to assess the classification capability of each model on the dataset. The corresponding results are reported in Table 3.
The experimental results of the ablation conditions show that the full HDGNN-Mamba2 model achieves the highest classification performance. The final configuration yields 83.88% accuracy (ACC), 86.52% sensitivity (SEN), 80.85% specificity (SPE), 88.19% AUROC, and 88.86% AUPRC. The Mamba2-GNN configuration (0.8033) represents the imaging-only backbone—individual spatiotemporal brain network features without the heterogeneous demographic graph—enabling quantification of the incremental contribution of phenotypic information. The full model gains +3.55% over this imaging-only baseline, while the standalone HGNN (0.5629), relying solely on demographic graph structure without imaging features, achieves only chance-level performance.
The ablation results allow us to quantify the incremental contribution of each module. Removing the cross-attention fusion caused a 5.17% absolute drop in accuracy, indicating that bidirectional spatiotemporal interaction contributes substantially. Removing the dynamic edge updating mechanism reduced accuracy by 4.35%, confirming that phenotypic relationships provide complementary structural priors. Removing Supervised Contrastive Learning led to a 2.38% decrease, suggesting that the primary supervision signal comes from the cross-entropy loss, while the contrastive term acts as a beneficial regularizer. These observations collectively indicate that the performance gain is not driven by a single over-parameterized component but by the synergistic integration of complementary inductive biases.

4.5. Impact of Demographic Data

Within conventional machine learning approaches, when demographic variables display pronounced intergroup disparities, identifying the specific contributing factors underlying disparities in cerebral metrics becomes challenging. In such scenarios, it is necessary to regress out and eliminate intergroup-varying variables (e.g., sex, age) from physiological measurements (e.g., functional connectivity) to mitigate their influence. By contrast, deep neural network-based methods are data-centric and eliminate the need for manual feature extraction. Consequently, within categorization tasks, phenotypic information can be directly incorporated without engaging in handcrafted feature filtering procedures. As shown in Table 4, the results reveal that classification performance with integrated demographic data surpasses that of the non-integrated counterpart, thereby validating the efficacy of demographic variables within multi-level information fusion frameworks.
Importantly, the combination of all three phenotypic attributes (sex, age, and education) yields the highest accuracy, demonstrating that multimodal phenotypic information provides complementary benefits for MDD classification.

4.6. Analysis of Relevant Brain Regions

Within this section, we principally examine the regions of interest in the brain linked to depression. The parameter weights of each brain region produced by the self-attention pooling layer in HDGNN-Mamba2 are crucial for generating discriminative features.
First, fMRI data encompassing all ROIs were fed into the HDGNN-Mamba2 for forward propagation. Secondly, fMRI data extracted spatiotemporal features in the Mamba2-GNN layer, particularly acquiring spatial features through graph neural networks in the RGNN layer. Hierarchical graph dimensionality reduction was achieved through the self-attention TopK pooling operation, which compresses the graph structure while selecting K important nodes and retaining the information of these key nodes. These K nodes serve as the most discriminative regions for MDD classification. The value of K in this paper is set to 10. Finally, after multiple rounds of iterative model calculations, statistical analysis was performed on the top 10 important brain regions following TopK pooling, and the top ten brain regions with the highest selection frequency were identified as model-attributed regions.
The top ten ROIs with the highest mean node pooling values are labeled as 77, 98, 113, 90, 14, 107, 132, 234, 99, and 102. These brain regions represent Parahippocampal Gyrus (limbic lobe), Superior Frontal Gyrus (frontal lobe), Anterior Cingulate (limbic lobe), Posterior Cingulate (limbic lobe), Cingulate Gyrus (limbic lobe), Medial Frontal Gyrus (frontal lobe), Inferior Frontal Gyrus (frontal lobe), Thalamus, Superior Frontal Gyrus (frontal lobe), Superior Frontal Gyrus (frontal lobe), respectively. It should be noted that multiple ROI nodes from the Power atlas may correspond to the same anatomical region. For instance, Superior Frontal Gyrus appears three times (nodes 98, 99, and 102). This is because the Power atlas is a functional parcellation where distinct functional nodes can reside within the same macroscopic anatomical structure, each capturing different functional connectivity patterns. The distribution of these ROIs in the brain is shown in Figure 7. Detailed anatomical and functional network assignments for these regions are provided in Supplementary Table S2.
The results show that the top-ranked limbic lobe, frontal lobe, and thalamus exhibit strong correlations with MDD. The limbic lobe primarily consists of the cingulate gyrus, parahippocampal gyrus, and orbitofrontal cortex. Its main functions involve governing emotional processing, memory formation, and instinctive behaviors (such as fear responses). The frontal lobe’s key component is the prefrontal cortex, which governs higher cognition and emotional regulation. This is consistent with the findings of Huang et al. [39], further validating the effectiveness of the identified regions. Additionally, the thalamus ranked among the top model-attributed regions, likely due to its role in neural signal integration. This finding is consistent with Zhou et al. [40].
Spatial distribution of the top-10 model-attributed ROIs selected by SAGPooling, displayed from five standard perspectives: (a) left lateral, (b) right lateral, (c) medial, (d) ventral, and (e) dorsal views. Node labels indicate anatomical abbreviation and hemisphere (L, left; R, right). Node color reflects functional network assignment (red: default mode network, cyan: sensory/somatomotor hand, yellow: subcortical, blue: uncertain). Node size reflects selection frequency.
The identified model-attributed regions, including ACC and parahippocampal gyrus, are consistent with brain regions implicated in MDD pathophysiology by previous rs-fMRI studies. These regions are identified based on their selection frequency by the SAGPooling attention mechanism and should be considered model-attributed regions rather than independently validated biomarkers.

4.7. Limitations and Future Directions

Despite promising results, several limitations should be acknowledged. First, the study is limited by its single-site design, which restricts external validity and cross-site generalizability. This study deliberately employs single-site data to minimize cross-site confounding from scanner platforms, acquisition protocols, and recruitment demographics, thereby enabling a controlled evaluation of the core algorithmic performance. However, this design may introduce optimistic bias and limit generalizability. Future work will leverage the modular phenotypic-path architecture of heterogeneous graphs to encode cross-site factors—such as scanner platform, acquisition protocol, and recruitment site—as explicit edges (e.g., S–Site–S), enabling adaptive cross-site alignment through message passing. This approach treats site effects as learnable graph structures rather than nuisance variables to be removed.
Second, the publicly released REST-meta-MDD data lack subject-level motion parameters, quality-control metrics, and detailed clinical phenotyping (diagnostic instruments, medication status, symptom severity), precluding post hoc motion-confound analyses and subgroup stratification. The educational disparity between groups also represents a potential source of confounding. Future studies should utilize datasets with richer clinical phenotyping to enable more comprehensive subgroup and fairness analyses.
Third, the absolute Pearson correlation focuses on connectivity strength while discarding the directionality of functional connections, and the identified brain regions should be considered model-attributed regions rather than independently validated biomarkers. Future work should further explore signed connectivity, thresholded graphs, regularized precision matrices, and complementary attribution methods such as feature occlusion or integrated gradients to provide additional insights.
Fourth, a single 10-fold stratified run with a fixed random seed was employed to ensure experimental reproducibility. To further consolidate the statistical robustness of the findings, future work should conduct multiple independent repetitions with different random seeds, perform learning curve analyses with varying training set sizes, implement comprehensive hyperparameter scans, and extend the ablation study to include additional controlled baselines. Formal paired t-tests and multiplicity-corrected ablation experiments are also worth investigating.
Finally, the computational efficiency of the framework for practical clinical deployment warrants further investigation. The total training time of approximately 15 h on a single RTX 4090 GPU provides a practical reference. Future work will conduct a more comprehensive runtime and memory comparison against suitable baselines on identical hardware to better assess its potential for real-world applications. Additionally, calibration analysis, including calibration plots and Brier score, will be further explored to support potential clinical utility.

5. Conclusions

This study presents a novel HDGNN-Mamba2 framework aimed at differentiating participants with MDD from healthy controls. Spatiotemporal features derived from fMRI time series data are critical for MDD classification. To attain robust predictive performance through an end-to-end paradigm, the network constructs a heterogeneous graph by fusing multimodal datasets, encompassing these features alongside demographic and phenotypic information of individual subjects. Moreover, this approach is capable of identifying significant model-attributed regions relevant to disease classification.
First, a hybrid Mamba2-GNN module with a cross-attention fusion mechanism is designed, integrating Mamba with GNNs to capture individual spatiotemporal contextual features from fMRI data and to identify model-attributed regions. The Mamba module’s ability to efficiently handle long-range dependencies in sequential data, combined with a selective state space mechanism for encoding input sequences and learning representations, enables the capture of temporal dependencies in fMRI time series. Meanwhile, the Mamba2-GNN module employs graph attention networks to capture spatial relationships across brain regions. This enables the extraction of spatiotemporal features of individual subjects’ brain regions. Second, a heterogeneous global graph with a dynamic edge updating mechanism is constructed to learn inter-subject relationships, where embedding vectors are generated from individual brain features and non-imaging phenotypic information, collectively forming multimodal data. By aggregating information from different types of edges via a self-attention mechanism, an integrated heterogeneous global graph network embedding representation is obtained, incorporating multiple feature categories. Due to the limited sample size of the single-center dataset, the supervised contrastive learning module offers a modest improvement in classification performance, serving as an auxiliary enhancement to the primary classification loss. Finally, the HDGNN-Mamba2 captures the most essential embedded features by integrating multimodal data (including individual brain network features and global inter-subject association features), thereby achieving competitive classification performance for MDD. The testing results show that HDGNN-Mamba2 achieved an average classification accuracy of 83.88% after conducting ten-fold cross-validation. Through examining nodes with substantial contribution in the graph pooling layer, we additionally identified critical brain regions that exhibit discriminative patterns distinguishing participants with MDD from healthy controls. Furthermore, the HDGNN-Mamba2 can be adapted to other neuroimaging research areas. These benefits promote the computational classification of diverse neurological conditions and deepen the understanding of pathogenic mechanisms underlying complex neurological disorders. These results suggest that HDGNN-Mamba2 holds promise as a competitive algorithmic baseline for MDD classification research. While the framework demonstrates discriminative performance and identifies neurobiologically plausible model-attributed regions, it does not constitute a clinically validated diagnostic tool. Future work will incorporate probability calibration analysis and external validation on independent multi-site datasets to advance toward clinical utility.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/brainsci16080872/s1, Table S1: Per-fold performance metrics for HDGNN-Mamba2; Table S2: Power atlas node information for the top 10 model-attributed regions.

Author Contributions

Conceptualization, R.G.; methodology, J.Y.; software, J.Y.; validation, J.Y., H.L. and Y.W.; formal analysis, J.Y.; investigation, J.Y. and H.L.; resources, R.G.; data curation, J.Y.; writing—original draft preparation, J.Y.; writing—review and editing, R.G.; visualization, J.Y. and H.L.; supervision, R.G.; project administration, R.G.; funding acquisition, R.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China (41827807 and 61271351), the Science and Technology Innovation Plan of Shanghai Science and Technology Commission (22DZ1209500).

Institutional Review Board Statement

The REST-meta-MDD dataset is a publicly available dataset originally collected with ethical approval from each participating site. The current study involves secondary analysis of this de-identified data and does not require additional ethical approval.

Informed Consent Statement

The REST-meta-MDD dataset is a publicly available dataset originally collected with informed consent from all participants. No additional informed consent is required for this secondary analysis.

Data Availability Statement

The REST-meta-MDD dataset is publicly available at http://rfmri.org/REST-meta-MDD (accessed on 12 August 2026). The code for HDGNN-Mamba2 is available from the corresponding author upon reasonable request.

Acknowledgments

We thank the REST-meta-MDD consortium for making this dataset publicly available.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
MDDMajor Depressive Disorder
fMRIfunctional Magnetic Resonance Imaging
rs-fMRIresting-state functional Magnetic Resonance Imaging
ROIRegion of Interest
FC Functional Connectivity
GNNGraph Neural Network
SSMState Space Model
SSDStructured State Space Duality
DEUDynamic Edge Updating

References

  1. Van Baalen, M.; Van Der Velden, L.; Van Der Gronde, T.; Pieters, T. Developing a translational research framework for MDD: Combining biomolecular mechanisms with a spiraling risk factor model. Front. Psychiatry 2025, 15, 1463929. [Google Scholar] [CrossRef] [Scilit]
  2. World Health Organization. Depression Fact Sheet. 2025. Available online: https://www.who.int/en/news-room/fact-sheets/detail/depression (accessed on 12 August 2026).
  3. Cui, L.; Li, S.; Wang, S.; Wu, X.; Liu, Y.; Yu, W.; Wang, Y.; Tang, Y.; Xia, M.; Li, B. Major Depressive Disorder: Hypothesis, Mechanism, Prevention and Treatment. Signal Transduct. Target. Ther. 2024, 9, 30. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Deng, J.; Zhang, M.; Chen, G.; Lu, X.; Cheng, X.; Qin, C.; Tian, M.; Gong, K.; Liu, K.; Chen, J.; et al. Exploring Neural Changes Associated with Suicidal Ideation and Attempts in Major Depressive Disorder: A Multimodal Study. Brain Res. Bull. 2025, 225, 111336. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Mousavian, M.; Chen, J.; Traylor, Z.; Greening, S. Depression Detection from sMRI and rs-fMRI Images Using Machine Learning. J. Intell. Inf. Syst. 2021, 57, 395–418. [Google Scholar] [CrossRef] [Scilit]
  6. Lynch, C.J.; Elbau, I.G.; Ng, T.; Ayaz, A.; Zhu, S.; Wolk, D.; Manfredi, N.; Johnson, M.; Chang, M.; Chou, J.; et al. Frontostriatal Salience Network Expansion in Individuals in Depression. Nature 2024, 633, 624–633. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  7. Basak, S. AI and Machine Learning for Proteomics-Driven Drug Discovery: Methods, Tools, and Best Practices. Curr. Issues Mol. Biol. 2026, 48, 532. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Hasan, M.; Yasmin, F.; Yu, X.; Karim, A. Advances in Brain Imaging Technologies: A Comprehensive Overview. In Brain Networks in Neuroscience: Personalization Unveiled Via Artificial Intelligence; River Publishers: Roma, Italy, 2025; pp. 11–40. [Google Scholar]
  9. Gallo, S.; El-Gazzar, A.; Zhutovsky, P.; Thomas, R.M.; Javaheripour, N.; Li, M.; Bartova, L.; Bathula, D.; Dannlowski, U.; Davey, C.; et al. Functional Connectivity Signatures of Major Depressive Disorder: Machine Learning Analysis Of Two Multicenter Neuroimaging Studies. Mol. Psychiatry 2023, 28, 3013–3022. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Liang, S.; Deng, W.; Li, X.; Greenshaw, A.J.; Wang, Q.; Li, M.; Ma, X.; Bai, T.J.; Bo, Q.J.; Cao, J.; et al. Biotypes of Major Depressive Disorder: Neuroimaging Evidence from Resting-State Default Mode Network Patterns. NeuroImage Clin. 2020, 28, 102514. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Svoboda, E. Highlights from Depression Research. Comput. Biol. Med. 2021, 135, 104499. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Bondi, E.; Maggioni, E.; Brambilla, P.; Delvecchio, G. A Systematic Review on the Potential Use of Machine Learning to Classify Major Depressive Disorder from Healthy Controls Using Resting State fMRI Measures. Neurosci. Biobehav. Rev. 2023, 144, 104972. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Yamashita, A.; Sakai, Y.; Yamada, T.; Yahata, N.; Kunimatsu, A.; Okada, N.; Itahashi, T.; Hashimoto, R.; Mizuta, H.; Ichikawa, N.; et al. Generalizable Brain Network Markers of Major Depressive Disorder across Multiple Imaging Sites. PLoS Biol. 2020, 18, e3000966. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Shi, Y.; Zhang, L.; Wang, Z.; Lu, X.; Wang, T.; Zhou, D.; Zhang, Z. Multivariate Machine Learning Analyses in Identification of Major Depressive Disorder Using Resting-State Functional Connectivity: A Multicentral Study. ACS Chem. Neurosci. 2021, 12, 2878–2886. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Gupta, S.; Chan, Y.H.; Rajapakse, J.C. Alzheimer’s Disease Neuroimaging Initiative. Obtaining Leaner Deep Neural Networks for Decoding Brain Functional Connectome in a Single Shot. Neurocomputing 2021, 453, 326–336. [Google Scholar] [CrossRef] [Scilit]
  16. Wei, Y.; Gao, J. Classification of Major Depressive Disorder Based on Functional and Structural MRI. In Proceedings of the Fourth International Conference on Computer Vision and Pattern Analysis (ICCPA 2024), Anshan, China, 17–19 May 2024; Volume 13256, pp. 129–135. [Google Scholar] [CrossRef] [Scilit]
  17. Dai, P.; Zhou, Y.; Shi, Y.; Lu, D.; Chen, Z.; Zou, B.; Liu, K.; Liao, S. REST-meta-MDD Consortium. Classification of MDD Using a Transformer Classifier with Large-Scale Multisite Resting-State fMRI Data. Hum. Brain Mapp. 2024, 45, e26542. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  18. Gu, X.; Xu, Y.; Lin, L.; Lin, T. An Overview of Disease Prediction Based on Graph Convolutional Neural Network. In Proceedings of the 6th International Conference on Intelligent Information Processing, Bucharest, Romania, 29–31 July 2021; pp. 27–32. [Google Scholar] [CrossRef] [Scilit]
  19. Venkatapathy, S.; Votinov, M.; Wagels, L.; Kim, S.; Lee, M.; Habel, U.; Ra, I.H.; Jo, H.G. Ensemble Graph Neural Network Model for Classification of Major Depressive Disorder Using Whole-Brain Functional Connectivity. Front. Psychiatry 2023, 14, 1125339. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  20. Dai, P.; Lu, D.; Shi, Y.; Zhou, Y.; Xiong, T.; Zhou, X.; Chen, Z.; Zou, B.; Tang, H.; Huang, Z.; et al. Classification of Recurrent Major Depressive Disorder Using a New Time Series Feature Extraction Method through Multisite rs-fMRI Data. J. Affect. Disord. 2023, 339, 511–519. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  21. Xing, X.; Li, Q.; Yuan, M.; Wei, H.; Xue, Z.; Wang, T.; Shi, F.; Shen, D. DS-GCNs: Connectome Classification Using Dynamic Spectral Graph Convolution Networks with Assistant Task Training. Cereb. Cortex 2021, 31, 1259–1269. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  22. Liu, S.; Gui, R. Fusing Multi-Scale fMRI Features Using a Brain-Inspired Multi-Channel Graph Neural Network for Major Depressive Disorder Diagnosis. Biomed. Signal Process. Control 2024, 90, 105837. [Google Scholar] [CrossRef] [Scilit]
  23. Yan, W.; Qu, G.; Hu, W.; Abrol, A.; Cai, B.; Qiao, C.; Plis, S.M.; Wang, Y.P.; Sui, J.; Calhoun, V.D. Deep Learning in Neuroimaging: Promises and Challenges. IEEE Signal Process. Mag. 2022, 39, 87–98. [Google Scholar] [CrossRef] [Scilit]
  24. Yue, Y.; Li, Z. MedMamba: Vision Mamba for Medical Image Classification. arXiv 2024, arXiv:2403.03849. [Google Scholar] [CrossRef] [Scilit]
  25. Gu, A.; Dao, T. Mamba: Linear-Time Sequence Modeling with Selective State Spaces. arXiv 2023, arXiv:2312.00752. [Google Scholar] [CrossRef] [Scilit]
  26. Gu, A.; Goel, K.; Ré, C. Efficiently Modeling Long Sequences with Structured State Spaces. arXiv 2021, arXiv:2111.00396. [Google Scholar] [CrossRef] [Scilit]
  27. Ma, J.; Li, F.; Wang, B. U-Mamba: Enhancing Long-Range Dependency for Biomedical Image Segmentation. arXiv 2024, arXiv:2401.04722. [Google Scholar] [CrossRef] [Scilit]
  28. Wang, J.; Chen, J.; Chen, D.; Wu, J. Large Window-Based Mamba UNet for Medical Image Segmentation: Beyond Convolution and Self-Attention. arXiv 2024, arXiv:2403.07332. [Google Scholar] [CrossRef] [Scilit]
  29. Wang, Z.; Zheng, J.Q.; Zhang, Y.; Cui, G.; Li, L. Mamba-UNet: UNet-Like Pure Visual Mamba for Medical Image Segmentation. arXiv 2024, arXiv:2402.05079. [Google Scholar] [CrossRef] [Scilit]
  30. Yan, C.G.; Chen, X.; Li, L.; Castellanos, F.X.; Bai, T.J.; Bo, Q.J.; Cao, J.; Chen, G.M.; Chen, N.X.; Chen, W.; et al. Reduced Default Mode Network Functional Connectivity in Patients with Recurrent Major Depressive Disorder. Proc. Natl. Acad. Sci. USA 2019, 116, 9078–9083. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  31. Yan, C.; Zang, Y. DPARSF: A MATLAB Toolbox for “Pipeline” Data Analysis of Resting-State fMRI. Front. Syst. Neurosci. 2010, 4, 1377. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  32. Craddock, R.C.; James, G.A.; Holtzheimer, P.E., III; Hu, X.P.; Mayberg, H.S. A Whole Brain fMRI Atlas Generated via Spatially Constrained Spectral Clustering. Hum. Brain Mapp. 2012, 33, 1914–1928. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  33. Behrouz, A.; Hashemi, F. Graph Mamba: Towards Learning on Graphs with State Space Models. In Proceedings of the 30th ACM SIGKDD Conference On Knowledge Discovery and Data Mining, Barcelona, Spain, 25–29 August 2024; pp. 119–130. [Google Scholar] [CrossRef] [Scilit]
  34. Xing, Z.; Ye, T.; Yang, Y.; Cai, D.; Gai, B.; Wu, X.J.; Gao, F.; Zhu, L. SegMamba-v2: Long-Range Sequential Modeling Mamba for General 3D Medical Image Segmentation. IEEE Trans. Med. Imaging 2025, 45, 4–15. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  35. Shi, Y.; Xia, B.; Jin, X.; Wang, X.; Zhao, T.; Xia, X.; Xiao, X.; Yang, W. VMambaIR: Visual State Space Model for Image Restoration. IEEE Trans. Circuits Syst. Video Technol. 2025, 35, 5560–5574. [Google Scholar] [CrossRef] [Scilit]
  36. Dao, T.; Gu, A. Transformers Are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality. arXiv 2024, arXiv:2405.21060. [Google Scholar] [CrossRef] [Scilit]
  37. Li, X.; Zhou, Y.; Dvornek, N.; Zhang, M.; Gao, S.; Zhuang, J.; Scheinost, D.; Staib, L.H.; Ventola, P.; Duncan, J.S. BrainGNN: Interpretable Brain Graph Neural Network for fMRI Analysis. Med. Image Anal. 2021, 74, 102233. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  38. Cao, M.; Yang, M.; Qin, C.; Zhu, X.; Chen, Y.; Wang, J.; Liu, T. Using DeepGCN to Identify the Autism Spectrum Disorder from Multi-Site Resting-State Data. Biomed. Signal Process. Control 2021, 70, 103015. [Google Scholar] [CrossRef] [Scilit]
  39. Huang, M.H.; Fan, S.Y.; Lin, I.M. EEG Coherences of the Fronto-Limbic Circuit between Patients with Major Depressive Disorder and Healthy Controls. J. Affect. Disord. 2023, 331, 112–120. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  40. Zhou, Z.; Zhang, L.; Hu, X.; Cao, L.; Gao, Y.; Li, H.; Bao, W.; Tang, M.; Sun, H.; Kuang, W.; et al. Symptom-specific alterations in subregional intrinsic connectivity of anterior cingulate cortex in major depressive disorder. Transl. Psychiatry 2025, 16, 7. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Figure 1. The extraction of time series.
Figure 1. The extraction of time series.
Brainsci 16 00872 g001
Figure 2. The overall architecture.
Figure 2. The overall architecture.
Brainsci 16 00872 g002
Figure 3. The architecture of the Mamba2-GNN block.
Figure 3. The architecture of the Mamba2-GNN block.
Brainsci 16 00872 g003
Figure 4. The architecture of the HGNN layer.
Figure 4. The architecture of the HGNN layer.
Brainsci 16 00872 g004
Figure 5. Ten-fold averaged ROC curves.
Figure 5. Ten-fold averaged ROC curves.
Brainsci 16 00872 g005
Figure 6. Ten-fold averaged precision-recall curves.
Figure 6. Ten-fold averaged precision-recall curves.
Brainsci 16 00872 g006
Figure 7. Illustration of relevant brain regions.
Figure 7. Illustration of relevant brain regions.
Brainsci 16 00872 g007
Table 1. Demographic characteristics of participants.
Table 1. Demographic characteristics of participants.
CharacteristicMDDHC
Age (years)38.74 ± 13.6539.64 ± 15.87
Education (years)10.78 ± 3.6112.97 ± 3.94
Sex (Male/Female)99/18387/164
Table 2. Comparison results with baselines.
Table 2. Comparison results with baselines.
MethodACCPrecisionRecallF1
LR (demo)0.5279 ± 0.05940.5471 ± 0.06390.5307 ± 0.07970.5392 ± 0.0846
SVM (demo)0.5551 ± 0.07330.5229 ± 0.06300.6820 ± 0.08620.5905 ± 0.0664
MLP (img)0.6417 ± 0.05430.6612 ± 0.05690.6759 ± 0.06700.6637 ± 0.0526
SVM (img + demo)0.6550 ± 0.05700.7002 ± 0.09260.6558 ± 0.07890.6654 ± 0.0528
GCN (img + demo)0.6918 ± 0.03870.7213 ± 0.04160.6024 ± 0.04830.6168 ± 0.0452
GAT (img + demo)0.7053 ± 0.04140.6017 ± 0.04530.7162 ± 0.04280.5908 ± 0.0469
BrainGNN [37] (img + demo)0.8112 ± 0.02820.8158 ± 0.03140.7387 ± 0.03470.7953 ± 0.0293
DeepGCN [38] (img + demo)0.8264 ± 0.03180.8083 ± 0.03390.7208 ± 0.03800.8292 ± 0.0296
MFGCN [22] (img + demo)0.8358 ± 0.02730.8452 ± 0.02870.8273 ± 0.03120.8528 ± 0.0263
HDGNN-Mamba20.8388 ± 0.05420.8397 ± 0.04380.8652 ± 0.07010.8490 ± 0.0551
Note: All baseline methods were evaluated on the same S20 cohort using identical ten-fold stratified cross-validation splits and the same preprocessing pipeline. LR (demo) and SVM (demo) employed demographic features as the sole input. MLP (img) took imaging features as the sole input. SVM (img + demo) concatenated imaging features with demographic variables. Methods with the (img + demo) suffix incorporated both imaging data and demographic variables. LR and SVM were implemented using Scikit-learn with default hyperparameters. GCN and GAT were implemented with two graph convolutional layers, a hidden dimension of 64, ReLU activation, dropout of 0.5, and the Adam optimizer with a learning rate of 0.001. The adjacency matrix for GCN and GAT was constructed using Pearson correlation, identical to the proposed method. BrainGNN, DeepGCN, and MFGCN were re-implemented following their original architectures with hyperparameters adopted from their respective publications. For all (img + demo) methods, demographic variables were included as one-hot encoded covariates.
Table 3. Ablation Experiments.
Table 3. Ablation Experiments.
Ablation SettingsACCSENSPEAUROCAUPRC
HDGNN-Mamba20.8388 ± 0.05420.8652 ± 0.07010.8085 ± 0.07800.8819 ± 0.05650.8886 ± 0.0622
Conv-SSD + HGNN0.7705 ± 0.03940.8033 ± 0.05720.7523 ± 0.04870.8090 ± 0.02340.8067 ± 0.0629
Conv-SSD0.7363 ± 0.07390.7686 ± 0.04640.7244 ± 0.05830.7741 ± 0.05140.7712 ± 0.0366
RGNN + HGNN0.7279 ± 0.01710.7604 ± 0.03890.7318 ± 0.02980.7654 ± 0.03310.7625 ± 0.0644
HGNN0.5629 ± 0.02600.5908 ± 0.01730.5482 ± 0.04100.5936 ± 0.03750.5897 ± 0.0577
Mamba2-GNN0.8033 ± 0.05360.8288 ± 0.03510.8087 ± 0.05870.8446 ± 0.04540.8422 ± 0.0426
without cross-attention0.7871 ± 0.03040.8115 ± 0.05730.7733 ± 0.01880.8269 ± 0.05810.8248 ± 0.0325
without DEU0.7953 ± 0.06130.8202 ± 0.0407 0.8020 ± 0.05800.8360 ± 0.03630.8421 ± 0.0561
without supervised contrastive learning0.8150 ± 0.04760.8403 ± 0.04980.8037 ± 0.04710.8565 ± 0.01690.8631 ± 0.0464
Table 4. Experimental results based on different combinations of demographic data.
Table 4. Experimental results based on different combinations of demographic data.
Demographic DataTest-AccPrecisionRecallF1
Sex0.8092 ± 0.02520.8135 ± 0.03750.8320 ± 0.01970.8220 ± 0.0451
Sex + Age0.8280 ± 0.02840.8319 ± 0.03210.8508 ± 0.02430.8363 ± 0.0392
Sex + Education0.8136 ± 0.03170.8212 ± 0.02890.8415 ± 0.03580.8310 ± 0.0296
Sex + Education + Age0.8388 ± 0.05420.8397 ± 0.04380.8652 ± 0.07010.8490 ± 0.0551
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Yan, J.; Gui, R.; Liang, H.; Wang, Y. HDGNN-Mamba2: Mamba-Based Spatiotemporal Heterogeneous Dynamic Graph Neural Network for Major Depressive Disorder Classification. Brain Sci. 2026, 16, 872. https://doi.org/10.3390/brainsci16080872

AMA Style

Yan J, Gui R, Liang H, Wang Y. HDGNN-Mamba2: Mamba-Based Spatiotemporal Heterogeneous Dynamic Graph Neural Network for Major Depressive Disorder Classification. Brain Sciences. 2026; 16(8):872. https://doi.org/10.3390/brainsci16080872

Chicago/Turabian Style

Yan, Jian, Renzhou Gui, Hao Liang, and Yaqi Wang. 2026. "HDGNN-Mamba2: Mamba-Based Spatiotemporal Heterogeneous Dynamic Graph Neural Network for Major Depressive Disorder Classification" Brain Sciences 16, no. 8: 872. https://doi.org/10.3390/brainsci16080872

APA Style

Yan, J., Gui, R., Liang, H., & Wang, Y. (2026). HDGNN-Mamba2: Mamba-Based Spatiotemporal Heterogeneous Dynamic Graph Neural Network for Major Depressive Disorder Classification. Brain Sciences, 16(8), 872. https://doi.org/10.3390/brainsci16080872

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop