Synthetic cannabinoid classification and structure analysis method based on mass spectrum data

Through classification and structure analysis methods based on mass spectrometry data, combined with data processing and model prediction of CID and EAD modes, the problem of low identification efficiency of synthetic cannabinoids is solved, automatic mass spectrometry analysis and high-accuracy screening are achieved, and the quality of synthetic cannabis is improved. element recognition efficiency and accuracy.

CN118837481APending Publication Date: 2024-10-25ANTI DRUG INFORMATION TECH CENT OF THE MINISTRY OF PUBLIC SECURITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411127489.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

Existing technology In non-targeted screening, there are few studies on automatic analysis of mass spectrometry data, resulting in low identification efficiency of synthetic cannabinoids and prone to missed detection and false detection, especially fragmentation information in the CID mode of synthetic cannabinoids. Less, the prediction structure effect is limited.

Method used

A synthetic cannabinoid classification and structure analysis method based on mass spectrometry data is adopted, data is collected through CID mode and EAD mode, MSConvert and MZmine software are used for data processing and peak identification, and candidate chemical structures are generated by combining the NPS classification model and SC subclass classification model. And perform scoring to achieve automatic mass spectrometry analysis.

Benefits of technology

Implemented non-targeted screening of new psychoactive substances and automatic mass spectrometry analysis of synthetic cannabinoids, improving identification accuracy and efficiency. The F1 score of the NPS classification model reached 96% on 505 samples, and SC subclass classification The model's F1 score reached 97% on 181 samples, and comprehensive screening and rapid detection were completed without manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118837481A_ABST
    Figure CN118837481A_ABST
Patent Text Reader

Abstract

The invention discloses a synthetic cannabinoid classification and structure analysis method based on mass spectrum data, and relates to the technical field of synthetic cannabinoid, and the method comprises the following steps: S1, weighing 1.00 mg of an actual anti-arresting sample, dissolving with 1 mL of methanol, carrying out ultrasonic treatment for 15 min, transferring liquid with a 1 mL disposable syringe, filtering with a 0.2 [mu] m ww PTFE microporous filter membrane, diluting with methanol, and carrying out instrument detection; s2, comprehensively collecting the sample in a CID mode and an EAD mode respectively; and S3, converting the original data file of the instrument into an mzXML format by using MSConvert open source software, and carrying out peak identification, chromatography construction, deconvolution, isotope filtration and data export on the data file by using MZmi ne open source software. The mass spectrum intelligent analysis algorithm comprises the functions of candidate chemical structure generation, mass spectrum prediction, candidate structure scoring, fragment ion peak matching and the like, no manual intervention is needed in the whole process, and comprehensive screening and rapid and accurate detection of new psychoactive substances are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of synthetic cannabinoids, and in particular to a method for classifying and structurally analyzing synthetic cannabinoids based on mass spectrometry data. Background Art

[0002] New psychoactive substances (NPS) refer to substances that are not controlled by the drug control conventions but are abused and pose a threat to public health. Among them, synthetic cannabinoid drugs are the most diverse and most rapidly mutating new psychoactive substances, with 356 species so far. Their structure is generally composed of four parts: "head", "connection (also called neck)", "core (also called trunk)" and "tail", which provide multiple mutation sites for structural modification. Criminals are keen to modify the structure of synthetic cannabinoids and constantly "create" new structures to evade the drug control catalog. The following problems exist in the existing technology:

[0003] Because the process of non-targeted screening usually involves data collection, suspicious peak extraction and mass spectrometry analysis, with the continuous advancement of instrument acquisition technology and data analysis methods, more and more sample data need to be manually analyzed, which greatly reduces the efficiency of inspection and identification work and also leads to problems such as missed detection and false detection. At present, the focus of non-targeted screening research is on extracting suspicious peaks (compound discovery). Many researchers have proposed mass spectrometry data filtering, enhanced spectral similarity, similarity search and fragment trees to improve the accuracy of identifying suspicious peaks. However, there are still few studies on automatic mass spectrometry analysis. Although CFM-ID technology can predict chemical structures based on mass spectrometry data, due to the lack of fragment information of synthetic cannabinoids in CID mode, its effect in predicting structure is limited. Summary of the invention

[0004] The present invention provides a method for classification and structural analysis of synthetic cannabinoids based on mass spectrometry data to solve the problems raised in the above background technology.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0006] A method for classification and structural elucidation of synthetic cannabinoids based on mass spectrometry data comprises the following steps:

[0007] S1: Weigh 1.00 mg of the actual seized sample, dissolve it with 1 mL of methanol, extract the liquid with a 1 mL disposable syringe after ultrasonication for 15 min, filter it through a 0.2 μm wwPTFE microporous filter membrane, and dilute it with methanol for instrument detection;

