Identification method and device, equipment, storage medium and program product

By correcting the Raman spectrum, the problem of misjudgment caused by differences in spectra measured by different spectrometers is solved and the accuracy of identification is improved.

CN118570436APending Publication Date: 2024-08-30北京鉴知技术有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310215659.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Due to the differences in peak positions or signal strengths of the spectra measured by different spectrometers, the existing Raman spectrum detection methods have large errors in the calculation of correlation coefficients, resulting in misjudgment, making it difficult to accurately identify target objects.

Method used

By obtaining the initial Raman spectrum of the target object, determining the correction coefficient according to the mathematical function, obtaining the target correction matrix, correcting the initial Raman spectrum, obtaining the target Raman spectrum, and using this for identification.

Benefits of technology

The target object is identified through the corrected Raman spectrum, which improves the accuracy of identification and reduces the misjudgment rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570436A
    Figure CN118570436A
Patent Text Reader

Abstract

The invention discloses an identification method and device, equipment, a storage medium and a program product. The method comprises the following steps: acquiring an initial Raman spectrum of a target object; determining a correction coefficient of the initial Raman spectrum according to the mathematical function to obtain a target correction matrix; correcting the initial Raman spectrum based on the target correction matrix to obtain a target Raman spectrum; and identifying the target object according to the target Raman spectrum. Therefore, the initial Raman spectrum of the target object can be corrected first, the target object is recognized through the corrected Raman spectrum, and the recognition accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing, and in particular, relates to an identification method, device, equipment, storage medium and program product. Background Art

[0002] Raman spectroscopy is a molecular vibration spectrum that can reflect the fingerprint characteristics of molecules and can be used to detect substances. Raman spectroscopy detection detects and identifies substances by detecting the Raman spectrum generated by the Raman scattering effect of the object to be tested on the excitation light. Raman spectroscopy detection methods have been widely used in liquid security inspection, jewelry detection, explosive detection, drug detection, pharmaceutical detection, pesticide residue detection and other fields.

[0003] At present, Raman spectroscopy detection usually adopts the spectrum matching method, which usually calculates the correlation coefficient between the spectrum of the unknown object and the standard spectrum (database spectrum) in the full spectrum range or the artificially selected spectrum range. However, the spectra measured by different Raman or infrared spectrometers may differ in terms of peak position or signal intensity, which may cause errors in the calculation of the correlation coefficient and lead to misjudgment. Summary of the invention

[0004] The embodiments of the present application provide an identification method, apparatus, device, storage medium and program product, which can accurately identify a target object.

[0005] In a first aspect, an embodiment of the present application provides an identification method, the method comprising:

[0006] Acquire an initial Raman spectrum of the target object;

[0007] Determine the correction coefficient of the initial Raman spectrum according to a mathematical function to obtain a target correction matrix;

[0008] Correcting the initial Raman spectrum based on the target correction matrix to obtain a target Raman spectrum;

[0009] The target object is identified according to the target Raman spectrum.

[0010] In some embodiments, determining the correction coefficient of the initial Raman spectrum according to a mathematical function to obtain a target correction matrix includes:

[0011] The initial Raman spectrum is processed in sections to obtain M first Raman spectra, where M is an integer greater than 1;

[0012] Determine the correction coefficient matrix corresponding to each of the first Raman spectra based on a mathematical function to obtain M first correction matrices;

[0013] The correcting the initial Raman spectrum based on the target correction matrix to obtain a target Raman spectrum includes:

[0014] Based on a first correction matrix corresponding to the first Raman spectra, each of the first Raman spectra is corrected to obtain M second Raman spectra, and the target Raman spectrum includes the M second Raman spectra.

[0015] In some embodiments, determining the correction coefficient matrix corresponding to each of the first Raman spectra based on a mathematical function to obtain M first correction matrices includes:

[0016] Based on the spectrum matrix of the initial Raman spectrum, a correction coefficient matrix corresponding to each of the first Raman spectra is calculated using a mathematical function to obtain M first correction matrices.

