Weighting Low-Intensity MS/MS Ions and m/z Frequency for Spectral Library Annotation

Chloe Engler Hart, Tobias Kind, Pieter C. Dorrestein, David Healey, Daniel Domingo‐FernándézJournal of the American Society for Mass Spectrometry 2024

TL;DR

This paper introduces a novel weighting strategy for MS/MS spectral data that boosts the accuracy of identifying structurally related compounds and annotating unknown spectra in spectral libraries. By considering both low-intensity peaks and the frequency of m/z values, their method significantly improves spectral similarity calculations, outperforming previous approaches in key applications.

What Problem Does This Paper Address?

Identifying molecules from mass spectrometry (MS/MS) data is crucial for fields like metabolomics. A common method involves comparing an unknown spectrum to a library of known spectra using spectral similarity metrics. However, spectral libraries are far from complete, meaning many compounds remain unannotated. Existing similarity metrics often struggle with low-intensity peaks, which can contain vital structural information, especially at higher m/z values. Furthermore, the sheer scale of chemical space means relying solely on library matching is insufficient. This paper tackles the challenge of improving the accuracy and reliability of spectral similarity calculations, particularly for identifying structurally related compounds and annotating unknown spectra against existing libraries.

Methods

The core of this work lies in a new weighting preprocessing strategy applied to MS/MS spectra before similarity calculations. This strategy combines two key ideas:

  • Rescaling Low-Intensity Peaks: Building on prior work, the authors amplify peaks with lower intensities. This is achieved by raising intensity values to a power (n=0.25 in their implementation) and normalizing them relative to the highest peak in the spectrum. This helps prevent high-intensity peaks from dominating similarity scores.
  • Rescaling Based on m/z Peak Occurrence: This is the novel contribution. They incorporate the frequency of m/z values within a spectral library. Peaks at more common m/z values are given higher importance. This is done by multiplying the intensity weights by the relative frequency of the corresponding m/z value, raised to a power (0.25).

These weighted spectra are then used with established similarity metrics like modified cosine, spectral entropy, and fidelity distance.

Datasets

  • GNPS (Global Natural Products Social Molecular Networking): Used for spectral alignment tasks and as a query dataset for library searches.
  • NIST23: A high-quality reference spectral library used for mass spectral library searches.
  • Bittremieux et al. benchmark dataset: A large dataset of 495,600 MS/MS spectra used for evaluating spectral alignment on 10 million randomly selected spectrum pairs.

The authors also utilized data from previous benchmarks to ensure comparability.

Key Insights and Ideas

  • Low-intensity peaks matter: The paper strongly reinforces that even small peaks, especially at higher m/z values, carry significant structural information that is often overlooked by standard similarity metrics.
  • Frequency is informative: Incorporating m/z frequency into weighting provides a new dimension for prioritizing spectral features, highlighting common patterns that might be characteristic of certain compound classes or fragmentation pathways.
  • Weighting is not a universal fix: While generally beneficial, the authors identify specific scenarios (e.g., spectra with a single dominant peak, glycosidic bonds) where weighting can actually decrease spectral similarity, suggesting a need for careful application.
  • Interpretability vs. Performance: The authors acknowledge that weighting, while improving performance, can make spectral similarity calculations more abstract and harder to interpret directly.

Key Results

  • Spectral Alignment: Applying their weighting strategy improved spectral similarity scores, making them more closely resemble structural similarity (Tanimoto coefficients). For modified cosine similarity, the optimal threshold for predicting structural similarity shifted from 0.88 to 0.67, leading to a significant increase in F1-score from 0.094 to 0.14. This translates to approximately 30% more accurately predicted edges in molecular networking.
  • Mass Spectral Library Search: Their proposed weights performed comparably to the best-performing literature weights (Sokolow et al.) and slightly outperformed the unweighted baseline in terms of precision@K (top matches). While some literature weights (Sokolow et al.) slightly outperformed their method in library search precision, their approach showed a slower decrease in precision when using broader m/z windows, indicating better scalability.
  • Comparison to other weights: Their weighting method showed the best resemblance to Tanimoto coefficients in spectral alignment tasks compared to other literature methods.

Limitations and Future Work

  • Detrimental Scenarios: The authors identified specific spectral characteristics (few peaks, single dominant peak, glycosidic bonds) where weighting can be detrimental. They suggest investigating these factors before applying weights.
  • Dataset Size: The library search task was limited to ~25,000 queries due to computational constraints, which might have masked larger improvements.
  • Interpretability: The weighting process inherently reduces the direct interpretability of similarity scores.
  • Future Directions:
    • Investigating optimal weights for different molecule classes, potentially using deep learning.
  • Reassessing weights as new spectral libraries and resources emerge.
  • Exploring the integration of collision energy information to further refine weighting strategies.

Summary updated

Abstract

Calculating spectral similarity is a fundamental step in MS/MS data analysis in untargeted metabolomics experiments, as it facilitates the identification of related spectra and the annotation of compounds. To improve matching accuracy when querying an experimental mass spectrum against a spectral library, previous approaches have proposed increasing peak intensities for high <i>m</i>/<i>z</i> ranges. These high <i>m</i>/<i>z</i> values tend to be smaller in magnitude, yet they offer more crucial information for identifying the chemical structure. Here, we evaluate the impact of using these weights for identifying structurally related compounds and mass spectral library searches. Additionally, we propose a weighting approach that (i) takes into account the frequency of the <i>m</i>/<i>z</i> values within a spectral library in order to assign higher importance to the most common peaks and (ii) increases the intensity of lower peaks, similar to previous approaches. To demonstrate our approach, we applied weighting preprocessing to modified cosine, entropy, and fidelity distance metrics and benchmarked it against previously reported weights. Our results demonstrate how weighting-based preprocessing can assist in annotating the structure of unknown spectra as well as identifying structurally similar compounds. Finally, we examined scenarios in which the utilization of weights resulted in diminished performance, pinpointing spectral features where the application of weights might be detrimental.
BibTeX
@article{hart2024weighting,
  author = {Chloe Engler Hart and Tobias Kind and Pieter C. Dorrestein and David Healey and Daniel Domingo‐Fernándéz},
  title = {{Weighting Low-Intensity MS/MS Ions and <i>m</i>/<i>z</i> Frequency for Spectral Library Annotation}},
  journal = {Journal of the American Society for Mass Spectrometry},
  year = {2024},
  doi = {10.1021/jasms.3c00353},
}

Loading related content...

Figure