Supervised Contrastive Learning Leads to More Reasonable Spectral Embeddings

Over the past decades, mass spectrometry has served as a fundamental technique for molecular identification in the field of metabolomics, widely applied to the analysis and characterization of biomolecules. However, the complexity of experimental conditions and the structural similarities among compounds pose significant challenges for accurate identification. Recent advancements in deep learning have offered new solutions to address these challenges, particularly demonstrating great potential in generating high-quality spectral embeddings. In this study, we propose a novel method, SpecEmbedding, which leverages a transformer encoder architecture and employs replicated spectra of compounds as positive samples, trained under a supervised contrastive learning framework. By mapping complex mass spectra into low-dimensional vector representations, SpecEmbedding significantly enhances the comparability between spectra, thereby improving identification accuracy. We trained SpecEmbedding on the GNPS training subset and evaluated its performance on the GNPS test subset, the MoNA data set, and the MTBLS1572 data set. Experimental results show that SpecEmbedding achieves a Top-1 hit ratio of 81.73% on the GNPS test subset, substantially outperforming MSBERT (77.81%) and DreaMS (71.90%). The source code for this study is publicly available at https://github.com/sword-nan/SpecEmbedding. A web service is provided at https://huggingface.co/spaces/xp113280/SpecEmbedding.

Authors

Institutions

Publication Details

Journal
Analytical Chemistry
Published
2025-09-12
DOI
https://doi.org/10.1021/acs.analchem.5c02655
Citations
1
Primary Topic
Face and Expression Recognition
Type
article
Field-Weighted Citation Impact
1.28
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Supervised Contrastive Learning Leads to More Reasonable Spectral Embeddings

Hongtao Xu, Haoran Zheng, Peng Xiong
1 citations
Analytical Chemistry
Face and Expression Recognition
1.28
article

Supervised Contrastive Learning Leads to More Reasonable Spectral Embeddings

Hongtao Xu, Haoran Zheng, Peng Xiong
article en
1 citations

Abstract

Over the past decades, mass spectrometry has served as a fundamental technique for molecular identification in the field of metabolomics, widely applied to the analysis and characterization of biomolecules. However, the complexity of experimental conditions and the structural similarities among compounds pose significant challenges for accurate identification. Recent advancements in deep learning have offered new solutions to address these challenges, particularly demonstrating great potential in generating high-quality spectral embeddings. In this study, we propose a novel method, SpecEmbedding, which leverages a transformer encoder architecture and employs replicated spectra of compounds as positive samples, trained under a supervised contrastive learning framework. By mapping complex mass spectra into low-dimensional vector representations, SpecEmbedding significantly enhances the comparability between spectra, thereby improving identification accuracy. We trained SpecEmbedding on the GNPS training subset and evaluated its performance on the GNPS test subset, the MoNA data set, and the MTBLS1572 data set. Experimental results show that SpecEmbedding achieves a Top-1 hit ratio of 81.73% on the GNPS test subset, substantially outperforming MSBERT (77.81%) and DreaMS (71.90%). The source code for this study is publicly available at https://github.com/sword-nan/SpecEmbedding. A web service is provided at https://huggingface.co/spaces/xp113280/SpecEmbedding.

Analytical ChemistryVol. 97(37)
University of Science and Technology of China (CN), PRG S&Tech (South Korea)
Openalex Percentile: Top 16%
Face and Expression Recognition
1.28
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.