[0017] In some embodiments, identifying the target object according to the target Raman spectrum includes:

[0018] Matching the M second Raman spectra with the standard Raman spectrum respectively to obtain matching results;

[0019] Based on the matching result, the target object is identified.

[0020] In some embodiments, the matching of the M second Raman spectra with the standard Raman spectrum to obtain a matching result includes:

[0021] The standard Raman spectrum is segmented to obtain M third Raman spectra corresponding to the M second Raman spectra one by one;

[0022] For each of the second Raman spectra, calculating a correlation coefficient between the second Raman spectrum and the corresponding third Raman spectrum to obtain M first correlation coefficients;

[0023] The matching result is determined according to the M first correlation coefficients.

[0024] In a second aspect, an embodiment of the present application provides an identification device, the device comprising:

[0025] An acquisition module, used for acquiring an initial Raman spectrum of a target object;

[0026] A calculation module, used for determining the correction coefficient of the initial Raman spectrum according to a mathematical function to obtain a target correction matrix;

[0027] A correction module, used for correcting the initial Raman spectrum based on the target correction matrix to obtain a target Raman spectrum;

[0028] The identification module is used to identify the target object according to the target Raman spectrum.

[0029] In a third aspect, an embodiment of the present application provides an identification device, the device comprising: a processor and a memory storing computer program instructions;

[0030] The above identification method is implemented when the processor executes the computer program instructions.

[0031] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above identification method is implemented.

[0032] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes computer program instructions, and the computer program instructions implement the above identification method when executed by a processor.

[0033] The identification method provided by the present application can obtain the initial Raman spectrum of the target object; determine the correction coefficient of the initial Raman spectrum according to a mathematical function to obtain a target correction matrix; correct the initial Raman spectrum based on the target correction matrix to obtain a target Raman spectrum; and identify the target object according to the target Raman spectrum. In this way, the initial Raman spectrum of the target object can be corrected first, and the target object can be identified by the corrected Raman spectrum, thereby improving the accuracy of identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0035] Figure 1 This is a schematic diagram of a normal registration process provided by an embodiment of the present application;

[0036] Figure 2 is a schematic diagram of correction coefficients provided in an embodiment of the present application;

[0037] Figure 3 is a schematic diagram of the structure of an identification device provided in an embodiment of the present application;

[0038] Figure 4 It is a structural diagram of an identification device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0039] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0040] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0041] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.

[0042] The usual approach to spectral identification is to establish a spectral database (usually pure compounds); collect spectra of unknown substances, compare them with the spectra in the database, calculate the correlation coefficient, and judge the degree of match between the unknown substance and the standard substance (substance in the database) based on the size of the correlation coefficient. The calculation of the correlation coefficient is one of the most important steps in substance identification, and it is also called similarity, matching degree, matching index, etc.

[0043] When analyzing and processing the Raman spectrum, it is necessary to evaluate the Raman spectrum of the substance being tested and the standard spectrum. Commonly used methods include correlation coefficient, HQI, cosine similarity, etc. Since the Raman spectrum of the standard spectrum and the substance being tested are not collected by the same instrument, there is a difference in intensity. Directly measuring the spectrum of the substance being tested and the standard spectrum will result in a low recognition rate.

[0044] At present, the existing spectrum matching method usually calculates the correlation coefficient between the spectrum of the unknown object and the standard spectrum (database spectrum) in the full spectrum range or the artificially selected spectrum range. However, the spectra measured by different Raman or infrared spectrometers will be different in terms of peak position or signal intensity, which will affect the calculation of the correlation coefficient, and sometimes the impact is very large, and serious misjudgment will occur. The spectrum that affects the correct calculation of the correlation coefficient usually has the following characteristics: the spectrum has a serious nonlinear baseline drift; the spectrum has a relatively serious wavelength or wavenumber offset; the peak position of the spectrum is the same, but the intensity change trend is significantly different in different wavelengths or wavenumber ranges (for example, in the low wavenumber and high wavenumber ranges, the standard spectrum signal is high and low, while the unknown spectrum is low and high), etc. Therefore, it is necessary to calibrate the obtained Raman spectrum to reduce errors and improve the recognition rate of the object to be tested.

