Multispectral fusion digital drug enforcement method, device, medium and program product

Through the multi-spectral fusion digital anti-drug method, non-invasive detection of human skin is used using spectrometers, solving the problems of low efficiency and harm to the human body in the existing anti-drug detection technology, and achieving efficient and accurate drug detection.

CN119691467AInactive Publication Date: 2025-03-25BEIJING CAPIPAD COMM EQUIP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510078163.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2025-03-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing anti-drug testing technology is inefficient, difficult to meet the needs of rapid screening, and there is a risk of harming the human body.

Method used

The digital anti-drug method of multi-spectral fusion is used to perform non-invasive detection of human skin through a spectrometer, and the spectral data is used to identify drug-related elements, and match it with a preset drug element feature library.

Benefits of technology

It has achieved accurate identification of drug elements in complex human skin components, reduced misjudgment, improved detection efficiency and accuracy, and supported law enforcement agencies to combat drug crimes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119691467A_ABST
    Figure CN119691467A_ABST
Patent Text Reader

Abstract

The invention provides a multispectral fusion digital drug enforcement method and device, a medium and a program product, and relates to the field of trace element detection. The method comprises the steps that after a spectrograph receives a detection starting instruction, target human skin is subjected to illumination detection with the set wavelength according to pre-stored parameters, reflection spectrum data of the target human skin is determined according to the light reflection condition after the set duration, then the types of elements contained in the target human skin are determined according to the characteristic wavelength, and the element content is determined according to the light intensity attenuation degree at the characteristic wavelength. And then comparing the types and contents of the elements with a preset drug element feature library, if the elements are matched with the preset drug element feature library, judging that drug elements exist, and finally determining the types of the drugs according to the drug elements and sending a detection alarm containing the types of the drugs to a display end in communication connection, so as to realize accurate and efficient drug detection and screening. Therefore, drug related elements can be accurately recognized in complex human skin components through non-invasive detection, and drug detection efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of trace element detection, and in particular to a multi-spectral fusion digital drug detection method, device, medium and program product. Background Art

[0002] The proliferation of drugs has become a major problem that endangers social security and harms people's physical and mental health worldwide. In the fight against drug crimes, accurate and efficient drug detection technology is a crucial link.

[0003] In the prior art, after a person takes drugs, the metabolites of the drugs will enter the kidneys through the blood circulation and then be excreted from the body with urine. Different drugs will produce specific metabolites in the human body. By detecting the presence and content of these specific metabolites in urine, it is possible to determine whether a person has taken drugs. In addition, drug components and their metabolites will enter the hair follicles through the blood circulation and be integrated into the keratin of the hair. As the hair grows, they will remain for a long time. Therefore, by detecting the drug components in the hair, it is possible to reflect a person's drug use over a long period of time.

[0004] However, this requires specialized technicians to complete the test through sampling or specialized instruments and equipment. The subsequent testing process mostly relies on laboratory analysis. It often takes a long time from sample transportation to results, resulting in low efficiency of drug detection. It is difficult to meet the needs of rapid screening of a large number of people in some scenarios where rapid test results are required (such as temporary road inspections, surprise inspections of entertainment venues, etc.), which may give drug users the opportunity to evade detection and continue to endanger society. Summary of the invention

[0005] The present application provides a multi-spectral fusion digital drug detection method, device, medium and program product for non-invasively and rapidly detecting whether drug components exist in human skin, thereby overcoming the low efficiency problem of drug detection in the prior art.

[0006] In a first aspect, the present application provides a multi-spectral fusion digital drug detection method, which is applied to a spectrometer, and the method includes: after receiving a detection start instruction, emitting light in a set wavelength range to detect the target human skin according to pre-stored parameter settings; determining the reflection spectrum data of the target human skin according to the reflection of the detected light after a set time; determining the type of elements contained in the target human skin according to the characteristic wavelength on the reflection spectrum data; determining the content of various elements in the target human skin according to the attenuation degree of light intensity at each characteristic wavelength in the reflection spectrum data; judging whether the type of element and the content of the element match a preset drug element feature library, which pre-stores element composition characteristics corresponding to various drugs; if they match, determining that drug elements exist in the target human skin; after determining the type of drug according to the drug element, issuing a drug detection alarm to a display end connected to the communication, and the drug detection alarm includes the type of drug.

[0007] By adopting the above technical solutions, this multi-spectral fusion detection method has high specificity and sensitivity, and can accurately identify drug-related elements in complex human skin components to reduce misjudgment. Non-invasive detection avoids harm to the human body, and rapid detection can complete a large amount of screening work in a short period of time, greatly improving the efficiency and accuracy of drug detection, and effectively assisting law enforcement agencies in combating drug crimes and maintaining social order.

[0008] In combination with some embodiments of the first aspect, in some embodiments, before the step of determining the reflectance spectral data of the target human skin according to the reflection of the detected light after a set period of time, it also includes: sending detection point information to the display end of the communication connection, the detection point information includes a color-changeable detection sequence icon and a detection point schematic diagram, the detection sequence icon is used to change the detection sequence icon corresponding to the current detection point into a preset color when the user completes the detection of the current detection point; the detection point schematic diagram is used in matching with the detection sequence icon.

[0009] By adopting the above technical solution, the detection point information is sent out before the reflectance spectrum data of the target human skin is determined after the set time, and the detection sequence icon can change color and match the detection point diagram. This makes it convenient for the test personnel to clearly know the detection sequence and points, avoid omissions or confusion in detection, improve the standardization and orderliness of the detection process, ensure the accuracy and completeness of the detection data, make the entire detection process more systematic, improve detection efficiency and reduce the adverse effects of human errors on the detection results.

