BertMS-enabled molecular networking for unknown compounds dereplication
Luning ZhouiD, Wu ShuangiD, Peng JiXing, Huang Xiaofei, Wang Wenxue, Li Dehai
Abstract
Spectral similarity is widely used as a proxy for structural similarity in tandem mass spectrometry (MS/MS) analyses, including library matching and molecular networking. However, the relationship between spectral similarity scores and true structural similarity remains imperfect, limiting compound identification in metabolomics studies. Here, we present BertMS, a spectral similarity framework based on bidirectional encoder representations from transformers (BERT), which learns contextualized representations of fragment ions from large-scale MS/MS data. Using datasets from MoNA and GNPS comprising over 100,000 unique molecules, we systematically evaluate BertMS against existing methods, including cosine similarity and Spec2Vec. BertMS shows improved performance across multiple evaluation metrics, with average gains of approximately 15-25% depending on the task. Notably, improvements are most evident in molecular similarity assessment. We further demonstrate the applicability of BertMS in molecular networking and dereplication of microbial metabolites, where it enables more consistent identification of structurally related compounds. Together, these results demonstrate that transformer-based representations improve spectral similarity estimation and enable more reliable metabolite annotation in complex mixtures.
02 /Specification & Classification
Click any tag to browse matching papersReproducibility 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
- Spec2Vec: Improved mass spectral similarity scoring through learning of structural relationships
Florian Huber, Lars Ridder, … Justin J. J. van der Hooft·PLoS Computational BiologyPeer-reviewed·Feb 16, 2021
- Predicting Discrete Structural Transformations in Small Molecules from Tandem Mass Spectrometry
Xianghu Wang, Gwendolyn Kiler, … Mingxun Wang·bioRxiv·May 11, 2026
- ChemEmbed: A deep learning framework for metabolite identification using enhanced MS/MS data and multidimensional molecular embeddings
Muhammad Faizan-Khan, Roger Giné, … Óscar Yanes·Briefings in BioinformaticsPeer-reviewed·Jan 1, 2026
- Molecular structure discovery for untargeted metabolomics using biotransformation rules and global molecular networking
Margaret R. Martin, Wout Bittremieux, Soha Hassoun·Analytical ChemistryPeer-reviewed·Feb 4, 2025
- Learning interpretable structural similarity from tandem mass spectra for small molecule analog discovery
Juan Sebastian Piedrahita Giraldo, Katyeny Manuela da Silva, … Wout Bittremieux·bioRxiv·Jun 23, 2026
- MS2DeepScore - a novel deep learning similarity measure for mass fragmentation spectrum comparisons
Florian Huber, Sven van der Burg, … Lars Ridder·bioRxiv·Apr 18, 2021