[0045] In order to solve the problems in the prior art, the embodiments of the present application provide an identification method, device, equipment, storage medium and program product. The identification method provided by the embodiments of the present application is first introduced below.

[0046] Figure 1 A schematic diagram of a flow chart of an identification method provided by an embodiment of the present application is shown. The method comprises the following steps S101 to S104:

[0047] S101, obtaining an initial Raman spectrum of a target object.

[0048] Specifically, the Raman spectrum of the target object is measured to obtain an initial Raman spectrum. The Raman spectra of target objects of different materials have different spectral characteristics, so the target object can be identified by comparing and analyzing the Raman spectra of the target object.

[0049] Optionally, the Raman spectrum of the target object may be measured by a spectrometer, which may be a near-infrared spectrometer, a mid-infrared spectrometer, an ultraviolet spectrometer, or a Raman spectrometer.

[0050] S102, determining the correction coefficient of the initial Raman spectrum according to a mathematical function to obtain a target correction matrix.

[0051] Since the initial Raman spectrum of the target object obtained by different measuring instruments or by different means has different degrees of errors, it is necessary to perform correction processing on the initial Raman spectrum of the target object.

[0052] In the embodiment of the present application, the correction coefficient corresponding to the initial Raman spectrum of the target object can be calculated by a mathematical function, and then the target correction matrix can be obtained according to the correction coefficient.

[0053] S103, correcting the initial Raman spectrum based on the target correction matrix to obtain a target Raman spectrum.

[0054] S104, identifying the target object according to the target Raman spectrum.

[0055] Specifically, the target Raman spectrum may be matched with a standard Raman spectrum in a standard library to identify the target object.

[0056] The identification method provided in the embodiment of the present application can obtain the initial Raman spectrum of the target object; determine the correction coefficient of the initial Raman spectrum according to the mathematical function to obtain the target correction matrix; correct the initial Raman spectrum based on the target correction matrix to obtain the target Raman spectrum; and identify the target object according to the target Raman spectrum. In this way, the initial Raman spectrum of the target object can be corrected first, and the target object can be identified by the corrected Raman spectrum, thereby improving the accuracy of identification.

[0057] In some embodiments, in the above S102, determining the correction coefficient of the initial Raman spectrum according to the mathematical function to obtain the target correction matrix may include the following steps:

[0058] The initial Raman spectrum is segmented to obtain M first Raman spectra, where M is an integer greater than 1;

[0059] Determine the correction coefficient matrix corresponding to each first Raman spectrum based on a mathematical function to obtain M first correction matrices;

[0060] In the above S103, correcting the initial Raman spectrum based on the target correction matrix to obtain the target Raman spectrum may include the following steps:

[0061] Based on a first correction matrix corresponding to the first Raman spectra, each first Raman spectrum is corrected to obtain M second Raman spectra, and the target Raman spectrum includes the M second Raman spectra.

[0062] Among them, the Raman spectrum can be regarded as a set of discrete data points. In the coordinate system, the horizontal coordinate of the data point can be called the wave number, and the vertical coordinate can be called the intensity value. That is, the Raman spectrum includes a series of data, each of which can include a wave number and an intensity value corresponding to the wave number. For example, the Raman spectrum can be expressed as y(x), where x = [x1, x2, ..., x n ] is the Raman spectrum shift sequence, i.e., the wave number, n represents the length of the Raman spectrum shift sequence, y(x i ) means that in x i Raman spectrum signal intensity value of position, i=1,2,...,n.

[0063] Specifically, the initial Raman spectrum is first segmented to obtain M first Raman spectra. For each first Raman spectrum, the displacement sequence corresponding to the first Raman spectrum can be substituted into a mathematical function to obtain a corresponding first correction matrix. By correcting each first Raman spectrum using the first correction matrix corresponding to each first Raman spectrum, M second Raman spectra can be obtained.