[0010] In combination with some embodiments of the first aspect, in some embodiments, after receiving a drug use time detection instruction, the target human skin is regularly inspected, and before the step of obtaining reflectance spectrum data at multiple time points, it also includes: sending a gender confirmation prompt message to a display end connected to the communication; receiving gender confirmation feedback information sent by the display end, and controlling the corresponding gender icon in the gender confirmation prompt message to be displayed in a bright color.

[0011] By adopting the above-mentioned technical solution, it is helpful to accurately distinguish the test data of individuals of different genders, because different genders may have differences in drug metabolism and other aspects. The data can be analyzed and processed in a targeted manner to provide more accurate basic data for subsequent judgment of drug element characteristics, determination of drug types, etc., so that the test results are more in line with the actual situation of the individual and the accuracy and reliability of the test are improved.

[0012] In combination with some embodiments of the first aspect, in some embodiments, after the step of determining whether the type of element and the content of the element match the preset drug element characteristic library, it also includes: if there is no match, the test result is determined to be negative, and the preset indicator light is controlled to display green; if there is a match, the test result is determined to be positive, the preset indicator light is controlled to display red, and the name of the drug is determined and then displayed.

[0013] By adopting the above technical solution, the intuitive indicator light display allows testers to quickly know the test results without the need for complex judgment. Green indicates negative and can be quickly ruled out, red indicates positive and displays the name of the drug to lock the target in time, saving time and energy. It greatly improves the detection efficiency in large-scale detection or emergency detection scenarios, and the clear result display can avoid misjudgment and enhance the credibility of the test results.

[0014] In combination with some embodiments of the first aspect, in some embodiments, after determining the type of drug based on the drug element, after the step of issuing a drug detection alarm to a communication-connected display terminal, it also includes: after receiving a drug intake time detection instruction, regularly detecting the target human skin to obtain reflectance spectrum data at multiple time points; determining the drug elements in the target human skin at corresponding time points based on the reflectance spectrum data; analyzing the drug elements at different time points to determine the changing pattern of the drug element composition in the target human skin; determining drug absorption history information based on known drug metabolism cycle parameters and the changing pattern; and sending the drug absorption history information to the display terminal for display.

[0015] By adopting the above technical solution, we can deeply understand the metabolic process of drugs in human skin, determine and display the historical information of drug absorption based on the drug metabolic cycle parameters. It is helpful to understand the drug use frequency and drug use changes of drug addicts, and provide more comprehensive and in-depth information for drug control, such as judging the degree of drug addiction, formulating personalized drug rehabilitation programs, etc., to improve the accuracy and effectiveness of drug control.

[0016] In combination with some embodiments of the first aspect, in some embodiments, after the step of sending the drug absorption history information to the display end for display, it also includes: uploading the detected drug type, drug element content and corresponding detection time to a cloud database, the cloud database is used to store a drug detection result table corresponding to the unique identification of multiple detection objects; when it is determined to update the drug detection result table of the target person, receiving the unique identification of the target person sent by the identity information collection device; and updating the new detection result to the drug detection result table corresponding to the unique identification in the cloud database.

[0017] By adopting the above technical solutions, it is convenient to centrally manage and store a large amount of test data, and to retrieve and view the historical test results of different test objects at any time, so as to achieve long-term preservation and traceability of data. When multiple departments collaborate on drug control, data can be shared quickly to improve the efficiency of information transmission, provide strong data support for cross-regional and cross-departmental joint drug control operations, and make the overall planning and decision-making of drug control work more scientific and reasonable.

[0018] In combination with some embodiments of the first aspect, in some embodiments, after receiving the detection start instruction, after the step of emitting light in a set wavelength range to detect the target human skin according to the pre-stored parameter settings, it also includes: emitting light in a preset wavelength range through the first optical path in the preset dual optical path design to irradiate the target human skin, and determining a first light intensity change time series after passing through the target human skin; determining a second light intensity change time series of light emitted by the light source through the second optical path; comparing the first light intensity change time series with the second light intensity change time series to determine whether the light source energy fluctuates; if fluctuations occur, extracting characteristic parameters of the light source energy fluctuation through the second light intensity change time series; after constructing a light source energy fluctuation determination model in combination with the characteristic parameters, compensating the first light intensity change time series according to the light source energy fluctuation determination model to obtain real reflection spectrum data corresponding to the target human skin.

[0019] By adopting the above technical solution, the dual optical path design can monitor the status of the light source in real time, accurately judge the energy fluctuation by comparing the time series of light intensity changes, and extract characteristic parameters to build a model to effectively eliminate the interference of light source fluctuations on the detection data, ensuring that the acquired reflection spectrum data is true and reliable, thereby improving the accuracy of subsequent detection and analysis such as drug element type judgment and content determination based on spectral data, and ensuring the quality of the detection results.

[0020] In a second aspect, the present application provides a spectrometer, comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the spectrometer to perform the method described in the first aspect and any possible implementation of the first aspect.

[0021] In a third aspect, the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a spectrometer, enable the spectrometer to perform the method described in the first aspect and any possible implementation of the first aspect.

[0022] In a fourth aspect, the present application provides a computer program product. When the computer program product is run on a spectrometer, the spectrometer executes the method described in the first aspect and any possible implementation manner of the first aspect.

[0023] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. Based on the spectrometer, the set wavelength of light is emitted according to the pre-stored parameters to detect the target human skin, the light reflection is measured to obtain the reflection spectrum data, and the type and content of the element are determined according to the characteristic wavelength and the degree of light intensity attenuation, and the multi-spectral fusion detection technology is matched with the drug element feature library. Therefore, the technical problem that the detection process in the existing technology is easy to cause harm to the human body and is inefficient is effectively solved, thereby realizing the accurate identification of drug elements in complex human skin, reducing misjudgment, realizing non-invasive detection and quickly completing a large amount of screening work, improving the efficiency and accuracy of drug detection, and effectively assisting law enforcement agencies in combating drug crimes and maintaining social order.

