Manuscript Offprint

arXiv:2610.05880

fMRI-TAMCL: Text-Anchored Supervised Multimodal Contrastive Learning for fMRI-Based Brain Disorder Classification

Juliana Mantebea Danso, Enoch Opanin Gyamfi, Mylene C. Q. Farias

Juliana Mantebea Danso, Student Member, IEEE, Enoch Opanin Gyamfi, and Mylene C.Q. Farias, Senior Member, IEEE

Abstract—Resting-state fMRI is important in the classification of brain disorders, but highly multimodal and exhibits strong multisite heterogeneity. Existing methods fuse images, BOLD-based functional connectivity, and phenotypic data modalities. Unlike other medical imaging datasets, rs-fMRI datasets rarely include a text modality, so they are generated from phenotypic data or BOLD activations. These text generation methods rely on fixed assumptions for subjects, sites, devices, and protocols, leading to poor generalization across datasets. We propose fMRI-TAMCL, a text-anchored multimodal contrastive learning framework that integrates fMRI images, sparse FC, and generated subject-specific text. Its Subject-Adaptive Threshold Derivation module generates BOLD activation text, while Feature-Value Serialization module generates phenotypic text. All three modalities are encoded as clustered graphs, projected onto a shared unit hypersphere space, aligned using pairwise, text-anchored supervised contrastive learning, and fused with attention. fMRI-TAMCL proves its generalization capability across five datasets outperforming 29 baselines with 78.6%–86.4% accuracy in downstream classification.

Index Terms—rS-fMRI, multimodal fusion, contrastive learning, phenotypic data, AI diagnosis.

I. INTRODUCTION

RESTING-state functional magnetic resonance imaging (rs-fMRI) enables automated large-scale classification of brain disorders, but its use is limited by multi-site heterogeneity and multimodality. Public rs-fMRI datasets are collected across sites, scanner manufacturers, imaging protocols, and cohorts, that complicate generalizing model assumptions. Typical rs-fMRI studies include multiple heterogeneous modalities: images, functional connectivity matrices (FC), and phenotypic records tabulating demographic, cognitive, behavioral, and other clinical data. Consequently, many rs-fMRI diagnostic models are modality-specific: CNNs for images, GNNs for FCs, and conventional ML for tabular phenotypic data. This unimodal approach limits the use of complementary cross-modal information. Among them, FC matrices are especially common. For instance, BrainGNN [1] learns interpretable region-of-interest (ROI) and community-level biomarkers from FC-derived graphs. Recent multimodal strategies tend to fuse FCs with other quantitative neuroimaging modalities (MRI, PET, DTI, EEG, and image) [2] and largely ignore text data.

A critical gap in therefore created in integrating clinical text and neuroimaging data, reducing the field's opportunity to leverage recent advances in large language models (LLMs). Contrastive learning, a common multimodal learning strategy, also offers an opportunity to fuse neuroimaging and text by aligning them in a shared embedding space, while supervised contrastive learning further improves diagnostic class separation through label-defined positive pairs [3]. These opportunities have recently motivated text-enhanced rs-fMRI diagnosis, but because such datasets rarely contain subject-level text data, existing methods must derive text representations from brain activations. These existing methods typically use fixed activation thresholds, mapping ROI-level BOLD activations to labels (e.g., weak, moderate, strong). They assume similar activation distributions across subjects and sites. However, in multisite datasets, a fixed threshold cannot label different neural patterns due to inter-subject and intersite variability in scanner and acquisition protocols. Fixed thresholds therefore introduce systematic label noise into the text modality, degrading downstream multimodal fusion. Fixed thresholds are also difficult to calibrate across datasets, resulting in poor generalizability across different datasets and brain disorders. [4].

J.M. Danso and M.Q. Farias are with the Department of Computer Science, Texas State University, San Marcos, TX 78666 USA (e-mail: juliana@txstate.edu and mylene@ieee.org).

E. O. Gyamfi is with the University of Technology and Applied Sciences, Navrongo, Ghana (email:eogyamfi@utas.edu.gh).

