Device design. Device design is outlined in the results text in addition to mission-critical AIA and ML algorithms. Specific components include a ST UV Micro-spectrometer (Ocean Insight), a TMP36 temperature sensor (Analog Devices), a mono-chrome OLED display and triple-axis accelerometer (Adafruit). Bespoke python software was loaded on a Raspberry Pi Zero 2 W microcomputer running the Raspberry Pi operating system on a 32GB MicroSD card. 12 LEDs were driven at 350mA using a custom PCB. Custom holder for 12channel LED ring, heat sink and ST spectrometer 3Dprinted using an Ultimaker S3 printer using ABS plastic. Standard solution and tablet sample preparation. All standards in purchased as 1mg/mL solutions in methanol (Merck/Cayman) and were diluted for absorption and fluorescence measurements in 99.9% HPLC-grade 2-propanol (VWR). Standards were stored at -20 0 C. Solutions were prepared from tablet material by crushing whole tablet with pestle and mortar. Powder was suspended in 2mL ethanol and material was shaken for 10 seconds then left to settle for 120 seconds. Samples were filtered to remove insoluble debris and pelleted material was discarded. Pharmaceutical tablets we obtained from a commercial supplier and seized material was provided by a local police force. Fluorescence and absorption spectroscopy. Emission maps were acquired using a spectrofluorometer (Edinburgh Instruments, FS5) paired with a temperature-controlled cuvette holder (SC-25 TE Cooled-Standard) and temperature controller (TC1, Quantum Northwest). Emission maps captured at 20 0 C with excitation scanned in 5nm intervals between 260-400nm and emission scanned in 0.5nm intervals between 275-600nm. Quartz fluorescence cuvettes were used to collect emission spectra for solutions of 1mL sample volume. Data were background subtracted to remove contributions from Raman scattering peaks and trimmed to remove monochromator excitation peaks. Data were normalized then plotted using Origin Pro. Absorption measurements of benzodiazepine standards and tablet solutions acquired using an Agilent Technologies Cary 60 UV-visible (UV-Vis) spectrophotometer. Temperature was maintained at 20°C for al experiments using a Peltier. Quartz fluorescence cuvettes were used to collect absorbance spectra for solutions of 1mL sample volume.