[0024] 2. Due to the technical means of sending out the detection point information before the detection, matching the detection sequence icon with the detection point schematic diagram, and the detection icon being able to change color, the technical problems of easy confusion in the detection process and easy omission of detection points in the existing technology are effectively solved, thereby achieving the technical effect of improving the standardization and orderliness of the detection process, ensuring the accuracy and completeness of the detection data, improving the detection efficiency and reducing the adverse effects of human errors on the detection results.

[0025] 3. Due to the technical means of uploading the detection information to the cloud database and updating the target person's drug detection result table, the technical problem of the existing technology that the detection data is difficult to centrally manage, store and share is effectively solved, thereby facilitating long-term data preservation and traceability, improving the efficiency of information transmission during multi-department collaboration in drug control, and making the overall planning and decision-making of drug control work more scientific and reasonable. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a flow chart of a digital drug detection method with multi-spectral fusion in an embodiment of the present application; Figure 2 This is another flowchart of the digital drug enforcement method of multi-spectral fusion in the embodiment of the present application; Figure 3 It is a schematic diagram of a physical device structure of a spectrometer in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.

[0028] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0029] This application mainly uses atomic reflection spectroscopy to determine the elements. The specific principles include: atoms are composed of atomic nuclei and extranuclear electrons, and the extranuclear electrons are in different energy levels, similarly distributed on energy level ladders at different heights, and the energy levels are quantized, with specific and discrete energy values. Taking hydrogen atoms as an example, their extranuclear electrons have a ground state (lowest energy and stable) and multiple excited states (energy higher than the ground state), and there is a certain energy difference between different energy levels. When a beam of light is irradiated on an atom (or ion), the electrons in the atom interact with the photons, and the electrons at a specific energy level will reflect photons of specific energy, and this process follows the law of conservation of energy. Because atoms of different elements have different structural characteristics such as nuclear charge number and electronic configuration, the energy level distribution and the energy difference between energy levels are also different, which makes the photon energy (i.e., the wavelength of light) reflected by them element-specific, so that the reflection spectrum produced has a unique mark of the element, that is, a characteristic spectrum. In the process of atomic reflection spectroscopy analysis, a spectrometer is usually used to obtain the reflection spectrum. The spectrometer can split the composite light emitted by the light source, arrange it into a spectrum in order of wavelength, and detect the reflection of light at different wavelengths. When analyzing a tissue containing a certain element, the atoms will reflect the energy of light of a specific wavelength, and a corresponding reflection peak will appear on the reflection spectrum detected by the spectrometer. The wavelength corresponding to the reflection peak is the characteristic wavelength of this element. For example, when the outer electrons of the atoms of the sodium element reflect light during transitions between specific energy levels, characteristic reflection peaks will appear near 589.0nm and 589.6nm. These two wavelengths are the characteristic wavelengths of the sodium element in the atomic reflection spectrum; for example, the calcium element will have a characteristic reflection wavelength region corresponding to its specific electronic energy level transition at around 422.7nm. Because each element has a unique atomic structure, its characteristic wavelength combination is also unique. By observing the characteristic wavelengths that appear on the reflection spectrum, it is possible to determine which element is present in the sample and achieve qualitative analysis of the element type.

[0030] For ease of understanding, the following describes the process of the method provided by this implementation in combination with the above content. Figure 1 , which is a flow chart of the digital drug enforcement method with multi-spectral fusion in the embodiment of the present application.

[0031] S101, after receiving the start detection instruction, emitting light of a set wavelength range to detect the target human skin according to the pre-stored parameter settings; The spectrometer first receives a command to start detection. This command can be triggered in a variety of ways, such as the operator clicking the corresponding detection button on the spectrometer, or receiving a detection command signal from an external system through integration with other systems. A series of optimized parameter settings are pre-stored in the spectrometer. These parameters are determined based on in-depth research on the spectral characteristics of various drug elements and the absorption and scattering characteristics of human skin to light. Specifically, the pre-stored parameters include but are not limited to: Wavelength range: Select one or more suitable wavelength ranges based on the unique absorption characteristics of different drug elements in a specific wavelength range. For example, some drugs may have obvious absorption peaks in a specific ultraviolet band or visible light band. By setting the corresponding wavelength range, the pertinence and accuracy of the detection can be improved. Light intensity: The setting of light intensity needs to take into account both ensuring sufficient light signals for detection and not causing damage to human skin. Appropriate light intensity can ensure the sensitivity and reliability of detection. Light exposure time: Determine the appropriate light exposure time to ensure that the target human skin can fully absorb light and produce detectable light reflection signals.

[0032] The spectrometer emits light of a set wavelength range through its internal light source system according to these pre-stored parameter settings. The light source system can use a variety of light sources, such as deuterium lamps, tungsten lamps, light-emitting diodes, etc. The specific choice depends on the required wavelength range and detection requirements. In order to ensure the uniformity and stability of the illumination, the spectrometer may also be equipped with an optical system, such as lenses, reflectors, optical fibers, etc., to collimate, focus and transmit the light emitted by the light source so that it can accurately irradiate the target human skin.

[0033] In some embodiments, the spectrometer can adopt a preset dual-light path design to ensure the accuracy of the detection data. First, light of a preset wavelength range is emitted through the first light path to irradiate the target human skin. At the same time, the first light intensity change time series after passing through the target human skin is determined. This time series records the change of the intensity of the light over time when it passes through the target human skin. At the same time, the second light intensity change time series of the light emitted by the light source is determined through the second light path. This sequence reflects the change of the intensity of the light emitted by the light source itself over time. Then, the first light intensity change time series and the second light intensity change time series are compared. If there is a difference between the two, it can be judged that the energy of the light source has fluctuated. When it is judged that the energy of the light source has fluctuated, the characteristic parameters of the energy fluctuation of the light source are extracted through the second light intensity change time series. These characteristic parameters can describe the specific situation of the energy fluctuation of the light source, such as the amplitude and frequency of the fluctuation. Then, a light source energy fluctuation determination model is constructed in combination with these characteristic parameters. This model can accurately reflect the law of light source energy fluctuation.