[0064] Here, the initial Raman spectrum is segmented, and there may be crossover parts between the obtained M first Raman spectra. For example: assuming that the length of the obtained initial Raman spectrum y is n, the number of segments M=4, assuming that the initial Raman spectrum is divided according to the interval length, the interval length P=n / (M-1) or P=n / 3, then the initial Raman spectrum can be divided into 4 parts according to the displacement sequence, where: y1=y(X1), X1=1,...P; y2=y(X2), X2=1,...,2P; y3=y(X3), X3=P+1,...,3P; y4=y(X4), X4=2P+1,...,3P.

[0065] Here, the mathematical function may be any data function that can fit the hardware attenuation process of the Raman spectroscopy detection instrument, such as a Gaussian function, a sine function, etc., and this application does not limit this.

[0066] The first Raman spectra are corrected by using the first correction matrix corresponding to each first Raman spectrum, and the second Raman spectrum may be obtained by multiplying the spectrum matrix of the first Raman spectrum by the first correction matrix.

[0067] In an embodiment of the present application, the initial Raman spectrum can be segmented to obtain multiple segmented spectra, and a correction matrix for each segmented spectrum is calculated by a unified mathematical function. Each segmented spectrum is corrected by the correction matrix to obtain a target Raman spectrum, thereby improving the accuracy of target object recognition.

[0068] In some embodiments, determining the correction coefficient matrix corresponding to each first Raman spectrum based on the mathematical function to obtain M first correction matrices may include the following steps:

[0069] Based on the spectrum matrix of the initial Raman spectrum, a correction coefficient matrix corresponding to each first Raman spectrum is calculated using a mathematical function to obtain M first correction matrices.

[0070] Here, the spectral matrix of the initial Raman spectrum can be expressed as y(x), where x = [x1, x2, ..., xn] is the Raman spectrum shift sequence, i.e., the wave number, n represents the length of the Raman spectrum shift sequence, y(xi) represents the Raman spectrum signal intensity value at position xi, and i = 1, 2, ..., n.

[0071] Specifically, the spectrum matrix corresponding to the first Raman spectrum obtained after the segmentation processing may be used to calculate the first correction matrix corresponding to the first Raman spectrum using a mathematical model.

[0072] In one example, as described in the above example, the length of the initial Raman spectrum y is n, M = 4, and the initial Raman spectrum is divided into 4 parts according to the displacement sequence according to the interval length P = n / (M-1), that is, P = n / 3. For the first segmented Raman spectrum y1 = y(X1), X1 = 1, ... P. The mathematical function is a Gaussian function. According to the mean mu = 0 and the standard deviation sigma = P of the Gaussian function, [-P, ..., P] is substituted into the Gaussian function to obtain the initial correction matrix, which is normalized according to the maximum and minimum values ​​and recorded as N1. Substituting the data of X1 into N, the corresponding first correction matrix can be obtained, as shown in the specific expression (1):

[0073]

[0074] Similarly, according to the mean mu = P, 2P, 3P and the standard deviation sigma = P of the Gaussian function, [1, ..., 2P], [P+1, ..., 3P], [2P+1, ..., 4P] are substituted into the Gaussian function to obtain the initial correction matrix, which is normalized according to the maximum and minimum values ​​and recorded as N2, N3, and N4. The specific expression (2) is shown as follows:

[0075]

[0076] Among them, j=2,3,4.

[0077] In some embodiments, the identification of the target object according to the target Raman spectrum in S104 may include the following steps:

[0078] Matching the M second Raman spectra with the standard Raman spectrum respectively to obtain matching results;

[0079] Based on the matching results, the target object is identified.

[0080] Here, the standard Raman spectrum may be pre-stored standard Raman spectrum data, or may be a Raman spectrum detected by a different device from the one used to obtain the initial Raman spectrum on a known object, and the standard Raman spectrum is obtained by performing the same correction method as above.

[0081] In some embodiments, the above-mentioned matching of the M second Raman spectra with the standard Raman spectrum to obtain the matching result may include the following steps:

[0082] The standard Raman spectrum is segmented to obtain M third Raman spectra corresponding to the M second Raman spectra one by one;

