Reliable Molecular Retrieval from Mass Spectra Using Conformal Prediction

View at publisher
Authors: Morteza Rakhshaninejad, Gaetan De Waele, Mira Jürgens, Willem Waegeman
Cited by: 1
References: 31

Abstract

A key task in the computational analysis of liquid chromatography–tandem mass spectrometry (LC–MS/MS) data is identifying the molecular structure underlying a measured spectrum. A common approach ranks candidate molecules retrieved from chemical databases using predicted fingerprint similarities, yet standard metrics such as top- k accuracy summarize performance only at the data set level and provide no spectrum-specific reliability statement. In this work, we apply conformal prediction to candidate-based molecular retrieval to construct spectrum-specific prediction sets that contain the true molecule with a user-specified probability. We evaluate marginal and conditional conformal prediction across three experimental scenarios representing in-distribution, partially shifted, and fully out-of-distribution settings on the MassSpecGym benchmark. When calibration and test data are aligned, conformal prediction attains the target coverage with small candidate sets for most spectra. Under distribution shift, prediction sets become larger as rankings grow more ambiguous, although candidates can still be reduced when calibration remains representative. Conditional conformal prediction improves subgroup reliability across spectra of different difficulty, with the best gains obtained using confidence-based grouping. Overall, conformal prediction turns candidate rankings into reliable, spectrum-specific candidate sets with an explicit reliability–efficiency trade-off.

Fields of Study & Subjects

Molecular spectroscopy and chirality Machine Learning in Materials Science Computational Drug Discovery Methods

Publication details

Journal / source
Journal of Chemical Information and Modeling
Publisher
American Chemical Society (ACS)
Volume
66
Issue
10
Pages
5788–5800
Publication date
11 May 2026
Language
EN