MS2Prop: A machine learning model that directly generates de novo predictions of drug-likeness of natural products from unannotated MS/MS spectra

Gennady Voronov, Abe Frandsen, Brian Bargh, David Healey, Rose Lightheart, Tobias Kind, Pieter C. Dorrestein, Viswa Colluru, Thomas Butler, Venkat R. Macherla, Erik DeBloois, Marvin S. YubioRxiv 2022

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:

  1. Tokenization: Fragment masses ($m/z$) are rounded to 0.1 Dalton resolution and paired with normalized intensities.
  2. Embedding: A learned layer transforms these pairs into dense vectors.
  3. Transformer Encoder: A transformer block processes these vectors. Notably, positional encodings are omitted because mass spectra are inherently unordered collections of peaks.
  4. Prediction Head: A feed-forward network predicts 10 numerical properties simultaneously, including $logP$, polar surface area, and the Quantitative Estimate of Drug-likeness (QED).
The MS2Prop architecture: raw MS/MS spectra are tokenized into mass-intensity pairs, embedded, and processed by a transformer encoder to predict chemical properties.

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.

Performance comparison of MS2Prop against traditional methods (spectral lookup and CSI:FingerID) for predicting the fraction of sp3 carbons across different datasets.

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

BibTeX
@misc{voronov2022ms,
  author = {Gennady Voronov and Abe Frandsen and Brian Bargh and David Healey and Rose Lightheart and Tobias Kind and Pieter C. Dorrestein and Viswa Colluru and Thomas Butler and Venkat R. Macherla and Erik DeBloois and David Healey and Tobias Kind and Pieter Dorrestein and Viswa Colluru and Thomas Butler and Marvin S. Yu},
  title = {{MS2Prop: A machine learning model that directly generates <i>de novo</i> predictions of drug-likeness of natural products from unannotated MS/MS spectra}},
  year = {2022},
  doi = {10.1101/2022.10.09.511482},
  howpublished = {bioRxiv},
}
Figure