IEEE TEMPLATE

We present fMRI-TAMCL, a text-anchored multimodal contrastive learning framework for rs-fMRI-based brain disorder diagnosis that integrates three subject-level modalities: fMRI images, sparse FC, and generated text data. The Subject-Adaptive Threshold Derivation (SATD) module models each subject's BOLD activation distribution with a Gamma-Gaussian mixture model (GGMM) and derives subject-level activation thresholds from the weighted component intersections, replacing fixed thresholds. The Feature-Value Serialization (FVSerial) module converts tabular phenotypic data also into text data. SATD+FVSerial text data are merged into structured neurobiological text data that act as semantic anchors for contrastive learning. All modalities are represented as graphs via a unified construction pipeline, modularity-based clustering, and a GNN for feature embeddings. The image, FC and text embeddings are projected onto a shared unit hypersphere latent space and optimized with three contrastive objectives: pairwise cross-modal alignment, text-anchored alignment, and supervised diagnostic class separation. An attention-based fusion module assigns subject-specific modality weights prior to classification.

The main contributions of this study are: (1) SATD, a subject-adaptive GGMM-based thresholding framework that generates text data from BOLD activation, and FVSerial, which also generates text data from tabular phenotypic data. These generated text data are unified to a single semantic textual modality; (2) a graph-based multimodal feature extraction pipeline for images, sparse FCs, and the generated texts; (3) a text-anchored, supervised multimodal contrastive learning with multi-head self-attention fusion for diagnostic classification; and (4) extensive experiments on five multisite datasets evaluating the generalization capability of the proposed model on diagnostic performance, robustness (with ablations), sensitivity, computational efficiency, and interpretability.

References (27)

  • Braingnn: Interpretable brain graph neural network for fmri analysis
  • Exploring the frontiers of neuroimaging: A review of recent advances in understanding brain functioning and disorders
  • A survey of multimodal learning: Methods, applications, and future
  • Multimodal brain disease classification with functional interaction learning from single fMRI volume (opens arXiv in a new tab)
  • An ensemble graph-based deep learning framework integrating phenotypic and fmri data for autism classification
  • Tabllm: Few-shot classification of tabular data with large language models
  • Triple multimodal cyclic fusion and self-adaptive balancing for video q&a systems
  • Dparsf: a matlab toolbox for
  • Adolescent brain cognitive development (abcd) community mri collection and utilities
  • Semi-Supervised Classification with Graph Convolutional Networks
  • Graph attention networks (opens arXiv in a new tab)
  • Inductive representation learning on large graphs
  • Braingb: a benchmark for brain network analysis with graph neural networks
  • Ada-fcn: Adaptive frequency-coupled network for fmri-based brain disorder classification
  • Multi-view graph contrastive learning with dynamic self-aware and cross-sample topology augmentation for brain disorder diagnosis
  • Graph-level contrastive learning with self-aware and cross-sample topology augmentation for brain disorder diagnosis using rs-fmri
  • Intelligent diagnosis of major depressive disorder with edge convolution and contrastive learning
  • Contrasformer: a brain network contrastive transformer for neurodegenerative condition identification
  • Fbnetgen: Task-aware gnn-based fmri analysis via functional brain network generation
  • Community-aware transformer for autism prediction in fmri connectome
  • Brain network transformer
  • Brainnetcnn: Convolutional neural networks for brain networks; towards predicting neurodevelopment
  • Toward general text-guided multimodal brain mri synthesis for diagnosis and medical image analysis
  • Brainprompt+: Multi-level brain prompt learning for knowledge-guided neurological disorder identification
  • Pmil: Prompt enhanced multimodal integrative analysis of fmri combining functional connectivity and temporal latency
  • Ftspl: enhancing brain analysis with fmri-text synergistic prompt learning
  • Rtgmff: Enhanced fmri-based brain disorder diagnosis via roi-driven text generation and multimodal feature fusion (opens arXiv in a new tab)