mzwiki Mass spectrometry
knowledge commons by UniMZ
Guides & terminologyAll Guides
Terminology

Spectral similarity

A comparison score defined by spectral representation, preprocessing, and peak-matching rules; not automatically an identity probability.

Definition

Spectral similarity is a numerical comparison of spectra under an explicit representation and scoring rule. It can compare two measured spectra or a measured and predicted spectrum. The value depends on peak alignment, mass tolerance or bin width, intensity transformation, normalization, and treatment of unmatched peaks. Different similarity functions need not rank candidates identically. [1]

A score can ignore absolute scale

Constructed example: after matching two coordinates, vectors [1, 2] and [2, 4] have cosine similarity 1. Their total intensities are 3 and 6. Cosine measures direction rather than absolute signal magnitude. This arithmetic assumes the same coordinates and no omitted peaks; it does not show that either spectrum uniquely identifies a molecule.

Common confusion

A similarity of 0.9 is not automatically a 90% probability of correctness. A shared dominant fragment, missing diagnostic ions, coisolation, or a restricted candidate library can affect interpretation. Scores are comparable only with sufficiently matched definitions and evaluation conditions. A published metric advantage applies to the studied task; there is no universal best score for all analytes and instruments.

Use it in a Guide

References & further reading

  1. Li et al. (2021). Spectral entropy outperforms MS/MS dot product similarity for small-molecule compound identification. Nature Methods 18, 1524–1531.

    Primary spectral-similarity comparison. The educational text does not transfer reported cutoffs, error rates, or metric superiority beyond the studied comparisons. Vector examples are original constructed arithmetic.

Help make this article clearer.Edit this article →Suggest a correction →