bioRxivBioinformaticsPreprint
A Machine Learning and Benchmarking Approach for Molecular Formula Assignment of Ultra High-Resolution Mass Spectrometry Data from Complex Mixtures
Bilal Shabbir, Pablo Batista Oliveira, Francisco Alberto Fernandez-LimaiD, Fahad SaeediD
Abstract
A machine learning approach to molecular formula assignment is crucial for unlocking the full potential of ultra-high resolution mass spectrometry (UHRMS) when analyzing complex mixtures. By combining data-driven models with rigorous benchmarking, the accuracy, consistency, and speed in identifying plausible molecular formulas from vast spectral datasets can be improved. Compared with traditional de novo methods that rely heavily on rule-based heuristics, and manual parameter tuning, machine learning approaches can capture complex patterns in data and adapt more readily to diverse sample types. In this paper, we describe the application of a machine learning methods using the k-nearest neighbors (KNN) algorithm trained on curated chemical formula datasets of UHRMS analysis of dissolved organic matter (DOM) covering the saline river continuum and tropical wet/dry season variability. The influence of the mass accuracy (training set with 0.15-1ppm) was evaluated on a blind test set of DOMs of different geographical origins. A Decision Tree Regressor (DTR) and Random Forest Regressor (RFR) based on mass accuracy (<1ppm) was used. Results from our ML models exhibit 43% more formulas annotated than traditional methods (5796 vs 4047), Model-Synthetic achieved 99.9% assignment rate and annotated/assigned 2x more formulas (8,268 vs 4047). DTR and RFR achieved formula-level accuracies (FA) of 86.5% and 60.4%, respectively. Overall, results show an increase in formula assignment when compared with traditional methods. This ultimately enables more reliable characterization of complex natural and engineered systems, supporting advances in fields such as environmental science, metabolomics, and petroleomics. Furthermore, the novel data set produced for this study is made publicly available, establishing an initial benchmark for molecular formula assignment in UHRMS using machine learning. The dataset and code are publicly available at: https://github.com/pcdslab/dom-formula-assignment-using-ml CCS CONCEPTSComputing methodologies [->] Machine Learning [->] Learning paradigms [->] Supervised Learning
- assay: metabolomics
- research focus: benchmarking
- research focus: differential expression
- approach: machine learning (classical)
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- FIDDLE: a deep learning method for chemical formulas prediction from tandem mass spectra
Yuhui Hong, Sujun Li, … Haixu Tang·Nature CommunicationsPeer-reviewed·Dec 12, 2025
- A Multiresolution Hierarchical Approach to Peak Picking for High Resolution Mass Spectrometry Data Analysis
Vojtěch Bartoň, Ivana Ihnatová, … Vlad Popovici·bioRxiv·Dec 10, 2025
- Reliable Molecular Retrieval from Mass Spectra using Conformal Prediction
Morteza Rakhshaninejad, Gaetan De Waele, … Willem Waegeman·Journal of Chemical Information and ModelingPeer-reviewed·May 11, 2026
- Retention time prediction to facilitate molecularstructure identification with tandem mass spectrometry
Patrik Friedlos, Lilian Gasser, Eliza Harris·bioRxiv·Oct 19, 2022
- Confronting spurious evaluations of computational methods in small molecule mass spectrometry
Vishu Gupta, Chencheng Xu, … Michael A. Skinnider·bioRxiv·Jul 14, 2026
- Mass2SMILES: deep learning based fast prediction of structures and functional groups directly from high-resolution MS/MS spectra.
David Elser, Florian Huber, Emmanuel Gaquerel·bioRxiv·Jul 6, 2023