Graph Contrastive Learning for Connectome Classification

Martín Schmidt, Sara Silva, Federico Larroca, Gonzalo Mateos, Pablo Musé · DOI

Understanding the human "connectome"—the complex map of structural and functional connections in the brain—is vital for diagnosing neurological conditions. However, analyzing this data is challenging due to high dimensionality, data scarcity, and the complex relationship between structural connectivity (SC) and functional connectivity (FC). This paper presents a novel framework for brain connectome classification using Supervised Graph Contrastive Learning (CL). By combining an encoder-decoder Graph Neural Network (GNN) with sophisticated data augmentation, the authors demonstrate how to learn robust brain representations that outperform traditional methods, particularly when training data is scarce.

The Proposed Framework

The authors propose a multi-task Encoder-Decoder GNN architecture paired with a Supervised Contrastive Learning strategy. The model is designed to bridge the representation gap by creating discriminative subject-level embeddings.

The proposed multi-task Encoder-Decoder GNN architecture for brain connectome classification.

Architecture Components

  • Encoder: A 3-layer Graph Convolutional Network (GCN) that processes the structural connectivity matrix (A). It produces multi-scale node embeddings which are concatenated to form a comprehensive graph representation ($X_C$).
  • Decoder: A reconstruction branch that attempts to predict the functional connectivity matrix (Σ) from the encoder's embeddings. This forces the model to capture the underlying biological coupling between brain structure and function, acting as a powerful regularizer.
  • Classifier: A logistic regression layer that predicts the subject's label (e.g., gender) from the pooled graph embeddings ($z$).

Two-Stage Training and Augmentation

The training process involves a pre-training phase using a joint loss function: Mean Squared Error (MSE) for FC reconstruction and a Supervised Contrastive Loss ($L_{sup}$). The contrastive loss pulls subjects of the same class closer together in the latent space while pushing different classes apart. To enhance robustness, the authors employ Data Augmentation techniques such as Attribute Masking and Edge Dropping to create multiple "views" of the same brain network.

Experimental Results

The study utilizes the Human Connectome Project (HCP) dataset, comprising 1,048 healthy adults. The brain was parcellated into 87 regions of interest (ROIs) to construct the graphs. The primary task was binary gender classification, serving as a benchmark for connectome representation quality.

Performance and Data Efficiency

The full Encoder-Decoder + CL + Data Augmentation configuration achieved a state-of-the-art test accuracy of 0.94. A key finding of the study is the model's resilience to small sample sizes.

Accuracy vs. proportion of training set for different model configurations, highlighting the superior data efficiency of the CL approach.

As shown in the performance plots, the CL framework reaches near-peak performance with only 50% of the training data. While baseline models require the full dataset to reach their peak, the CL model remains nearly optimal even at half-capacity, making it highly suitable for medical applications where large datasets are often unavailable.

Conclusion

This research demonstrates that supervised contrastive learning, when combined with an encoder-decoder architecture, significantly improves the classification of brain connectomes. By leveraging structural data to reconstruct functional patterns and structuring the latent space through contrastive loss, the model achieves high accuracy and remarkable data efficiency. Future work will focus on developing domain-specific augmentations and applying this framework to clinical biomarkers for neurodegenerative and psychiatric conditions.

Summary updated

BibTeX
@misc{schmidt2025graph,
  author = {Martín Schmidt and Sara Silva and Federico Larroca and Gonzalo Mateos and Pablo Musé},
  title = {{Graph Contrastive Learning for Connectome Classification}},
  year = {2025},
  eprint = {2502.05109},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.05109},
}
Figure