Toward automated infrared spectral analysis in community drug checking.
Lea Gozdzialski, Abby Hutchison, Bruce Wallace, Chris Gill, Dennis Hore
Drug Testing and Analysis January 2024 DOI: 10.1002/dta.3520 (opens in new tab)
Study at a glance
AI-extracted from the abstract| Characteristics | Machine learning model development and demonstration Peer reviewed |
|---|---|
| Population | Drug samples acquired at a community drug checking site |
| Keywords | Shap Drug checking Explainable ai Infrared spectroscopy Random forest classification |
| Key points | A random forest model detected MDA with 79% true positive and 100% true negative rates, and fluorofentanyl with 61% true positive and 97% true negative rates. The authors propose a workflow combining SHAP explanations and k-nearest neighbors comparison to support trust in automated infrared spectral interpretation for harm reduction. |
Abstract
The body of knowledge surrounding infrared spectral analysis of drug mixtures continues to grow alongside the physical expansion of drug checking services. Technicians trained in the analysis of spectroscopic data are essential for reasons that go beyond the accuracy of the analytical results. Significant barriers faced by people who use drugs in engaging with drug checking services include the speed and accuracy of the results, and the availability and accessibility of the service. These barriers can be overcome by the automation of interpretations. A random forest model for the detection of two compounds, MDA and fluorofentanyl, was trained and optimized with drug samples acquired at a community drug checking site. This resulted in a 79% true positive and 100% true negative rate for MDA, and 61% true positive and 97% true negative rate for fluorofentanyl. The trained models were applied to selected drug samples to demonstrate a proposed workflow for interpreting and validating model predictions. The detection of MDA was demonstrated on three mixtures: (1) MDMA and MDA, (2) MDA and dimethylsulfone, and (3) fentanyl, etizolam, and benzocaine. The classification of fluorofentanyl was applied to a drug mixture containing fentanyl, fluorofentanyl, 4-anilino-N-phenethylpiperidine, caffeine, and mannitol. Feature importance was calculated using shapely additive explanations to better explain the model predictions and k-nearest neighbors was used for visual comparison to labelled training data. This is a step toward building appropriate trust in computer-assisted interpretations in order to promote their use in a harm reduction context.