[0083] For each second Raman spectrum, calculating a correlation coefficient between the second Raman spectrum and the corresponding third Raman spectrum to obtain M first correlation coefficients;

[0084] A matching result is determined according to the M first correlation coefficients.

[0085] Specifically, a first correlation coefficient of data of the second Raman spectrum and the corresponding third Raman spectrum is calculated; when the calculated correlation coefficient is greater than or equal to a preset correlation threshold, the second Raman spectrum matches the corresponding third Raman spectrum; when the calculated correlation coefficient is less than the correlation threshold, the second Raman spectrum and the corresponding third Raman spectrum are determined; thus, the matching result of each second Raman spectrum and the corresponding third Raman spectrum is determined according to the numerical value of each first correlation coefficient, thereby determining the matching result between the target Raman spectrum and the standard Raman spectrum.

[0086] In this embodiment, the accuracy of target formation recognition can be further improved.

[0087] In order to facilitate the understanding of the identification method provided in this embodiment, the practical application of the above identification method is provided here for illustration, and specifically refer to the following example:

[0088] It mainly includes the following two parts: correction coefficient initialization and Raman spectrum evaluation.

[0089] 1. Initialization of calibration coefficients

[0090] Correction coefficient W, Raman spectrum length n, number of segments m, interval length P = n / (m-1), mean mu, standard deviation sigma, weight matrix a. , where weight matrix a∈R m and The specific expression is as follows (3):

[0091]

[0092] Step 1: Initialize the correction coefficient matrix Wm×n to an all-zero matrix, where m represents the number of parts into which the preprocessed spectrum is divided for evaluation, and n is the length of the preprocessed Raman spectrum. In this embodiment, m=4, n=1076, interval length P=n / (m-1)≈358, a=[1 / 6, 1 / 3, 1 / 3, 1 / 6].

[0093] Step 2: Use Gaussian function to perform

[0094] According to the mean mu=0, P, 2P, 3P, sigma=P, construct the Gaussian function N i, i=1,2,…,m, where m=4. Substitute X1=1,…P, X2=1,…,2P, X3=P+1,…,3P, X4=2P+1,…,3P into N i , denoted as vector f i , and perform normalization according to formula (4).

[0096]

[0097] Wherein, f(x) represents a Gaussian function, and max(f(x)) and min(f(x)) represent the maximum and minimum values ​​of f(x).

[0098] Step 4: Assign values ​​to the matrix coefficients, as shown in formula (5).

[0099]

[0100] Among them, i=1,2,…,n, represents the data length; j=1,2,…,m, represents the number of segments.

[0101] As above, the correction coefficient initialization is completed, and the correction coefficient W is as follows: Figure 2 As shown, through the above formulas (3) to (5), substituting m = 4, n = 1076, interval length P = n / (m-1) ≈ 358, a = [1 / 6, 1 / 3, 1 / 3, 1 / 6], the four correction coefficient matrices can be obtained as follows:

[0102] W(1,1:358)=f'(360:717)

[0103] W(2,1:717)=f'(1:717)

[0104] W(3,359:1075)=f'(1:717)

[0105] W(4,719:1076)=f'(1:358)

[0106] Among them, W(1,1:358) is the matrix coefficient 1, W(2,1:717) is the matrix coefficient 2, W(3,359:1075) is the matrix coefficient 3, and W(4,719:1076) is the matrix coefficient 4.

[0107] 2. Raman spectroscopy evaluation

[0108] Step 1: Perform preprocessing operations including interpolation, smoothing filtering, baseline removal, and normalization on the original spectrum s0 of the substance to be tested collected by device 1 to obtain the preprocessed spectrum, denoted as s, and the data length is denoted as length. In this patent, length = 1076.

[0109] Step 2: Get the Raman spectrum of device 1 from the Raman spectrum database, denoted as t, and the data length is the same as s, also length.

[0110] Step 3: Perform spectral correction on the Raman spectrum data s,t according to the correction matrix W.

[0111] Step 4: Calculate the correlation coefficient for each of the n groups, denoted as p. Where p∈R m , denoted as p=[p1,p2,…,p m ].

