Rapid and robust on-scene detection of cocaine in street samples using a handheld near-infrared spectrometer and machine learning algorithms

Drug Test Anal. 2020 Oct;12(10):1404-1418. doi: 10.1002/dta.2895. Epub 2020 Jul 27.

Abstract

On-scene drug detection is an increasingly significant challenge due to the fast-changing drug market as well as the risk of exposure to potent drug substances. Conventional colorimetric cocaine tests involve handling of the unknown material and are prone to false-positive reactions on common pharmaceuticals used as cutting agents. This study demonstrates the novel application of 740-1070 nm small-wavelength-range near-infrared (NIR) spectroscopy to confidently detect cocaine in case samples. Multistage machine learning algorithms are used to exploit the limited spectral features and predict not only the presence of cocaine but also the concentration and sample composition. A model based on more than 10,000 spectra from case samples yielded 97% true-positive and 98% true-negative results. The practical applicability is shown in more than 100 case samples not included in the model design. One of the most exciting aspects of this on-scene approach is that the model can almost instantly adapt to changes in the illicit-drug market by updating metadata with results from subsequent confirmatory laboratory analyses. These results demonstrate that advanced machine learning strategies applied on limited-range NIR spectra from economic handheld sensors can be a valuable procedure for rapid on-site detection of illicit substances by investigating officers. In addition to forensics, this interesting approach could be beneficial for screening and classification applications in the pharmaceutical, food-safety, and environmental domains.

Keywords: cocaine; forensic illicit-drug analysis; indicative testing; k-nearest neighbors; near-infrared.

MeSH terms

  • Algorithms
  • Cocaine / analysis*
  • Dopamine Uptake Inhibitors / analysis*
  • Humans
  • Illicit Drugs / analysis*
  • Machine Learning
  • Spectroscopy, Near-Infrared / methods*

Substances

  • Dopamine Uptake Inhibitors
  • Illicit Drugs
  • Cocaine