ABSTRACT Background: X-ray absorption spectroscopy (XAS) is a widely used substance analysis technique. It bases on the different absorption coefficients at different energy level to achieve material identification. Additionally, the combination of spectral technology and deep learning can achieve auto detection and high accuracy in material identification. Objectives: Current methods are difficult to identify drugs quickly and nondestructively. Therefore, we explore a novel approach utilizing XAS for the detection of prohibited drugs with common X-ray tube source and photon-counting (PC) detector. Method: To achieve automatic, rapid, and accurate detection of drugs. A CdTe detector and a common X-ray source were used to collect data, then dividing the data into training and testing sets. Finally, the improved transformer encoder model was used for classification. LSTM and ResU-net models are selected for comparation. Result: Fifty substances, which are isomers or compounds with similar molecular formulas of drugs, were selected for experiment substances. The results showed that the improved transformer model achieving 1.4 hours for training time and 96.73% for accuracy, which is better than the LSTM (2.6 hours and 65%) and ResU-net (1.5 hours and 92.7%). Conclusion: It can be concluded that the attention mechanism is more accurate for spectral material identification. XAS combined with deep learning can achieve efficient and accurate drug identification, offering promising application in clinical drug testing and drug enforcement.
Read full abstract