Efficiently predicting high resolution mass spectra with graph neural networks
About
Identifying a small molecule from its mass spectrum is the primary open problem in computational metabolomics. This is typically cast as information retrieval: an unknown spectrum is matched against spectra predicted computationally from a large database of chemical structures. However, current approaches to spectrum prediction model the output space in ways that force a tradeoff between capturing high resolution mass information and tractable learning. We resolve this tradeoff by casting spectrum prediction as a mapping from an input molecular graph to a probability distribution over molecular formulas. We discover that a large corpus of mass spectra can be closely approximated using a fixed vocabulary constituting only 2% of all observed formulas. This enables efficient spectrum prediction using an architecture similar to graph classification - GrAFF-MS - achieving significantly lower prediction error and orders-of-magnitude faster runtime than state-of-the-art methods.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Molecular retrieval | NIST 2020 (Scaffold) | Top-1 Accuracy14.3 | 16 | |
| Molecular retrieval | NIST 2020 (Random split) | Top-1 Accuracy21.1 | 12 | |
| Spectral prediction | NIST [M+H]+ adduct '20 (Random split) | Cosine Similarity0.565 | 8 | |
| Spectral prediction | NIST [M+H]+ adduct '20 (Scaffold split) | Cosine Similarity47 | 8 | |
| Spectral prediction | NIST positive mode 2020 (Random) | Cosine Similarity57.8 | 6 | |
| Spectral prediction | NIST positive mode Scaffold 2020 | Cosine Similarity0.477 | 6 | |
| Retrieval | NIST 2020 | Top-1 Accuracy17.3 | 5 | |
| Spectral prediction | NIST Positive+negative mode Random split 20 | Cosine Similarity0.556 | 5 | |
| Spectral prediction | NIST Positive+negative mode 20 (Scaffold) | Cosine Similarity0.474 | 5 |