Random forest models accurately classify synthetic opioids using high-dimensionality mass spectrometry datasets

Detection of novel threat agents presents several challenges, a principle one being the development of untargeted methods to screen an increasing number of threat chemicals whose exact structures are unknown. With the use of Machine Learning (ML) tools, we can guide the development of analytical methods for broad-spectrum detection of unbounded threat chemical families in complex mixtures. Toward this goal, we used nominal mass and high-resolution mass spectrometry data for hundreds of synthetic opioids and non-opioid compounds. We tested two ML techniques, logistic regression and random forest, to develop models towards a practical, implementable method for opioid detection. We found that of these tested ML methods, random forest models resulted in the highest validation accuracy (95+%) for both nominal mass and high-resolution classification of opioids <i>versus</i> non-opioids, with low false positive and false negative rates. The RF models were then used to successfully predict the classification of 10 compounds-five opioids and five non-opioids not part of the training and validation analysis. This application of ML is a critical step towards the development of field-deployable nominal mass spectrometers with ML-driven analyses for classification of emergent threats.

Authors

Institutions

Publication Details

Journal
Analytical Methods
Published
2026-01-01
DOI
https://doi.org/10.1039/d5ay01677k
Primary Topic
Mass Spectrometry Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Random forest models accurately classify synthetic opioids using high-dimensionality mass spectrometry datasets

Audrey M. Williams, Mark Dreyer, Kourosh Arasteh, Carolyn Fisher et al.
Analytical Methods
Mass Spectrometry Techniques and Applications
article

Random forest models accurately classify synthetic opioids using high-dimensionality mass spectrometry datasets

Audrey M. Williams, Mark Dreyer, Kourosh Arasteh, Carolyn Fisher, A. Carsin Vu, Colin Ponce, Brian Mayer, Steven Magana-Zook, Roald Leif
article en

Abstract

Detection of novel threat agents presents several challenges, a principle one being the development of untargeted methods to screen an increasing number of threat chemicals whose exact structures are unknown. With the use of Machine Learning (ML) tools, we can guide the development of analytical methods for broad-spectrum detection of unbounded threat chemical families in complex mixtures. Toward this goal, we used nominal mass and high-resolution mass spectrometry data for hundreds of synthetic opioids and non-opioid compounds. We tested two ML techniques, logistic regression and random forest, to develop models towards a practical, implementable method for opioid detection. We found that of these tested ML methods, random forest models resulted in the highest validation accuracy (95+%) for both nominal mass and high-resolution classification of opioids <i>versus</i> non-opioids, with low false positive and false negative rates. The RF models were then used to successfully predict the classification of 10 compounds-five opioids and five non-opioids not part of the training and validation analysis. This application of ML is a critical step towards the development of field-deployable nominal mass spectrometers with ML-driven analyses for classification of emergent threats.

Analytical MethodsVol. 18(9)
Lawrence Livermore National Laboratory (US), Lawrence Livermore National Security (US)
U.S. Department of Energy, Lawrence Livermore National Laboratory
Life in Land
Openalex Percentile: Top 94%
Mass Spectrometry Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.