Development and validation of a fentanyl quantification model for drug checking services

Read full text
Authors: Samuel Tobias, Sara M. Guzman, Jason E. Hein, Lianping Ti
Cited by: 0
References: 16

Abstract

Drug checking services are becoming increasing popular. Despite the significant variability in fentanyl concentrations observed in the unregulated opioid supply, quantifying fentanyl concentrations using community drug checking technologies remains challenging. This study reports the development of the first machine learning model to classify and quantify multiple fentanyl analogues in community drug checking samples, using data from British Columbia, Canada. Drug checking samples from harm reduction sites using Fourier-transform infrared spectroscopy were forwarded for laboratory analysis at Health Canada’s Drug Analysis Service. Using gold-standard quantitative nuclear magnetic resonance results, we developed a machine learning pipeline to classify and quantify fentanyl and fluorofentanyl in unregulated drug samples. Over a nearly six-year period, 131,096 drug checks occurred at British Columbia harm reduction sites and 2,032 unique drug samples were forwarded for laboratory analysis. A total of 974 training samples were used, each containing varying amounts of fentanyl or fluorofentanyl. Model performance depended on sample composition: ridge regression produced the most accurate fentanyl estimates in absence of fluorofentanyl, while random forest performed better in mixed-analogue samples. A screening model allowed us to combine these into a hybrid pipeline, improving estimates for both fentanyl (mean average error=3.74; R 2 =0.94) and fluorofentanyl (mean average error=1.22; R 2 =0.97). Our study shows that machine learning models for fentanyl quantification can be used to augment traditional community drug checking technologies. However, any practical use as a point-of-care tool should be accompanied by clear communication of uncertainty to ensure predictions support, rather than unintentionally undermine, harm reduction goals. • Fourier-transform infrared drug checking struggles to provide quantitative results. • We developed a machine learning model to estimate fentanyl concentrations. • The model can identify and quantify both fentanyl and fluorofentanyl. • Fentanyl concentrations can provide useful harm reduction information. • Service implementation still requires caution and careful roll-out.

Fields of Study & Subjects

Forensic Toxicology and Drug Analysis Spectroscopy and Chemometric Analyses Opioid Use Disorder Treatment

Publication details

Journal / source
Drug and Alcohol Dependence Reports
Volume
18
Pages
100415–100415
Publication date
4 February 2026
Language
EN