[0034] Finally, the first light intensity change time series is compensated according to the constructed light source energy fluctuation determination model. Through compensation, the influence of light source energy fluctuation on the detection data can be eliminated, thereby obtaining the real reflection spectrum data corresponding to the target human skin. This can effectively ensure that the acquired reflection spectrum data is authentic and reliable, thereby improving the accuracy of subsequent detection and analysis such as drug element type judgment and content determination based on spectral data, and ensuring the quality of the detection results.

[0035] S102, determining the reflection spectrum data of the target human skin according to the reflection of the detected light after a set time period; After emitting light, the spectrometer begins to detect the reflection of light after passing through the target human skin. This process involves the light detection system of the spectrometer, which can convert the received light signal into an electrical signal and perform amplification, filtering and other processing to improve the quality and stability of the signal. The spectrometer continues to detect the reflection of light within a set time. This time is determined based on pre-stored parameters and experimental experience to ensure that sufficient light reflection information can be obtained. During the detection process, the spectrometer will record the intensity changes of light at different wavelengths. By processing and analyzing the detected light signal, the spectrometer can determine the reflection spectrum data of the target human skin. The reflection spectrum data is a two-dimensional data about wavelength and light reflection intensity, which reflects the absorption characteristics of the target human skin to light at different wavelengths.

[0036] In order to improve the accuracy and reliability of the reflectance spectrum data, the spectrometer may use a variety of technical means, such as: Multiple measurement averaging: multiple measurements are taken on the same target human skin, and the measurement results are averaged to reduce the impact of random errors. Background subtraction: the intensity of the background light is measured and subtracted from the detected light signal to eliminate the interference of factors such as ambient light on the measurement results. Spectral correction: the spectral response of the spectrometer is corrected to ensure that the measured reflectance spectrum data can accurately reflect the actual reflectance characteristics of the target human skin.

[0037] Machine learning algorithms can also be introduced to process and analyze reflectance spectral data. By learning and training the reflectance spectral data of a large number of known drug samples and normal human skin samples, a model that can automatically identify drug elements is established. Specifically, it is necessary to collect a large number of reflectance spectral data of known drug samples and normal human skin samples as training data sets in advance. These data should cover various possible situations and changes to ensure that the model has wide applicability and accuracy. Then select a suitable machine learning algorithm to train the training data set. During the training process, the training data set is input into the selected machine learning model. The model will learn and adjust parameters according to the characteristics and labels of the input data (i.e., whether it contains drug elements and the type of drugs) to minimize the prediction error. Through continuous iterative training, the model is gradually optimized and can accurately identify the characteristics of drug elements in reflectance spectral data. In actual detection, the reflectance spectral data of the target human skin obtained is input into the model, and the model can quickly and accurately determine whether there are drug elements and the type of drugs in the target human skin. This machine learning-based method can greatly improve the efficiency and accuracy of detection and reduce the influence of human factors.

[0038] In some embodiments, before this step, the function of the spectrometer sending detection point information to the display terminal connected to it for communication may also be included. This detection point information is mainly composed of two parts: a detection sequence icon with color change and a detection point schematic diagram. Among them, the detection sequence icon has a special design, and its main function is to guide the detection personnel to perform the detection operation in the set order. When the detection personnel completes the detection work of the current detection point, the detection sequence icon corresponding to the detection point will automatically change to a preset color. For example, all detection sequence icons may be gray in the initial state. When a detection point is detected, its corresponding icon becomes green or red, which is not set here, indicating that the detection point has been successfully detected. This color change design allows the detection personnel to intuitively and clearly know which detection points have been detected and which have not yet been carried out, thereby effectively avoiding the occurrence of detection omissions or confusion.

[0039] At the same time, the detection point schematic diagram is used in conjunction with the detection sequence icon. The detection point schematic diagram can provide the inspectors with detailed information about the specific location and related features of each detection point, so that the inspectors can find the parts that need to be detected more accurately. Correspondingly, after the staff has detected a position, the icon of the position point corresponding to the detection point schematic diagram can be displayed in red or other set colors, and the undetected position can be represented in gray or other set colors on the detection point schematic diagram. Through the coordination of the detection sequence icon and the detection point schematic diagram, the inspectors can perform the detection operations in a more standardized and orderly manner, thereby ensuring the smooth progress of the detection process. This design greatly improves the standardization and orderliness of the detection process, ensures the accuracy and completeness of the detection data, makes the entire detection process more systematic, improves the detection efficiency and reduces the adverse effects that human errors may have on the detection results.

[0040] In some embodiments, the spectrometer will send a gender confirmation prompt message to the display terminal connected to it. This prompt message is intended to let the tester clearly know that the gender of the test object needs to be confirmed. When the display terminal receives this prompt message, the relevant personnel will send gender confirmation feedback information to the spectrometer through the display terminal according to the actual gender of the test object. After receiving the gender confirmation feedback information sent by the display terminal, the spectrometer will control the corresponding gender icon in the gender confirmation prompt message to be displayed in bright colors. For example, if the test object is male, then after receiving the feedback information from the male, the gender icon representing the male will be displayed in bright colors; if the staff determines that the test object is female, the gender icon representing the female can be selected to be displayed in bright colors. Or when the staff does not select the gender, it is displayed in gray, and the control corresponding to the gender selected by the staff is represented by a bright color. In this way, the gender information of the test object can be clearly and intuitively displayed, which is helpful for the subsequent analysis and processing of the test data in a targeted manner according to the possible differences in drug metabolism and other aspects between different genders, so as to provide more accurate basic data for judging the characteristics of drug elements and determining the types of drugs, so that the test results are more in line with the actual situation of the individual, and the accuracy and reliability of the test are improved.