[0008] S2: Use CID mode and EAD mode to fully collect samples;

[0009] S3: Use MSConvert open source software to convert the instrument raw data file into mzXML format, and use MZmine open source software to perform peak identification, chromatogram construction, deconvolution, isotope filtering and data export on the data file to form a peak information file in csv format and an MS / MS data information file in mgf format;

[0010] S4: After cleaning and standardizing the data collected in the CID mode, the data are submitted to the NPS classification model to predict the categories of substances corresponding to all peaks. Similarly, after cleaning and standardizing the data collected in the EAD mode, the data are submitted to the SC subclass classification model to predict the subclass categories of synthetic cannabinoid substances determined by the NPS classification model.

[0011] S5: For substances that were identified as synthetic cannabinoids by the NPS classification model, the data in the EAD mode was used to search for structures of four sites in the self-built synthetic cannabinoid fragment library, all candidate chemical structures were generated, and preliminary filtering was performed based on the mass of the precursor ions to obtain a list of candidate structures;

[0012] S6: according to the SC subclass category given in step S4, using a spectrum prediction algorithm for all structures in the candidate structure list obtained in step S5 to generate a predicted MS / MS spectrum for each candidate structure;

[0013] S7: using a scoring algorithm to score each candidate structure according to the predicted MS / MS spectrum given in step S6, and sorting them from high to low according to the score, and the one ranked first is the most likely structure;

[0014] S8: After giving the most likely structure, the software will also give the possible fragment structures corresponding to the fragment ions, completing the final automatic analysis of the MS / MS spectrum.

[0015] The further improvement of the technical solution of the present invention is that: the chromatographic conditions collected by the instrument in S2 are as follows: Chromatographic column: Phenomenex Biphenyl Colum; mobile phase: A: formic acid aqueous solution, B: formic acid acetonitrile solution; flow rate, injection volume, column temperature, sample chamber temperature.

[0016] The further improvement of the technical solution of the present invention is that: the MSConvert software in S3 uses the PeakPicking function, the algorithm selects Vendor, and the MS Level is set to 1-2; the detailed parameters of the MZmine software in S3 are as follows:

[0017] A1: Use Import MS data to import the data file and take the mzXML file as input;

[0018] A2: Mass detection was used for peak identification. The primary identification parameters were: retention time range 1-20 min, Polarity was positive ion, Mass detector was Centroid, and Noise level was 1000. The secondary identification parameters were: retention time range 1-20 min, Polarity was positive ion, Mass detector was Centroid, and Noise level was 0.

[0019] A3: Chromatograms were constructed using ADAP Chromatogram Builder, with a minimum of 5 consecutive scans, a minimum intensity of 2000 for consecutive scans, a minimum absolute height of 5000, an m / z tolerance of 0.002 m / z or 10 ppm for CID data, and 0.01 m / z or 50 ppm for EAD data;

[0020] A4: Deconvolution uses Local minimum feature resolver, Chromatographic threshold is 85%, Minimum search range RT / Mobility is 0.05, Minimum relative height is 0%, Minimum absolute height is 2000, Min ratio of peak top / edge is 2, Peak duration range is 0-1, and Minimum scans is 5;

[0021] A5: Use 13C isotope filter for isotope filtration, m / z tolerance for CID data is 0.001m / z or 3ppm, for EAD data is 0.01m / z or 10ppm, retention time tolerance is 0.02min, Monotonicshape is yes, Maximum charge is 2, Never remove feature with MS2 is yes;

[0022] A6: Use Export molecular networking files to export data into two files: csv and mgf.

[0023] A further improvement of the technical solution of the present invention is that the cleaning and standardization method of the CID data in S4 is as follows: MATLAB is used to read the csv and mgf files to obtain all peaks and their corresponding secondary mass spectrometry data, and all secondary mass spectrometry data are processed according to the following process:

[0024] B1: Normalize the response to the range of 0-100 to form a new two-dimensional array;

[0025] B2: Use the thresholds of 0.5% and 5% respectively to delete the data with responses below the thresholds in the new two-dimensional array, forming two two-dimensional arrays of cut_0.5 and cut_5;

[0026] B3: Use cut_5 to generate hypothetical neutral loss data, that is, make a difference between any two m / z values ​​in the cut_5 array, add their absolute values ​​as new m / z values ​​to the NL array, take the average of the two differences as the response, and finally add the generated NL array to the cut_0.5 array;

[0027] B4: Normalize the responses in the cut_0.5 array according to formula 1, and round the m / z values ​​to two decimal places;

[0028]

