bioRxivBioinformaticsPreprint
MetaboFM: A Foundation Model for Spatial Metabolomics
Efe OzturkiD, Felix G. Rivera MoctezumaiD, Ahmet F. CoskuniD
Abstract
Mass spectrometry imaging (MSI) provides molecularly resolved maps of metabolites and lipids across tissues, yet the lack of large-scale, unified representation learning frameworks limits its potential for generalization and downstream analysis. Here, we introduce MetaboFM, a foundation model for spatial metabolomics that consolidates thousands of public MSI datasets into standardized spatial-spectral tensors and extracts transferable embeddings using pretrained Vision Transformers. We curated and standardized around 4000 publicly available MSI datasets from the METASPACE repository, spanning multiple organisms, tissue types, ionization modes, and instruments. Across six metadata prediction tasks--encompassing organism, ionization polarity, tissue type, condition, analyzer type, and ionization source embeddings from pretrained MetaboFM encoders achieved a mean macro-F1 of 0.74 and accuracy of 0.80 with linear probes, demonstrating substantially higher discriminative power than classical principal component analysis (PCA) or randomly initialized baselines by over 20 percentage points. To interpret the learned representations, we mapped embedding directions back to the m/z domain, revealing distinct spectral regions that drive class separation across tissues, conditions, and ionization sources. A multimodal visual question answering (VQA) extension further links MSI embeddings with natural-language queries through a cross-attention fusion module, attaining an average macro-F1 of 0.61 {+/-} 0.05 across tasks. Finally, an interactive Gradio interface enables users to visualize MSI patches and query sample metadata in free-form language. Together, MetaboFM establishes a scalable foundation model paradigm for MSI, unifying representation learning, spectral interpretability, and multimodal interaction within a single framework for spatial metabolomics.
- organism: multiple species
- assay: spatial transcriptomics
- research focus: benchmarking
- approach: transformer / foundation model
- Citations
- 1
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- spatialMET: an open and scalable framework for spatial metabolomics analysis
Yonatan Ayalew Mekonnen, Oscar Ospina, … Paul A. Stewart·bioRxiv·Sep 3, 2026
- METASPACE-ML: Context-specific metabolite annotation for imaging mass spectrometry using machine learning
Bishoy Wadie, Lachlan Stuart, … Theodore Alexandrov·Nature CommunicationsPeer-reviewed·Oct 22, 2024
- SMEW: An interactive multi-scale toolkit for cross-condition and network-based analysis of spatial metabolomics data
Eleanor C Williams, Heather Hulme, … Irina Mohorianu·bioRxiv·Apr 29, 2026
- Spatial Probabilistic Mapping of Metabolite Ensembles in Mass Spectrometry Imaging
Denis Abu Sammour, James Lucas Cairns, … Carsten Hopf·bioRxiv·Oct 27, 2021
- METASPACE: A community-populated knowledge base of spatial metabolomes in health and disease
Theodore Alexandrov, Katja Ovchinnikova, … Sheerin K. Shahidi-Latham·bioRxiv·Feb 13, 2019
- In tissue spatial single-cell metabolomics by coupling mass spectrometry imaging and immunofluorescences
Landry Blanc, Florent Grélard, … Nicolas Desbenoît·bioRxiv·Mar 22, 2024