Abstract
Mass spectrometry (MS) is a fundamental tool for studying complex molecular mixtures, yet a major challenge remains: the lack of structurally annotated spectra. This work introduces MS2Prop, a machine learning model that predicts chemical properties directly from unannotated MS/MS spectra without requiring structural identification. By treating mass spectra as sequences and utilizing a transformer-based architecture, MS2Prop enables high-throughput prioritization of "dark matter" compounds in natural products drug discovery. This approach, termed quantitative spectra-activity relationships (QSpAR), demonstrates significant improvements in accuracy and scalability over traditional structure-based methods.
Introduction: Mapping the "Dark Matter" of Metabolomics
In untargeted metabolomics, researchers frequently encounter "dark matter"—spectra from molecules that cannot be matched to known chemical structures. Currently, computational tools can only assign structures to approximately 2–20% of spectra in a typical run. This creates a bottleneck in drug discovery; without identification, determining if a molecule is "drug-like" or synthetically accessible requires labor-intensive isolation and NMR analysis. MS2Prop addresses this by bypassing the error-prone step of structural identification, predicting properties directly from the spectral "fingerprint."
Methods: A Transformer-Based Approach to Spectra
MS2Prop treats mass spectrometry data as a sequence problem, analogous to natural language processing. The model pipeline involves:
- Tokenization: Fragment masses ($m/z$) are rounded to 0.1 Dalton resolution and paired with normalized intensities.
- Embedding: A learned layer transforms these pairs into dense vectors.
- Transformer Encoder: A transformer block processes these vectors. Notably, positional encodings are omitted because mass spectra are inherently unordered collections of peaks.
- Prediction Head: A feed-forward network predicts 10 numerical properties simultaneously, including $logP$, polar surface area, and the Quantitative Estimate of Drug-likeness (QED).
Results and Performance
The model was trained on 1.25 million spectra from 45,000 distinct molecules. Evaluation across three test sets—Known, Novel (structures absent from training), and CASMI 2022 (independent challenge data)—showed that MS2Prop significantly outperforms traditional multi-stage pipelines.
On novel compounds, MS2Prop achieved an average $R^2$ of 0.73 across ten properties, compared to just 0.22 for structure-first approaches like CSI:FingerID. This performance gap highlights the "error propagation" inherent in traditional methods that rely on correct structural assignment before property calculation.
Scalability and Discovery Potential
A key advantage of MS2Prop is its speed. Performing inference in approximately 2 milliseconds per spectrum, it is roughly 12,000 times faster than state-of-the-art structure predictors. This efficiency enabled the authors to analyze 500 million unlabeled spectra from public repositories, identifying millions of potentially drug-like compounds (QED > 0.8) that remain uncharacterized.
Conclusion and Future Directions
MS2Prop demonstrates that predicting scalar chemical properties is a more tractable problem than full structure determination. While current limitations include the truncation of spectral resolution and the indirect use of molecular formulas, the transformer architecture is well-suited for future self-supervised pre-training on billions of unlabeled spectra. This "QSpAR" approach provides a powerful new lens for exploring the vast, un-mined reservoir of natural products in public databases.
Summary updated