[0029] B5: Create a one-dimensional all-zero array X[i] with a length of 50,000. The value i represents the mass number from 0.01 to 500 with an interval of 0.01. Fill in all the data in the cut_0.5 array according to the rule that if i = m / z*100, then X[i] = response. Finally, each mass spectrum data forms a one-dimensional array with a length of 50,000 as the input of the classification model.

[0030] The cleaning and standardization method of the EAD data in S4 is as follows: MATLAB is used to read the csv and mgf files to obtain all peaks and their corresponding secondary mass spectrometry data. The EAD mass spectrometry data is processed according to the following process:

[0031] C1: Normalize the response to the range of 0-100 to form a new two-dimensional array;

[0032] C2: Using the thresholds of 0.5 and 1, delete the data in the new two-dimensional array whose response is lower than the threshold, forming the cut_0.5 and cut_1 two-dimensional arrays;

[0033] C3: Normalize the responses in the cut_0.5 array according to Formula 1, and round the m / z values ​​to one decimal place;

[0034] C4: Create a one-dimensional all-zero array X[i] with a length of 5000. The value i represents the mass number from 0.1 to 500 with an interval of 0.1. Fill in all the data in the cut_0.5 array according to the rule that if i = m / z*100, then X[i] = response. Finally, each mass spectrum data forms a one-dimensional array with a length of 5000 as the input of the SC subclass classification model.

[0035] C5:cut_1 was used as input for a synthetic cannabinoid fragment library search to generate a list of candidate structures.

[0036] A further improvement of the technical solution of the present invention is that: the structure search method in S5 is as follows Figure 3 c. Obtain all possible structures of the four parts. After full permutation and combination, several possible structure lists can be obtained. The corresponding masses of the four parts are added and compared with the precursor ion mass of the actual MS / MS spectrum. If the mass error is less than 0.01Da, it is added to the candidate structure list for further screening.

[0037] A further improvement of the technical solution of the present invention is that the spectrum prediction algorithm in S6 is based on the category given by the SC subclass classification model given in step S4, according to Figure 4-9 The predicted spectra of the corresponding structures are generated by the calculation method.

[0038] A further improvement of the technical solution of the present invention is that the scoring algorithm in S7 compares the predicted MS / MS spectrum obtained in step S6 with the experimental spectrum, with a mass tolerance error of 0.01Da, one point for each peak, and the candidate structures are ranked according to the total score.

[0039] A further improvement of the technical solution of the present invention is that the fragment ion structure prediction in S8, i.e., peak matching, is based on the scoring algorithm of S7, and the experimental spectrum is associated with the peaks that are successfully matched with the predicted MS / MS spectrum, and the corresponding structure is Figure 4-9 The structure corresponding to the serial number in .

[0040] Due to the adoption of the above technical solution, the present invention has the following technical advances compared with the prior art:

[0041] 1. The present invention provides a method for the classification and structural analysis of synthetic cannabinoids based on mass spectrometry data. By successfully applying the electron activated dissociation technology to synthetic cannabinoid small molecules, the non-targeted screening of new psychoactive substances and the automatic mass spectrometry analysis of synthetic cannabinoids are achieved.

[0042] 2. The present invention provides a method for classification and structural analysis of synthetic cannabinoids based on mass spectrometry data. The mass spectrometry intelligent analysis software integrates the NPS classification model, the SC subclass classification model and the mass spectrometry intelligent analysis algorithm. The NPS classification model is trained on the CID data of 505 NPSs, and 8 types of NPS classification predictions are achieved, with the highest F1 score reaching 96%. The SC subclass classification model is trained on the EAD data of 181 SCs, and 7 types of SC parent nucleus structures are classified, with the highest F1 score reaching 97%.

[0043] 3. The present invention provides a method for the classification and structural analysis of synthetic cannabinoids based on mass spectrometry data. The mass spectrometry intelligent analysis algorithm includes functions such as candidate chemical structure generation, mass spectrometry prediction, candidate structure scoring and fragment ion peak matching. The entire process does not require any human intervention, thereby achieving comprehensive screening and rapid and accurate detection of new psychoactive substances. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a schematic diagram of the technical solution flow of the present invention;

[0045] Figure 2 This is a schematic diagram of the 6 types of synthetic cannabinoid nuclei summarized by the present invention according to the EAD fragmentation law;

[0046] Figure 3 a is the MS / MS spectrum and fragment structure of JWH-007; b is the fragment library summarized based on the MS / MS spectrum of JWH-007; c is the structure search in the fragment library using the fragment ion mass and the assumed neutral loss mass;

[0047] Figure 4 It is a schematic diagram of the calculation method of the NA and QU type prediction spectra of the present invention;

[0048] Figure 5 It is a schematic diagram of the calculation method of the BZ and CUMYL class prediction spectra of the present invention;