[0112] Step 5: Calculate the weighted result p_, as shown in formula (6):

[0113]

[0114] Based on the identification method provided in the above embodiment, the present application also provides a specific implementation of the identification device. Please refer to the following embodiment.

[0115] See first Figure 3 The identification device 300 provided in the embodiment of the present application includes the following modules:

[0116] An acquisition module 301 is used to acquire an initial Raman spectrum of a target object;

[0117] A calculation module 302 is used to determine the correction coefficient of the initial Raman spectrum according to a mathematical function to obtain a target correction matrix;

[0118] A correction module 303 is used to correct the initial Raman spectrum based on a target correction matrix to obtain a target Raman spectrum;

[0119] The identification module 304 is used to identify the target object according to the target Raman spectrum.

[0120] In some embodiments, the calculation module 302 includes:

[0121] A first segmentation unit, used for segmenting the initial Raman spectrum to obtain M first Raman spectra, where M is an integer greater than 1;

[0122] A determination unit, configured to determine a correction coefficient matrix corresponding to each first Raman spectrum based on a mathematical function to obtain M first correction matrices;

[0123] The correction module 303 is specifically configured to correct each first Raman spectrum based on a first correction matrix corresponding to the first Raman spectrum to obtain M second Raman spectra, and the target Raman spectrum includes the M second Raman spectra.

[0124] In some embodiments, the determination unit is specifically configured to obtain, based on the spectrum matrix of the initial Raman spectrum, a correction coefficient matrix corresponding to each first Raman spectrum by using a mathematical function to obtain M first correction matrices.

[0125] In some embodiments, the identification module 304 includes:

[0126] A matching unit, used for matching the M second Raman spectra with the standard Raman spectrum respectively to obtain a matching result;

[0127] The recognition unit is used to recognize the target object based on the matching result.

[0128] In some embodiments, the matching unit is specifically used for:

[0129] The standard Raman spectrum is segmented to obtain M third Raman spectra;

[0130] For each second Raman spectrum, calculating a correlation coefficient between the second Raman spectrum and the corresponding third Raman spectrum to obtain M first correlation coefficients;

[0131] A matching result is determined according to the M first correlation coefficients.

[0132] The identification device provided by the present application can obtain the initial Raman spectrum of the target object; determine the correction coefficient of the initial Raman spectrum according to a mathematical function to obtain a target correction matrix; correct the initial Raman spectrum based on the target correction matrix to obtain a target Raman spectrum; and identify the target object according to the target Raman spectrum. In this way, the initial Raman spectrum of the target object can be corrected first, and the target object can be identified by the corrected Raman spectrum, thereby improving the accuracy of identification.

[0133] Figure 4 A schematic diagram of the hardware structure of the identification device provided in an embodiment of the present application is shown.

[0134] The identification device may include a processor 401 and a memory 402 storing computer program instructions.

[0135] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0136] Memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, memory 402 may be inside or outside of an integrated gateway disaster recovery device. In a specific embodiment, memory 402 is a non-volatile solid-state memory.

[0137] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0138] The processor 401 implements any one of the identification methods in the above embodiments by reading and executing computer program instructions stored in the memory 402 .

[0139] In one example, the identification device may further include a communication interface 403 and a bus 410. Figure 4 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 and communicate with each other.

[0140] The communication interface 403 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0141] Bus 410 includes hardware, software or both, and the parts of identification equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 410 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0142] The identification device can be based on the above embodiment, thereby realizing the combination Figures 1 to 3 Described identification method and device.

[0143] In addition, in combination with the identification method in the above embodiment, the embodiment of the present application may provide a computer storage medium to implement it. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the identification methods in the above embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here. Among them, the above-mentioned computer-readable storage medium may include a non-transitory computer-readable storage medium, such as a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), a disk or an optical disk, etc., which is not limited here.

[0144] In addition, an embodiment of the present application further provides a computer program product, including computer program instructions, which can implement the steps and corresponding contents of the aforementioned method embodiment when the computer program instructions are executed by a processor.