[0041] S103, determining the type of elements contained in the target human skin according to the characteristic wavelength in the reflection spectrum data; After obtaining the reflectance spectrum data of the target human skin, the spectrometer needs to determine the type of elements contained in the target human skin based on the characteristic wavelengths on the reflectance spectrum data. As mentioned above, different elements have unique characteristic wavelengths. The spectrometer analyzes the reflectance spectrum data to find the characteristic wavelengths. Specifically, the following methods can be used: Peak detection: Detect the peaks in the reflectance spectrum data. The wavelengths corresponding to these peaks may be the characteristic wavelengths of the elements. By setting certain thresholds and algorithms, the peaks can be accurately identified. Spectral matching: Match the acquired reflectance spectrum data with the standard spectrum of known elements. Indicators such as correlation coefficient and mean square error can be used to measure the similarity between the two, so as to determine the types of elements that may be contained in the target human skin. Feature extraction: Use mathematical methods to extract features from the reflectance spectrum data, extract key information that can represent the characteristics of the elements, and then determine the type of elements based on these characteristic information.

[0042] When determining the type of element, it is necessary to take into account possible interference factors, such as noise, reflection from other substances, etc. The spectrometer can improve the accuracy and reliability of element type identification by optimizing algorithms and combining multiple analysis methods.

[0043] S104, determining the content of various elements in the target human skin according to the attenuation degree of the light intensity at each characteristic wavelength in the reflection spectrum data; After determining the types of elements contained in the target human skin, the spectrometer needs to further determine the content of various elements. This step is based on the basic principle of light reflection, that is, the element content is proportional to the attenuation of light intensity. The spectrometer first accurately measures the light intensity at each characteristic wavelength in the reflection spectrum data. By comparing it with the reference light intensity when there is no target human skin, the attenuation of the light intensity is calculated. In order to improve the accuracy of the measurement, the method of taking the average value of multiple measurements may be used to reduce the influence of random errors.

[0044] Then, according to the pre-established quantitative relationship model between element content and light intensity attenuation, the measured light intensity attenuation is converted into element content. This quantitative relationship model is obtained through a large number of experiments and data analysis, which takes into account the influence of various factors on light reflection, such as the type of element, concentration, physical properties of the sample, etc. In practical applications, some complex situations may be encountered, such as mutual interference between different elements, sample inhomogeneity, etc. In order to solve these problems, the spectrometer can use the following technical means: Multiple linear regression analysis: When there are multiple elements interfering with each other, a mathematical model containing multiple variables (the degree of light intensity attenuation at the characteristic wavelength) can be established using the multiple linear regression analysis method to accurately determine the content of each element. Chemometric methods: Such as principal component analysis, partial least squares method, etc., these methods can reduce the dimension and extract information from complex spectral data, thereby improving the accuracy and reliability of element content determination.

[0045] It is also possible to develop an element content analysis algorithm based on artificial intelligence, which uses deep learning technology to learn and train a large amount of reflectance spectrum data and the corresponding element content, automatically extract characteristic information from the spectrum data, and establish an accurate element content prediction model. Specifically, a large amount of reflectance spectrum data and the corresponding accurate element content information are collected in advance as training data. These data should be diverse and representative, covering different sample types and element content ranges. Then select a suitable deep learning architecture, and during the training process, use the reflectance spectrum data as input and the element content as output to train the deep learning model. The model continuously adjusts the network parameters through the back propagation algorithm to minimize the error between the predicted element content and the actual element content. During the training process, some technical means can also be used to improve the performance of the model. After sufficient training, the model can automatically extract characteristic information from the spectrum data and establish an accurate element content prediction model. When faced with new reflectance spectrum data, it is input into the trained model, and the model can quickly and accurately predict the corresponding element content. Compared with traditional quantitative analysis methods, this algorithm based on artificial intelligence has higher accuracy and adaptability, and can better cope with complex samples and detection environments.

[0046] S105, determining whether the type of the element and the content of the element match a preset drug element characteristic library, wherein the drug element characteristic library pre-stores element composition characteristics corresponding to various drugs; The spectrometer compares the element type determined in step S103 and the element content determined in step S104 with the preset drug element feature library. The drug element feature library is a database containing various drugs and their corresponding element composition characteristics. These data are obtained through the analysis and research of a large number of drug samples. In the comparison process, the spectrometer first checks whether the element type matches the element composition of a certain drug in the drug element feature library. If the element type is completely matched, it is further compared whether the element content is within the characteristic content range of the drug. This characteristic content range is determined based on the statistical analysis of different drug samples, taking into account the influence of factors such as the purity and source of the drug. In order to improve the accuracy and reliability of the match, the spectrometer can adopt the following methods: Fuzzy matching algorithm: Since there may be certain errors in the actual detection, the use of fuzzy matching algorithm can allow the element type and content to deviate within a certain range, thereby improving the success rate of matching; Weight allocation: For different elements, different weights can be assigned according to their importance in the drug. When matching, the weights and actual measured values ​​of each element are comprehensively considered to more accurately determine whether it matches.

[0047] Blockchain technology can also be introduced to manage and update the drug element feature library. The distributed ledger characteristics of blockchain can ensure the security, immutability and traceability of data. Different testing agencies and research units can jointly participate in the maintenance and update of the drug element feature library, and add newly discovered drug element features to the database in a timely manner, while ensuring the consistency and accuracy of the data. This can improve the timeliness and comprehensiveness of drug testing and better respond to the ever-changing drug situation.