[0049] Figure 6 It is a schematic diagram of the calculation method of the AB and AMB class prediction spectra of the present invention;

[0050] Figure 7 A schematic diagram of the calculation method of the Class A prediction spectrum of the present invention;

[0051] Figure 8 It is a schematic diagram of the calculation method of the TMCP-type prediction spectrum of the present invention;

[0052] Fig. 9 It is a schematic diagram of the calculation method of the BZO-ZIDOXI type prediction spectrum of the present invention;

[0053] Fig.10Schematic diagram of confusion matrix of four classification models of the present invention;

[0054] Fig.11 A schematic diagram of the confusion matrix of the test set prediction results of the four SC subclass classification models of the present invention;

[0055] Fig.12 Schematic diagram of the chemical structures of sample 1-1, sample 2-5, and sample 2-6 of the present invention;

[0056] Fig.13 A schematic diagram of parameter combination for EAD optimization of the present invention;

[0057] Fig.14 Schematic diagram of three evaluation index values ​​under various parameter combinations of the present invention;

[0058] Fig.15 Schematic diagram of optimal hyperparameters of four NPS classification models of the present invention;

[0059] Fig.16 Schematic diagram of optimal hyperparameters for the four SC subclass classification models of the present invention;

[0060] Fig.17 This is a schematic diagram of the non-targeted screening results of 5 actual samples of the present invention. DETAILED DESCRIPTION

[0061] The present invention is further described in detail below in conjunction with embodiments:

[0062] Example 1

[0063] like Figure 1-17 As shown, the present invention provides a method for classification and structural analysis of synthetic cannabinoids based on mass spectrometry data, comprising the following steps:

[0064] S1: Weigh 1.00 mg of the actual seized sample, dissolve it with 1 mL of methanol, extract the liquid with a 1 mL disposable syringe after ultrasonication for 15 min, filter it through a 0.2 μm wwPTFE microporous filter membrane, and dilute it with methanol for instrument detection;

[0065] S2: Use CID mode and EAD mode to fully collect samples;

[0066] S3: Use MSConvert open source software to convert the instrument raw data file into mzXML format, and use MZmine open source software to perform peak identification, chromatogram construction, deconvolution, isotope filtering and data export on the data file to form a peak information file in csv format and an MS / MS data information file in mgf format;

[0067] S4: After cleaning and standardizing the data collected in the CID mode, the data are submitted to the NPS classification model to predict the categories of substances corresponding to all peaks. Similarly, after cleaning and standardizing the data collected in the EAD mode, the data are submitted to the SC subclass classification model to predict the subclass categories of synthetic cannabinoid substances determined by the NPS classification model.

[0068] S5: For substances that were identified as synthetic cannabinoids by the NPS classification model, the data in the EAD mode was used to search for structures of four sites in the self-built synthetic cannabinoid fragment library, all candidate chemical structures were generated, and preliminary filtering was performed based on the mass of the precursor ions to obtain a list of candidate structures;

[0069] S6: according to the SC subclass category given in step S4, using a spectrum prediction algorithm for all structures in the candidate structure list obtained in step S5 to generate a predicted MS / MS spectrum for each candidate structure;

[0070] S7: using a scoring algorithm to score each candidate structure according to the predicted MS / MS spectrum given in step S6, and sorting them from high to low according to the score, and the one ranked first is the most likely structure;

[0071] S8: After giving the most likely structure, the software will also give the possible fragment structures corresponding to the fragment ions, completing the final automatic analysis of the MS / MS spectrum;

[0072] The chromatographic conditions collected by the instrument in S2 are as follows: Chromatographic column: Phenomenex BiphenylColum; mobile phase: A: formic acid aqueous solution, B: formic acid acetonitrile solution; flow rate, injection volume, column temperature, sample chamber temperature; the MSConvert software in S3 uses the Peak Picking function, the algorithm selects Vendor, and the MS Level is set to 1-2; the detailed parameters of the MZmine software in S3 are as follows:

[0073] A1: Use Import MS data to import the data file and take the mzXML file as input;

[0074] A2: Mass detection was used for peak identification. The primary identification parameters were: retention time range 1-20 min, Polarity was positive ion, Mass detector was Centroid, and Noise level was 1000. The secondary identification parameters were: retention time range 1-20 min, Polarity was positive ion, Mass detector was Centroid, and Noise level was 0.

[0075] A3: Chromatograms were constructed using ADAP Chromatogram Builder, with a minimum of 5 consecutive scans, a minimum intensity of 2000 for consecutive scans, a minimum absolute height of 5000, an m / z tolerance of 0.002 m / z or 10 ppm for CID data, and 0.01 m / z or 50 ppm for EAD data;

