Skip to main content
QUICK REVIEW

[Paper Review] Multi-scale Sinusoidal Embeddings Enable Learning on High Resolution Mass Spectrometry Data

Gennady Voronov, Rose Lightheart|arXiv (Cornell University)|Jul 6, 2022
Metabolomics and Mass Spectrometry StudiesBiochemistry, Genetics and Molecular Biology15 citations
TL;DR

This paper introduces multi-scale sinusoidal embeddings for mass-to-charge (m/z) values in high-resolution tandem mass spectrometry (MS2) data, enabling deep learning models to effectively utilize full-resolution spectral information. The approach achieves state-of-the-art performance in spectral library search and predicts 10 key drug-relevant chemical properties with an average R² of 80% on novel compounds, demonstrating that high-precision m/z representation is essential for learning complex patterns in MS2 data.

ABSTRACT

Small molecules in biological samples are studied to provide information about disease states, environmental toxins, natural product drug discovery, and many other applications. The primary window into the composition of small molecule mixtures is tandem mass spectrometry (MS2), which produces data that are of high sensitivity and part per million resolution. We adopt multi-scale sinusoidal embeddings of the mass data in MS2 designed to meet the challenge of learning from the full resolution of MS2 data. Using these embeddings, we provide a new state of the art model for spectral library search, the standard task for initial evaluation of MS2 data. We also introduce a new task, chemical property prediction from MS2 data, that has natural applications in high-throughput MS2 experiments and show that an average $R^2$ of 80\% for novel compounds can be achieved across 10 chemical properties prioritized by medicinal chemists. We use dimensionality reduction techniques and experiments with different floating point resolutions to show the essential role multi-scale sinusoidal embeddings play in learning from MS2 data.

Motivation & Objective

  • To address the bottleneck in metabolomics caused by inefficient use of high-resolution MS2 data in machine learning models.
  • To develop a numerical representation of m/z values that preserves millidalton-level resolution and avoids edge effects from discretization.
  • To demonstrate that multi-scale sinusoidal embeddings enable effective learning from full-resolution MS2 spectra across diverse downstream tasks.
  • To validate that high-precision input (double-precision floating point) is essential for capturing meaningful structure in embeddings.
  • To show that learned embeddings can predict key drug discovery-relevant chemical properties from MS2 spectra alone.

Proposed method

  • The method uses multi-scale sinusoidal embeddings to represent m/z values as continuous, differentiable vectors that capture information across multiple orders of magnitude.
  • The model processes MS2 spectra by embedding each peak's m/z and intensity using sinusoidal functions with varying frequencies, enabling the network to learn from fine mass differences.
  • The approach is applied to two main tasks: spectral library search and chemical property prediction using a transformer-based architecture.
  • The authors compare performance using different floating-point precisions (half and double) for m/z inputs to isolate the impact of resolution on model performance.
  • Dimensionality reduction via UMAP is applied to visualize the high-dimensional embedding space and assess structural emergence with varying input precision.
  • The model is trained on a combination of public and commercial MS2 datasets, with molecular structures stripped of stereochemistry to ensure molecule-disjoint splits.

Experimental results

Research questions

  • RQ1Can multi-scale sinusoidal embeddings of m/z values enable state-of-the-art performance in spectral library search using full-resolution MS2 data?
  • RQ2Can high-resolution m/z representations via sinusoidal embeddings improve generalization in chemical property prediction for novel compounds?
  • RQ3Does the performance of the model degrade when m/z values are downsampled to half-precision floating point, indicating reliance on high-resolution input?
  • RQ4What kind of high-dimensional structure emerges in the embedding space when using high-precision m/z inputs, and how does it relate to biological or chemical similarity?
  • RQ5Is the improvement from sinusoidal embeddings over tokenization consistent across multiple chemical property prediction tasks?

Key findings

  • The sinusoidal embedding model achieves state-of-the-art performance in spectral library search, outperforming prior methods in both exact compound matching and identification of structural analogs.
  • For chemical property prediction, the model achieves an average R² of 80% on novel compounds across 10 medicinal chemistry-prioritized properties, enabling first-pass hit prioritization in drug discovery.
  • When m/z values are represented in half-precision floating point, the model's performance drops significantly, indicating that high-resolution input is essential for learning.
  • UMAP visualization shows that non-trivial, biologically meaningful structure emerges in the embedding space only when high-precision m/z values are used as input.
  • The sinusoidal approach improves R² by 11% over tokenization on novel molecules in property prediction, demonstrating its superiority in generalization.
  • The results confirm that multi-scale sinusoidal embeddings are a general improvement across tasks, not task-specific, due to their ability to preserve fine-grained mass spectral information.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.