[0048] In some embodiments, after the spectrometer detects the target human skin, it will compare the detected element type and element content with the preset drug element feature library. If the comparison result does not match, it means that the element composition and content range that match any drug in the drug element feature library have not been detected in the target human skin. At this time, the spectrometer will determine that the test result is negative. In order to allow the tester to quickly and intuitively understand this result, the spectrometer will control the preset indicator light to display green. Green is usually regarded as a symbol of safety and negative. When the tester sees the green indicator light on, he can quickly know that the test result is negative, that is, no drugs are detected. If the comparison result matches, it means that the type and content of elements that match a drug in the drug element feature library have been detected in the target human skin. The spectrometer will determine that the test result is positive. At this time, the spectrometer will not only control the preset indicator light to display red, which generally represents danger and positive, to attract the attention of the tester, but also determine the specific drug name and display it. In this way, testers can promptly and clearly know that the test result is positive and what specific drug it is, so they can quickly lock on to the target, saving time and energy. In large-scale testing or emergency testing scenarios, the detection efficiency is greatly improved, and the clear result display can avoid misjudgment and enhance the credibility of the test results.

[0049] S106: If they match, it is determined that drug elements exist in the target human skin; If the element type and element content match the preset drug element feature library, the spectrometer can determine the presence of drug elements in the target human skin, which is a key judgment step and provides a basis for subsequent drug type determination and detection alarms. After determining the presence of drug elements, the spectrometer can record relevant detection information, such as detection time, detection site, element type and content, etc. This information can be used for subsequent analysis and research, and can also be used as evidence for law enforcement agencies to combat drug crimes. In order to ensure the reliability of the test results, the spectrometer can perform some verification operations, such as repeated testing, comparison with other detection methods, etc. If the results of multiple tests are consistent and consistent with the results of other reliable detection methods, it can be more certain that drug elements exist in the target human skin.

[0050] S107. After the drug type is determined based on the drug element, a drug detection alarm is sent to a display terminal connected to the communication link, and the drug detection alarm includes the drug type.

[0051] Once the presence of drug elements in the target human skin is determined, the spectrometer needs to further determine the type of drug based on the characteristics of the drug elements. This can be achieved by finding the drug in the drug element feature library that best matches the detected elemental composition. After determining the type of drug, the spectrometer sends a drug detection alarm to the display terminal that is connected to it for communication. The display terminal can be a dedicated display screen or a display interface integrated with the spectrometer. The drug detection alarm includes important information such as the type of drug so that the tester can understand the test results in a timely manner. In order to improve the visibility and recognition of the alarm, the alarm information can be presented in a variety of forms, such as text display, sound prompts, graphic logos, etc.

[0052] By adopting the multi-spectral fusion digital drug control method in the embodiment of the present application, a spectrometer is used to emit light of a specific wavelength according to pre-stored parameters to detect the target human skin, and then the light reflection situation is measured to obtain the reflection spectrum data. The type and content of the element are determined according to the characteristic wavelength and the degree of light intensity attenuation and matched with the drug element characteristic library. It can accurately identify drug-related elements in complex human skin components, realize non-invasive detection and quickly complete a large amount of screening work, improve the efficiency and accuracy of drug control detection, and effectively assist law enforcement agencies in combating drug crimes and maintaining social order.

[0053] After combining the above embodiments, the method provided by this embodiment is further described in more detail below. Figure 2 , is another flow chart of the digital drug enforcement method with multi-spectral fusion in the embodiment of the present application.

[0054] S201, after receiving the drug taking time detection instruction, regularly detect the target human skin to obtain the reflection spectrum data at multiple time points; When the spectrometer receives the drug taking time detection instruction, it will regularly detect the target human skin at a preset time interval. This time interval can be set according to specific needs and the metabolic characteristics of drugs. During each detection, the spectrometer will repeat the previous detection process, that is, according to the pre-stored parameter settings, it will emit light in a set wavelength range to detect the target human skin, and then determine the reflectance spectrum data of the target human skin according to the reflection of the detected light after a set time. In order to ensure the accuracy and reliability of the detection data, the spectrometer can perform some calibration operations before each detection, such as checking the stability of the light source, calibrating the light detection system, etc. In order to improve the detection efficiency, the spectrometer can use multi-channel detection technology to detect multiple target human skins at the same time. This can greatly shorten the detection time and increase the detection throughput.

[0055] S202, determining the drug elements in the target human skin at a corresponding time point according to the reflection spectrum data; After obtaining the reflectance spectrum data at each time point, the spectrometer needs to determine whether there are drug elements in the target human skin and which drug elements they are. First, the spectrometer uses a method similar to step S103 to analyze the reflectance spectrum data. The characteristic wavelengths in the reflectance spectrum data are identified through technical means such as peak detection, spectrum matching and feature extraction. Then, these characteristic wavelengths are compared with the characteristic wavelengths of known drug elements to determine the drug elements, which will not be repeated here.

[0056] S203, analyzing the drug elements at different time points to determine the changing pattern of the drug element composition in the target human skin; After the spectrometer obtains the drug element information at multiple time points, it needs to conduct an in-depth analysis of these data to determine the changing pattern of the drug element composition in the target human skin. First, the spectrometer can use statistical analysis methods to calculate the mean value, standard deviation, coefficient of variation and other statistics of each drug element at different time points. These statistics can reflect the concentration trend and dispersion of the drug element content, helping us to initially understand the changes in the drug element composition. Secondly, the spectrometer can draw a curve of the drug element content over time. By observing the shape, slope and fluctuation of the curve, we can more intuitively judge the changing trend of the drug element composition. For example, if the curve shows an upward trend, it means that the drug element content is gradually increasing; if the curve shows a downward trend, it means that the drug element content is gradually decreasing; if the curve fluctuates greatly, it means that the drug element content is unstable and may be affected by multiple factors.