[0076] A4: Deconvolution uses Local minimum feature resolver, Chromatographic threshold is 85%, Minimum search range RT / Mobility is 0.05, Minimum relative height is 0%, Minimum absolute height is 2000, Min ratio of peak top / edge is 2, Peak duration range is 0-1, and Minimum scans is 5;

[0077] A5: Use 13C isotope filter for isotope filtration, m / z tolerance for CID data is 0.001m / z or 3ppm, for EAD data is 0.01m / z or 10ppm, retention time tolerance is 0.02min, Monotonicshape is yes, Maximum charge is 2, Never remove feature with MS2 is yes;

[0078] A6: Export molecular networking files to export data into two files: csv and mgf.

[0079] The cleaning and standardization method of the CID data in S4 is as follows: MATLAB is used to read the csv and mgf files to obtain all peaks and their corresponding secondary mass spectrometry data. All secondary mass spectrometry data are processed according to the following process:

[0080] B1: Normalize the response to the range of 0-100 to form a new two-dimensional array;

[0081] B2: Use the thresholds of 0.5% and 5% respectively to delete the data with responses below the thresholds in the new two-dimensional array, forming two two-dimensional arrays of cut_0.5 and cut_5;

[0082] B3: Use cut_5 to generate hypothetical neutral loss data, that is, make a difference between any two m / z values ​​in the cut_5 array, add their absolute values ​​as new m / z values ​​to the NL array, take the average of the two differences as the response, and finally add the generated NL array to the cut_0.5 array;

[0083] B4: Normalize the responses in the cut_0.5 array according to formula 1, and round the m / z values ​​to two decimal places;

[0084]

[0085] B5: Create a one-dimensional all-zero array X[i] with a length of 50,000. The value i represents the mass number from 0.01 to 500 with an interval of 0.01. Fill in all the data in the cut_0.5 array according to the rule that if i = m / z*100, then X[i] = response. Finally, each mass spectrum data forms a one-dimensional array with a length of 50,000 as the input of the classification model.

[0086] The cleaning and standardization method of the EAD data in S4 is as follows: MATLAB is used to read the csv and mgf files to obtain all peaks and their corresponding secondary mass spectrometry data. The EAD mass spectrometry data is processed according to the following process:

[0087] C1: Normalize the response to the range of 0-100 to form a new two-dimensional array;

[0088] C2: Using the thresholds of 0.5 and 1, delete the data in the new two-dimensional array whose response is lower than the threshold, forming the cut_0.5 and cut_1 two-dimensional arrays;

[0089] C3: Normalize the responses in the cut_0.5 array according to Formula 1, and round the m / z values ​​to one decimal place;

[0090] C4: Create a one-dimensional all-zero array X[i] with a length of 5000. The value i represents the mass number from 0.1 to 500 with an interval of 0.1. Fill in all the data in the cut_0.5 array according to the rule that if i = m / z*100, then X[i] = response. Finally, each mass spectrum data forms a one-dimensional array with a length of 5000 as the input of the SC subclass classification model.

[0091] C5: cut_1 was used as input for searching the synthetic cannabinoid fragment library to generate a list of candidate structures;

[0092] The structure search method in S5 is as follows Figure 3c. Obtain all possible structures of the four parts. After full permutation and combination, a list of several possible structures can be obtained. The corresponding masses of the four parts are added and compared with the precursor ion mass of the actual MS / MS spectrum. If the mass error is less than 0.01Da, the candidate structure list is added to wait for further screening. The spectrum prediction algorithm in S6 is based on the category given by the SC subclass classification model given in step S4, according to Figure 4-9 The predicted spectrum of the corresponding structure is generated by the calculation method; the scoring algorithm in S7 compares the predicted MS / MS spectrum obtained in step S6 with the experimental spectrum, the mass tolerance error is 0.01Da, one peak is scored one point, and the candidate structures are sorted by the total score. The fragment ion structure prediction in S8, that is, peak matching, is based on the scoring algorithm in S7, and the experimental spectrum is associated with the peaks that successfully match the predicted MS / MS spectrum. The corresponding structure is Figure 4-9 The structure corresponding to the serial number in .

