A learned embedding for efficient joint analysis of millions of mass spectra

Wout Bittremieux, Damon May, Jeffrey A. Bilmes, William Stafford NoblebioRxiv 2018

Abstract

Computational methods that aim to exploit publicly available mass spectrometry repositories primarily rely on unsupervised clustering of spectra. Here, we propose to train a deep neural network in a supervised fashion based on previous assignments of peptides to spectra. The network, called “GLEAMS,” learns to embed spectra into a low-dimensional space in which spectra generated by the same peptide are close to one another. We use GLEAMS as the basis for a large-scale spectrum clustering, detecting groups of unidentified, proximal spectra representing the same peptide, and we show how to use these clusters to explore the dark proteome of repeatedly observed yet consistently unidentified mass spectra. We provide a software implementation of our approach, along with a tool to quickly embed additional spectra using a pre-trained model, to facilitate large-scale analyses.

Introduction

In proteomics, tandem mass spectrometry (MS/MS) is the primary tool for protein identification. Despite the wealth of data in public repositories like PRIDE or MassIVE, most analyses are conducted in isolation. Traditional large-scale data utilization relies on unsupervised clustering, which suffers from two major drawbacks: it is computationally expensive to update with new data, and it fails to leverage existing peptide-spectrum match (PSM) labels. Consequently, a significant portion of proteomics data—the "dark proteome"—remains unidentified despite being repeatedly observed.

The GLEAMS Architecture

To address these challenges, we developed GLEAMS (Learned Embedding for Annotating Mass Spectra). GLEAMS utilizes a Siamese neural network to map high-dimensional mass spectra into a compact 32-dimensional latent space.

GLEAMS architecture and embedding process.

The model consists of two identical "embedder" networks with shared weights. It is trained using a contrastive loss function that penalizes large distances between embeddings of spectra from the same peptide and small distances between different peptides. The input encoding combines three feature types:

  1. Precursor features: Mass, m/z, and charge, encoded via Gray code to preserve local numerical relationships.
  2. Binned fragment intensities: 2,449 bins capturing the spectral peaks.
  3. Reference similarities: Dot-product similarities to 500 "landmark" spectra chosen from the training set.

This dimensionality reduction enables extremely fast downstream processing, such as neighbor searching across millions of spectra.

Large-Scale Analysis and Results

We evaluated GLEAMS on a "mini-repository" of over 5.4 million spectra from 22 public experiments. The model demonstrated exceptional efficiency, embedding the entire dataset in approximately 19 minutes (roughly 4,775 spectra per second).

Evaluation of embedding quality and community detection strategies.

Key findings include:

  • Identification Propagation: By identifying "spectrum communities" using a hub-and-spoke approach, we identified an additional 165,070 spectra previously unassigned—an 8% increase over standard database searches.
  • Error Correction: The learned embedding helped identify and correct 717 false identifications in the original training labels, demonstrating robustness to "weak teacher" noise.
  • Scaling Efficiency: As repository size increases, the probability of an unidentified spectrum finding a known neighbor grows, suggesting that larger datasets simplify the identification problem through increased coverage.

Discussion and Future Directions

GLEAMS provides a scalable framework for exploring the "dark proteome." While the current propagation method is effective, future work will focus on more rigorous statistical confidence estimation, potentially using target-decoy approaches adapted for embeddings. Additionally, we aim to develop "semantic" embeddings that group chemically similar peptides (e.g., those with different modifications) to further enhance discovery.

Summary updated

Abstract

Abstract Computational methods that aim to exploit publicly available mass spectrometry repositories primarily rely on unsupervised clustering of spectra. Here, we propose to train a deep neural network in a supervised fashion based on previous assignments of peptides to spectra. The network, called “GLEAMS,” learns to embed spectra into a low-dimensional space in which spectra generated by the same peptide are close to one another. We use GLEAMS as the basis for a large-scale spectrum clustering, detecting groups of unidentified, proximal spectra representing the same peptide, and we show how to use these clusters to explore the dark proteome of repeatedly observed yet consistently unidentified mass spectra. We provide a software implementation of our approach, along with a tool to quickly embed additional spectra using a pre-trained model, to facilitate large-scale analyses.
BibTeX
@misc{bittremieux2018learned,
  author = {Wout Bittremieux and Damon May and Jeffrey A. Bilmes and William Stafford Noble},
  title = {{A learned embedding for efficient joint analysis of millions of mass spectra}},
  year = {2018},
  doi = {10.1101/483263},
  howpublished = {bioRxiv},
}
Figure