[0057] In order to analyze the changing rules more accurately, the spectrometer can also use time series analysis methods. Time series analysis is a dynamic data analysis method that can reveal the inherent rules of data changes over time. The spectrometer can perform stationarity tests, autocorrelation analysis, and partial autocorrelation analysis on the time series data of drug element content to determine the stationarity and correlation structure of the data. Then, according to the analysis results, a suitable time series model is selected to model and predict the changing rules of drug element components.

[0058] S204, determining drug absorption history information based on known drug metabolism cycle parameters and the change rule; After analyzing the changing rules of drug elemental composition, the spectrometer needs to combine the known drug metabolism cycle parameters to determine the drug absorption history information in the target human skin. Drug metabolism cycle parameters refer to the length of time for drug metabolism in the human body and the changing rules during the metabolism process. Different drugs have different metabolic cycle parameters, which are usually obtained through a large number of experiments and studies. The spectrometer can compare and match the changing rules of drug elemental composition obtained with the known drug metabolism cycle parameters, so as to infer the drug user's drug use time, drug use frequency and drug use amount. For example, if the drug element content gradually increases over a period of time and then tends to stabilize, combined with the drug metabolism cycle parameters, we can infer that the drug user started to use drugs during this period and the drug use frequency gradually stabilized. If the drug element content fluctuates periodically, we can infer whether the drug user's drug use behavior is regular based on the period and amplitude of the fluctuation. In order to improve the accuracy of determining the drug absorption history information, the spectrometer can use a multi-factor analysis method. In addition to considering the drug metabolism cycle parameters, other factors such as the drug user's age, gender, weight, health status, eating habits, etc. can also be combined to conduct a comprehensive analysis of the drug absorption history information. These factors may affect the rate and reflexes of drug metabolism in the human body and therefore need to be considered when determining drug absorption history information.

[0059] It is also possible to establish a drug absorption history information prediction model based on big data and machine learning in advance. The model can collect and integrate relevant data from multiple channels, such as personal information of drug users, drug testing data, medical records, etc. Then, the machine learning algorithm is used to train and learn these data to establish a complex relationship model between drug absorption history information and various factors. In practical applications, the spectrometer can input the changing patterns of the detected drug element composition and the data of related factors into the model, and the model can quickly and accurately predict the drug absorption history information of drug users. This method based on big data and machine learning can make full use of various information resources to improve the accuracy and reliability of predictions.

[0060] S205, sending the drug absorption history information to a display terminal for display; After the spectrometer determines the drug absorption history information, it needs to send this information to the display end for display so that relevant personnel can understand and analyze it in time. The spectrometer can be connected to the display end through wired or wireless communication. Before sending the data, the spectrometer needs to encode and encrypt the drug absorption history information to ensure the security and integrity of the data. Then, the encoded and encrypted data is sent to the display end.

[0061] S206, uploading the detected drug type, drug element content and corresponding detection time to a cloud database, where the cloud database is used to store a drug detection result table corresponding to the unique identifiers of multiple detection objects; After the spectrometer completes the detection of the target human skin and determines the type of drugs, the content of drug elements and the detection time, it needs to upload this information to the cloud database. First, the spectrometer establishes a connection with the cloud database. This can be done through the network communication protocol. The spectrometer packages the detected data to form a data packet, which contains information such as the type of drugs, the content of drug elements and the detection time. Then, the spectrometer sends the data packet to the cloud database through the network. After receiving the data packet, the cloud database unpacks and parses the data packet, extracts information such as the type of drugs, the content of drug elements and the detection time, and stores this information in the drug detection result table of the corresponding target person.

[0062] S207, when it is determined to update the drug test result table of the target person, receiving the unique identifier of the target person sent by the identity information collection device; When the drug test result table of the target person needs to be updated, the spectrometer needs to receive the unique identifier of the target person from the identity information collection device. The identity information collection device can be a variety of devices that can collect personal identity information, such as ID card readers, fingerprint readers, face recognition devices, etc. After these devices collect the identity information of the target person, they convert it into a unique identifier and send it to the spectrometer through the network. The spectrometer receives the unique identifier sent by the identity information collection device through the network interface. In order to ensure the accuracy and completeness of the received unique identifier, the spectrometer can verify and check it. For example, check whether the format of the unique identifier is correct, whether it matches the previously stored identity information of the target person, etc. If the unique identifier is verified, the spectrometer will use it as the basis for updating the drug test result table.

[0063] S208. Update the new test results to the drug test result table corresponding to the unique identifier in the cloud database.

[0064] After receiving the unique identification of the target person, the spectrometer updates the new test results to the drug test result table corresponding to the unique identification in the cloud database. The spectrometer first searches the cloud database for the drug test result table corresponding to the unique identification. Then, the new test results are inserted into the table, or the original data in the table is updated as needed. After the update is completed, the cloud database will reorganize and optimize the drug test result table to improve the efficiency of data query and retrieval.

[0065] In the embodiment of the present application, since a digital drug control method with multi-spectral fusion is adopted, the reflectance spectrum data of multiple time points are obtained by regularly detecting the target human skin, and then the changing pattern of the drug element composition is analyzed and the historical information of drug absorption is determined, and the relevant detection information is uploaded to the cloud database for management and updating. Therefore, the problems existing in the existing drug control detection technology that the drug use situation cannot be dynamically monitored and the detection information is difficult to effectively manage and share are effectively solved, thereby achieving a comprehensive understanding of the drug use behavior of drug users, providing more accurate support for drug control work, and improving the efficiency of multi-department collaborative drug control.

[0066] The spectrometer in the embodiment of the present invention is described below from the perspective of hardware processing. Figure 3 , is a schematic diagram of a physical device structure of a spectrometer in an embodiment of the present application.