[0093] In this embodiment, the mass spectrometry data in S2 were collected from a SCIEX ZenoTOFTM 7600 ultra high performance liquid chromatography-mass spectrometer; scanning mode: electrospray ion source, positive ion scanning; detection mode: IDA data-dependent acquisition mode; electrospray voltage: 5500V; ion source temperature: 500°C; nebulizer gas pressure: 50psi; auxiliary heating gas pressure: 50psi; curtain gas pressure: 35psi; declustering voltage: 20V, the parameters in CID mode are as follows: collision energy: 35±15V, the parameters in EAD mode are as follows: electron beam energy: 15eV; ion transmission Efficiency: 100%; Electron current: 7500nA; Response time: 50ms; Zeno trap threshold: 100000cps; The NPS classification model and SC subclass classification model in S4 are trained by Python, both using the Voting algorithm, integrating the K nearest neighbor, support vector machine and extreme forest models. The NPS classification model supports 1: synthetic cannabinoids; 2: synthetic cathinones; 3: phenylethylamines; 4: fentanyls; 5: tryptamines; 6: phencyclidine; 7: benzodiazepines Class; 8: Other classes, a total of 8 types of NPS prediction classification, SC subclass classification model supports 1: AMB, AB class; 2: A class; 3: BZ, CUMYL class; 4: NA, QU class; 5: TMCP class; 6: BZO-ZIDOXI class; 7: Other classes, a total of 7 types of SC mother nucleus structure prediction classification, various types of mother nucleus structures such as Figure 2 , Figure 2 In it, X=N,O,none; Y=N,C; the core can be replaced, and the heads of NA and QU types can be other rings.

[0094] Example 2

[0095] like Figure 1-17 As shown, on the basis of Example 1, the present invention provides a technical solution: Preferably, in order to obtain more fragmentation information, this study optimizes the mass spectrometry parameters under the EAD mode, and the optimized values ​​of each parameter are: Electron beam energy Electron KE: 10eV, 15eV, 20eV; Electron beam current Electron beam current: 6000nA, 7500nA, 9000nA; Ion transmission efficiency ETC: 50%, 75%, 100%; Reaction time Reaction time: 35ms, 50ms, 65ms; Zeno trap threshold Zeno threshold: 100000cps, the specific optimization parameter combination is shown in Fig.13 , 100 ppb of 181 synthetic cannabinoids were injected three times for each parameter combination, and three indicators were set to evaluate the quality of the spectra under different EAD parameter combinations: average peak area; number of fragments with relative abundance higher than 1%; RSD of the abundance of the same fragments repeated three times. MATLAB was used to process the 4887 EAD spectrum data obtained by repeatedly collecting 181 synthetic cannabinoids three times for the above 9 parameter combinations. Due to the decrease in the instrument mass accuracy in the EAD mode, the error window was set to 0.01 Da during the peak alignment of the three EAD spectra of the same synthetic cannabinoid. The values ​​of each indicator of the 9 parameter groups are shown in Fig.14 , Fig.14The differences between different parameter combinations are mainly reflected in the number of fragments, and the differences in average peak area and abundance RSD are relatively small. The Electron KE value has the greatest impact on the quality of the spectrum. After the KE value increases from 10eV to 15eV, the number and abundance of fragment ions are significantly improved, but after continuing to increase to 20V, the abundance of all fragments drops drastically. Actual observation of the EAD spectrum at 20eV shows that most of the fragments of synthetic cannabinoids almost completely disappear, leaving only the molecular ion peak. This also leads to the abundance RSD of parameter combination 3 being significantly lower than all other combinations. The parameters Electron beam current and ETC both control the actual number of electrons. The spectrum quality and parameter values ​​are positively correlated as a whole. Therefore, the Electron beam current selects 7500nA, and the ETC selects 100%. The reason why the Electron beam current does not select the highest value of 9000nA is that the increase from 7500nA to 9000nA has a small effect on the number of fragments; the higher the Electron beam current, the smaller the increase in the number of fragments. The higher the current value, the faster the EAD mode response decays. Experiments have found that long-term high current conditions in the EAD mode will lead to a decrease in the overall response of the mass spectrometry EAD and CID modes. After flushing using the negative ion mass spectrometry method, the overall response of the mass spectrometry can return to normal. The value of the Reaction time has little effect on the spectrum quality, but since the secondary residence time of the mass spectrometer needs to be greater than 2 times the Reaction time, in order to minimize the method cycle time and ensure the stability of the method, the Reaction time is selected as 50ms. Therefore, combination 1 is finally selected as the optimal parameter combination.

[0096] Example 3

[0097] like Figure 1-17 As shown, on the basis of Example 1, the present invention provides a technical solution: preferably, four classification models, KNN, SVM, ET and Voting, are selected for optimization, the model is trained and optimized by Bayesian optimization algorithm and 5-fold cross validation, the model is evaluated by three indicators, precision, recall rate and f1 score, the test set is randomly divided by python at a ratio of 0.2, the training set data is 404, the test set data is 101, and the optimal hyperparameter combination of each model is shown in Fig.15 , the test set confusion matrix of each model is as follows Fig.10 , Fig.10 1: Synthetic cannabinoids; 2: Synthetic cathinones; 3: Phenylethylamines; 4: Fentanyls; 5: Tryptamines; 6: Phencyclidines; 7: Benzodiazepines Class; 8: Other classes. Finally, the Voting model was selected as the final NPS classification model.