[0145] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0146] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0147] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0148] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device and computer program product according to the embodiment of the present disclosure. It should be understood that each square block in the flowchart and / or block diagram and the combination of each square block in the flowchart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable identification device to produce a machine so that these instructions executed via the processor of a computer or other programmable identification device enable the realization of the function / action specified in one or more square blocks of the flowchart and / or block diagram. This processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It can also be understood that each square block in the block diagram and / or flowchart and the combination of the square blocks in the block diagram and / or flowchart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0149] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A recognition method, characterized in that: The method comprises: Acquire an initial Raman spectrum of the target object; Determine the correction coefficient of the initial Raman spectrum according to a mathematical function to obtain a target correction matrix; Correcting the initial Raman spectrum based on the target correction matrix to obtain a target Raman spectrum; The target object is identified according to the target Raman spectrum.

2. The method according to claim 1, characterized in that Determining the correction coefficient of the initial Raman spectrum according to the mathematical function to obtain a target correction matrix includes: The initial Raman spectrum is processed in sections to obtain M first Raman spectra, where M is an integer greater than 1; Determine the correction coefficient matrix corresponding to each of the first Raman spectra based on a mathematical function to obtain M first correction matrices; The correcting the initial Raman spectrum based on the target correction matrix to obtain a target Raman spectrum includes: Based on a first correction matrix corresponding to the first Raman spectra, each of the first Raman spectra is corrected to obtain M second Raman spectra, and the target Raman spectrum includes the M second Raman spectra.

3. The method according to claim 2, characterized in that The step of determining the correction coefficient matrix corresponding to each of the first Raman spectra based on a mathematical function to obtain M first correction matrices includes: Based on the spectrum matrix of the initial Raman spectrum, a correction coefficient matrix corresponding to each of the first Raman spectra is calculated using a mathematical function to obtain M first correction matrices.

4. The method according to claim 2, characterized in that: The identifying the target object according to the target Raman spectrum includes: Matching the M second Raman spectra with the standard Raman spectrum respectively to obtain matching results; Based on the matching result, the target object is identified.

5. The method according to claim 4, characterized in that The step of matching the M second Raman spectra with the standard Raman spectrum to obtain a matching result includes: The standard Raman spectrum is segmented to obtain M third Raman spectra corresponding to the M second Raman spectra one by one; For each of the second Raman spectra, calculating a correlation coefficient between the second Raman spectrum and the corresponding third Raman spectrum to obtain M first correlation coefficients; The matching result is determined according to the M first correlation coefficients.

6. An identification device, characterized in that: The device comprises: An acquisition module, used for acquiring an initial Raman spectrum of a target object; A calculation module, used for determining the correction coefficient of the initial Raman spectrum according to a mathematical function to obtain a target correction matrix; A correction module, used for correcting the initial Raman spectrum based on the target correction matrix to obtain a target Raman spectrum; The identification module is used to identify the target object according to the target Raman spectrum.

7. The device according to claim 6, characterized in that The computing module comprises: A first segmentation unit, used for segmenting the initial Raman spectrum to obtain M first Raman spectra, where M is an integer greater than 1; A determination unit, configured to determine a correction coefficient matrix corresponding to each of the first Raman spectra based on a mathematical function to obtain M first correction matrices; The correction module comprises: The correction unit is used to correct each of the first Raman spectra based on a first correction matrix corresponding to the first Raman spectra to obtain M second Raman spectra, and the target Raman spectrum includes the M second Raman spectra.

8. An identification device, applied to a network system, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method according to any one of claims 1 to 5 is implemented.

9. A computer storage medium, characterized in that: The computer storage medium stores Computer program instructions, when executed by a processor, implement the method according to any one of claims 1 to 5.

10. A computer program product, characterized in that The computer program product comprises computer program instructions, and when the computer program instructions are executed by a processor, the identification method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Raman spectrum matching method

    CN106198485A

  • Spectrum segmentation and spectrum comparison method based on spectrum peak-splitting fitting

    CN112557332A