[0067] It should be noted that Figure 3 The structure of the spectrometer shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0068] like Figure 3 As shown, the spectrometer includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part 308 to the random access memory (RAM) 303, such as executing the method described in the above embodiment. In the RAM 303, various programs and data required for system operation are also stored. The CPU 301, the ROM 302 and the RAM 303 are connected to each other through the bus 304. The input / output (I / O) interface 305 is also connected to the bus 304.

[0069] The following components are connected to the I / O interface 305: an input section 306 including an audio input device, a button switch, etc.; an output section 307 including a liquid crystal display (LCD) and an audio output device, an indicator light, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.

[0070] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 309, and / or installed from a removable medium 311. When the computer program is executed by a central processing unit (CPU) 301, various functions defined in the present invention are performed.

[0071] It should be noted that specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.

[0072] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. Each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings.

[0073] Specifically, the spectrometer of this embodiment includes a processor and a memory. The memory stores a computer program. When the computer program is executed by the processor, the digital drug detection method of multi-spectral fusion provided in the above embodiment is implemented.

[0074] As another aspect, the present invention further provides a computer-readable storage medium, which may be included in the spectrometer described in the above embodiment; or may exist independently without being assembled into the spectrometer. The above storage medium carries one or more computer programs, and when the above one or more computer programs are executed by a processor of the spectrometer, the spectrometer implements the multi-spectral fusion digital drug detection method provided in the above embodiment.

[0075] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0076] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0077] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A digital drug detection method based on multi-spectral fusion, applied to a spectrometer, characterized in that: The method comprises: After receiving the start detection command, the light of the set wavelength range is emitted according to the pre-stored parameter settings to detect the target human skin; After a set time, the reflectance spectrum data of the target human skin is determined according to the reflection of the detected light; Determining the type of elements contained in the target human skin according to the characteristic wavelengths on the reflection spectrum data; Determining the content of various elements in the target human skin according to the attenuation degree of the light intensity at each characteristic wavelength in the reflection spectrum data; Determine whether the element type and the element content match a preset drug element characteristic library, wherein the drug element characteristic library pre-stores element composition characteristics corresponding to various drugs; If they match, it is determined that drug elements exist in the target human skin; After the drug type is determined based on the drug element, a drug detection alarm is sent to a display terminal connected to the communication, and the drug detection alarm includes the drug type.

2. The method according to claim 1, characterized in that Before the step of determining the reflection spectrum data of the target human skin according to the reflection condition of the detected light after the set time, the method further includes: The detection point information is sent to the display terminal of the communication connection, and the detection point information includes a detection sequence icon with changeable colors and a detection point schematic diagram. The detection sequence icon is used to change the detection sequence icon corresponding to the current detection point into a preset color when the user completes the detection of the current detection point; the detection point schematic diagram is used in matching with the detection sequence icon.

3. The method according to claim 1, characterized in that After receiving the drug taking time detection instruction, the target human skin is regularly detected, and before the step of obtaining the reflectance spectrum data at multiple time points, the method further includes: Sending a gender confirmation prompt message to the display terminal of the communication connection; The gender confirmation feedback information sent by the display terminal is received, and the corresponding gender icon in the gender confirmation prompt information is controlled to be displayed in a bright color.

4. The method according to claim 1, characterized in that: After the step of determining whether the element type and the element content match the preset drug element characteristic library, the method further includes: If they do not match, the test result is determined to be negative, and the control preset indicator light displays green; If there is a match, the test result is determined to be positive, the preset indicator light is controlled to display red, and the drug name is displayed after it is determined.

5. The method according to claim 1, characterized in that After determining the type of drug according to the drug element, after the step of sending a drug detection alarm to the display terminal connected in communication, the method further includes: After receiving the drug taking time detection instruction, the target human skin is regularly tested to obtain reflectance spectrum data at multiple time points; Determine the drug elements in the target human skin at a corresponding time point according to the reflectance spectrum data; Analyze the drug elements at different time points to determine the changing pattern of the drug element composition in the target human skin; Determine drug absorption history information based on known drug metabolism cycle parameters and the change rules; The drug absorption history information is sent to a display terminal for display.

6. The method according to claim 5, characterized in that After the step of sending the drug absorption history information to the display terminal for display, the method further includes: Uploading the detected drug types, drug element contents and corresponding detection times to a cloud database, wherein the cloud database is used to store a drug detection result table corresponding to the unique identifiers of multiple detection objects; When it is determined to update the drug test result table of the target person, receiving the unique identifier of the target person sent by the identity information collection device; The new test results are updated to the drug test result table corresponding to the unique identifier in the cloud database.

7. The method according to claim 1, characterized in that After receiving the start detection instruction, after the step of emitting light of a set wavelength range to detect the target human skin according to the pre-stored parameter settings, the method further includes: emitting light of a preset wavelength range through a first light path in a preset dual light path design to illuminate the target human skin, and determining a first light intensity change time sequence after passing through the target human skin; Determine a second light intensity variation time series of the light emitted by the light source through a second light path; Comparing the first light intensity variation time series with the second light intensity variation time series to determine whether light source energy fluctuates; If fluctuation occurs, extracting characteristic parameters of the light source energy fluctuation through the second light intensity variation time series; After constructing a light source energy fluctuation determination model in combination with the characteristic parameters, the first light intensity variation time series is compensated according to the light source energy fluctuation determination model to obtain real reflection spectrum data corresponding to the target human skin.

8. A spectrometer, characterized in that: The spectrometer comprises: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and the one or more processors call the computer instructions so that the spectrometer executes the method as described in any one of claims 1-7.

9. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on a spectrometer, the spectrometer is caused to perform the method according to any one of claims 1 to 7.

10. A computer program product, characterized in that When the computer program product is run on a spectrometer, the spectrometer is caused to perform the method according to any one of claims 1 to 7.