[0098] Example 4

[0099] like Figure 1-17 As shown, on the basis of Example 1, the present invention provides a technical solution: preferably, four classification models, KNN, SVM, ET and Voting, are selected for optimization, the model is optimized by Bayesian optimization algorithm and 5-fold cross validation, the model is evaluated by three indicators, precision, recall rate and f1 score, the training set and the test set are randomly divided by Python software at a ratio of 0.2, and 181 synthetic cannabinoid data are divided into 144 training set data and 37 test set data. The optimal hyperparameter combination of each model is shown in Fig.16 , the test set confusion matrix of each model is as follows Fig.11 , Fig.11 1: AMB, AB; 2: A; 3: BZ, CUMYL; 4: NA, QU; 5: TMCP; 6: BZO-ZIDOXI; 7: Others. The Voting model was finally selected as the final SC subclass classification model. The above technical process was used to perform non-targeted screening on five actual samples. The results are shown in the figure. Fig.17 , All 13 substances in the five actual samples were correctly classified by the NPS classification model. Sample 1 and sample 2 were re-collected using the EAD mode. Except for sample 2-5, all substances were successfully resolved and the correct structures were ranked first. Both substances in sample 1-1 and sample 2-6 were new synthetic cannabinoids.

[0100] The above generally describes the present invention in detail, but it is obvious to a person skilled in the art that some modifications or improvements can be made to the present invention. Therefore, modifications or improvements that do not depart from the spirit of the present invention are within the scope of protection of the present invention.

Claims

1. A method for the classification and structural elucidation of synthetic cannabinoids based on mass spectrometry data, Features: The following steps are involved: S1: Weigh 1.00 mg of the actual seized sample, dissolve it with 1 mL of methanol, extract the liquid with a 1 mL disposable syringe after ultrasonication for 15 min, filter it through a 0.2 μm wwPTFE microporous filter membrane, and dilute it with methanol for instrument detection; S2: Use CID mode and EAD mode to fully collect samples; S3: Use MSConvert open source software to convert the instrument raw data file into mzXML format, and use MZmine open source software to perform peak identification, chromatogram construction, deconvolution, isotope filtering and data export on the data file to form a peak information file in csv format and an MS / MS data information file in mgf format; S4: After cleaning and standardizing the data collected in the CID mode, the data are submitted to the NPS classification model to predict the categories of substances corresponding to all peaks. Similarly, after cleaning and standardizing the data collected in the EAD mode, the data are submitted to the SC subclass classification model to predict the subclass categories of synthetic cannabinoid substances determined by the NPS classification model. S5: For substances that were identified as synthetic cannabinoids by the NPS classification model, the data in the EAD mode was used to search for structures of four sites in the self-built synthetic cannabinoid fragment library, all candidate chemical structures were generated, and preliminary filtering was performed based on the mass of the precursor ions to obtain a list of candidate structures; S6: according to the SC subclass category given in step S4, using a spectrum prediction algorithm for all structures in the candidate structure list obtained in step S5 to generate a predicted MS / MS spectrum for each candidate structure; S7: using a scoring algorithm to score each candidate structure according to the predicted MS / MS spectrum given in step S6, and sorting them from high to low according to the score, and the one ranked first is the most likely structure; S8: After giving the most likely structure, the software will also give the possible fragment structures corresponding to the fragment ions, completing the final automatic analysis of the MS / MS spectrum.

2. A method for classification and structural analysis of synthetic cannabinoids based on mass spectrometry data according to claim 1, Features: The chromatographic conditions collected by the instrument in S2 are as follows: Chromatographic column: Phenomenex BiphenylColum; Mobile phase: A: formic acid aqueous solution, B: formic acid acetonitrile solution; flow rate, injection volume, column temperature, sample chamber temperature.

3. A method for classification and structural analysis of synthetic cannabinoids based on mass spectrometry data according to claim 1, Features: The MSConvert software in S3 uses the Peak Picking function, the algorithm selects Vendor, and the MS Level is set to 1-2; the detailed parameters of the MZmine software in S3 are as follows: A1: Use Import MS data to import the data file and take the mzXML file as input; A2: Mass detection was used for peak identification. The primary identification parameters were: retention time range 1-20 min, Polarity was positive ion, Mass detector was Centroid, and Noise level was 1000. The secondary identification parameters were: retention time range 1-20 min, Polarity was positive ion, Mass detector was Centroid, and Noise level was 0. A3: Chromatograms were constructed using ADAP Chromatogram Builder, with a minimum of 5 consecutive scans, a minimum intensity of 2000 for consecutive scans, a minimum absolute height of 5000, an m / z tolerance of 0.002 m / z or 10 ppm for CID data, and 0.01 m / z or 50 ppm for EAD data; A4: Deconvolution uses Local minimum feature resolver, Chromatographic threshold is 85%, Minimum search range RT / Mobility is 0.05, Minimum relative height is 0%, Minimum absolute height is 2000, Min ratio of peak top / edge is 2, Peak duration range is 0-1, and Minimum scans is 5; A5: Use 13Cisotope filter for isotope filtration, m / z tolerance for CID data is 0.001m / z or 3ppm, for EAD data is 0.01m / z or 10ppm, retention time tolerance is 0.02min, Monotonicshape is yes, Maximum charge is 2, Never remove feature with MS2 is yes; A6: Use Export molecular networking files to export data into two files: csv and mgf.

4. A method for classification and structural analysis of synthetic cannabinoids based on mass spectrometry data according to claim 1, Features: The cleaning and standardization method of the CID data in S4 is as follows: MATLAB is used to read the csv and mgf files to obtain all peaks and their corresponding secondary mass spectrometry data. All secondary mass spectrometry data are processed according to the following process: B1: Normalize the response to the range of 0-100 to form a new two-dimensional array; B2: Use the thresholds of 0.5% and 5% respectively to delete the data with responses below the thresholds in the new two-dimensional array, forming two two-dimensional arrays of cut_0.5 and cut_5; B3: Use cut_5 to generate hypothetical neutral loss data, that is, make a difference between any two m / z values ​​in the cut_5 array, add their absolute values ​​as new m / z values ​​to the NL array, take the average of the two differences as the response, and finally add the generated NL array to the cut_0.5 array; B4: Normalize the responses in the cut_0.5 array according to formula 1, and round the m / z values ​​to two decimal places; B5: Create a one-dimensional all-zero array X[i] with a length of 50,000. The value i represents the mass number from 0.01 to 500 with an interval of 0.

01. Fill in all the data in the cut_0.5 array according to the rule that if i = m / z*100, then X[i] = response. Finally, each mass spectrum data forms a one-dimensional array with a length of 50,000 as the input of the classification model. The cleaning and standardization method of the EAD data in S4 is as follows: MATLAB is used to read the csv and mgf files to obtain all peaks and their corresponding secondary mass spectrometry data. The EAD mass spectrometry data is processed according to the following process: C1: Normalize the response to the range of 0-100 to form a new two-dimensional array; C2: Using the thresholds of 0.5 and 1, delete the data in the new two-dimensional array whose response is lower than the threshold, forming the cut_0.5 and cut_1 two-dimensional arrays; C3: Normalize the responses in the cut_0.5 array according to Formula 1, and round the m / z values ​​to one decimal place; C4: Create a one-dimensional all-zero array X[i] with a length of 5000. The value i represents the mass number from 0.1 to 500 with an interval of 0.

1. Fill in all the data in the cut_0.5 array according to the rule that if i = m / z*100, then X[i] = response. Finally, each mass spectrum data forms a one-dimensional array with a length of 5000 as the input of the SC subclass classification model. C5:cut_1 was used as input for a synthetic cannabinoid fragment library search to generate a list of candidate structures.

5. A method for classification and structural analysis of synthetic cannabinoids based on mass spectrometry data according to claim 1, Features: The structure search method in S5 is shown in Figure 3c. All possible structures of the four parts are obtained. After full permutation and combination, several possible structure lists can be obtained. The corresponding masses of the four parts are added and compared with the precursor ion mass of the actual MS / MS spectrum. If the mass error is less than 0.01Da, it is added to the candidate structure list for further screening.

6. A method for classification and structural analysis of synthetic cannabinoids based on mass spectrometry data according to claim 1, Features: The spectrum prediction algorithm in S6 generates a predicted spectrum of the corresponding structure based on the category given by the SC subclass classification model given in step S4 according to the calculation method of Figures 4-9.

7. A method for classification and structural analysis of synthetic cannabinoids based on mass spectrometry data according to claim 1, Features: The scoring algorithm in S7 compares the predicted MS / MS spectrum obtained in step S6 with the experimental spectrum, with a mass tolerance error of 0.01 Da, one point for each peak, and the candidate structures are ranked according to the total score.

8. A method for classification and structural analysis of synthetic cannabinoids based on mass spectrometry data according to claim 1, Features: The fragment ion structure prediction in S8, i.e., peak matching, is based on the scoring algorithm of S7, and the experimental spectrum is associated with the peaks that are successfully matched with the predicted MS / MS spectrum. The corresponding structure is the structure corresponding to the serial number in Figures 4-9.