[go: up one dir, main page]

CN110208248A - A method of identification Raman spectrum exception measuring signal - Google Patents

A method of identification Raman spectrum exception measuring signal Download PDF

Info

Publication number
CN110208248A
CN110208248A CN201910574613.9A CN201910574613A CN110208248A CN 110208248 A CN110208248 A CN 110208248A CN 201910574613 A CN201910574613 A CN 201910574613A CN 110208248 A CN110208248 A CN 110208248A
Authority
CN
China
Prior art keywords
spectrum
signal
sequence
measurement
raman spectrum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910574613.9A
Other languages
Chinese (zh)
Other versions
CN110208248B (en
Inventor
熊智新
张肖雪
刘耀瑶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Forestry University
Original Assignee
Nanjing Forestry University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Forestry University filed Critical Nanjing Forestry University
Priority to CN201910574613.9A priority Critical patent/CN110208248B/en
Publication of CN110208248A publication Critical patent/CN110208248A/en
Application granted granted Critical
Publication of CN110208248B publication Critical patent/CN110208248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/62Systems in which the material investigated is excited whereby it emits light or causes a change in wavelength of the incident light
    • G01N21/63Systems in which the material investigated is excited whereby it emits light or causes a change in wavelength of the incident light optically excited
    • G01N21/65Raman scattering

Landscapes

  • Health & Medical Sciences (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating, Analyzing Materials By Fluorescence Or Luminescence (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

本发明提供一种辨识拉曼光谱异常测量信号的方法,能够辨别并剔除拉曼光谱单次测量和平行测量中异常光谱。对单次测量光谱信号剔除基线漂移后,估计信噪比;对平行测量光谱信号扣除基线,计算每次测量光谱各波点数相对平均光谱的标准差,将其相加计算总的平均标准差。设计适合的阈值对单次测量及平行测量中的异常信号进行剔除以此保证后续拉曼光谱定性和定量分析的准确性和适应性。

The invention provides a method for identifying abnormal Raman spectrum measurement signals, which can identify and eliminate abnormal spectra in single Raman spectrum measurement and parallel measurement. After eliminating the baseline drift for the single measurement spectral signal, estimate the signal-to-noise ratio; subtract the baseline for the parallel measurement spectral signal, calculate the standard deviation of each wave point of each measurement spectrum relative to the average spectrum, and add them to calculate the total average standard deviation. Design a suitable threshold to eliminate abnormal signals in single measurement and parallel measurement to ensure the accuracy and adaptability of subsequent qualitative and quantitative analysis of Raman spectroscopy.

Description

一种辨识拉曼光谱异常测量信号的方法A Method for Identifying Raman Spectrum Abnormal Measurement Signals

技术领域technical field

本发明属于拉曼光谱分析技术领域,具体涉及一种采集拉曼光谱过程中辨识异常测量信号的方法。The invention belongs to the technical field of Raman spectrum analysis, and in particular relates to a method for identifying abnormal measurement signals in the process of collecting Raman spectra.

背景技术Background technique

拉曼光谱分析技术具有样品无需前处理、操作时间短、简便、灵敏度高等优点,并可精确地进行物质的定性和定量分析,已广泛应用于石油化工、生物医学、地质考古、刑事司法等领域。拉曼光谱峰通常比较尖锐,更易于识别混合物,但在拉曼光谱测试中,往往会遇到荧光干扰,以及由于拉曼散射光本身极弱,使得背景会将拉曼信号堙没。同时,拉曼光谱是没有背景测量的绝对强度,一次易受外界因素的干扰。因此,在拉曼光谱分析技术的实际应用中为了获得高质量的拉曼光谱信号,往往采用同一样品多次测量光谱的平均光谱作为代表性光谱进行分析处理。若采集拉曼光谱过程中出现某一次由于操作不当、仪器扰动或其它未知原因而导致光谱信号异常、信噪比大,则该次测量无效,需要剔除该异常信号后才可计算平均光谱。但在实际测量过程中,测量人员因主观或客观因素,不易发现这一无效测量而导致测量结果的误保存。Raman spectroscopy has the advantages of no need for sample pretreatment, short operation time, simplicity, and high sensitivity, and can accurately perform qualitative and quantitative analysis of substances. It has been widely used in petrochemical, biomedical, geological archaeology, criminal justice and other fields. . Raman spectrum peaks are usually sharper, making it easier to identify mixtures. However, in Raman spectroscopy tests, fluorescence interference is often encountered, and because the Raman scattered light itself is extremely weak, the background will drown out the Raman signal. At the same time, Raman spectroscopy is an absolute intensity measurement without background, which is easily interfered by external factors. Therefore, in the practical application of Raman spectroscopy analysis technology, in order to obtain high-quality Raman spectroscopy signals, the average spectrum of multiple measurement spectra of the same sample is often used as the representative spectrum for analysis and processing. If there is an abnormal spectral signal and a large signal-to-noise ratio due to improper operation, instrument disturbance or other unknown reasons during the collection of Raman spectrum, the measurement is invalid, and the average spectrum can only be calculated after removing the abnormal signal. However, in the actual measurement process, due to subjective or objective factors, it is difficult for the measurement personnel to find this invalid measurement, which leads to the wrong preservation of the measurement results.

在药品、食品检测过程中,通常使用的光谱检测仪即采用了上述拉曼光谱分析技术作为理论依据,对药品和食品进行非食用化学物质、食品药品添加剂、农药残留、兽药残留、重金属、菌落总数、保健食品中非法添加等定性、定量检测。在利用拉曼光谱实现药品快检中,采用异常信号进行分析会造成药品类别的误判。目前绝大多数研究中对异常光谱的识别均为基于建模样品集结合马氏距离、杠杆值等模式识别方法进行的,但若在信号进入数据库之前不对单次测量进行异常识别,则在后续基于模式识别检测的异常信号中可能存在由于信号本身无效造成的异常或因为有效信号为新类别产生的异常的混淆,从而增加异常信号类型的鉴别难度,造成食品或药品检测结果因此作为预防机制,在使用该样品光谱进行正式分析之前,对样品单次以及重复测量中的异常信号进行自动识别,排除信号本身的异常对后续模式识别判断造成的干扰,以便为后续物质定性和定量分析提供准确可靠的信息源。In the process of drug and food testing, the commonly used spectroscopic detectors use the above-mentioned Raman spectral analysis technology as a theoretical basis to perform non-edible chemical substances, food and drug additives, pesticide residues, veterinary drug residues, heavy metals, and bacterial colonies on drugs and foods. Qualitative and quantitative detection of the total number and illegal additions in health food. In the rapid inspection of drugs using Raman spectroscopy, the use of abnormal signals for analysis will cause misjudgment of drug categories. At present, the identification of abnormal spectra in most studies is based on the modeling sample set combined with pattern recognition methods such as Mahalanobis distance and leverage value. In the abnormal signal based on pattern recognition detection, there may be anomalies caused by the signal itself being invalid or confusion caused by the effective signal being a new type of anomaly, which increases the difficulty of identifying the type of abnormal signal, resulting in food or drug testing results. Therefore, as a preventive mechanism, Before using the sample spectrum for formal analysis, the abnormal signal in the single and repeated measurement of the sample is automatically identified, and the interference caused by the abnormal signal itself to the subsequent pattern recognition judgment is eliminated, so as to provide accurate and reliable qualitative and quantitative analysis for subsequent substances. source of information.

发明内容Contents of the invention

本发明的目的是提供一种能够辨别并剔除拉曼光谱单次测量和平行测量中异常光谱的方法,可以对单次测量及平行测量中的异常信号进行剔除以此保证拉曼光谱定性和定量分析的准确性和适应性。The purpose of the present invention is to provide a method that can identify and eliminate abnormal spectra in single measurement and parallel measurement of Raman spectrum, and can eliminate abnormal signals in single measurement and parallel measurement to ensure the qualitative and quantitative quality of Raman spectrum Analytical accuracy and adaptability.

本发明提供了一种辨识拉曼光谱异常测量信号的方法,包括以下步骤:The invention provides a method for identifying abnormal Raman spectrum measurement signals, comprising the following steps:

1)光谱仪采集到样品的光谱数据,采用幅值法和一阶微分相结合的谱图识别方法,进行峰“谷点”的检测。峰“谷点”识别后,采用胶带(rubber band)法确定基线,然后扣除基线。1) The spectrometer collects the spectral data of the sample, and uses the spectrum identification method combining the amplitude method and the first order differential to detect the peak "valley point". After the peak "valley point" is identified, the rubber band method is used to determine the baseline, and then the baseline is subtracted.

2)为了提高计算速度,在保证光谱波形的基础下,根据光谱长度对光谱数据进行等间隔采样,组成初始的光谱序列进行后续的计算。根据采样定理,每个间隔中包含数据点数多于最小相邻峰谷之间包含数据点数的3倍。如果采用原始光谱序列计算速度满足应用要求,则可省略采样过程。2) In order to improve the calculation speed, on the basis of ensuring the spectral waveform, the spectral data is sampled at equal intervals according to the spectral length to form an initial spectral sequence for subsequent calculations. According to the sampling theorem, the number of data points contained in each interval is more than three times the number of data points contained between the smallest adjacent peaks and valleys. If the calculation speed of the original spectral sequence meets the application requirements, the sampling process can be omitted.

3)针对每次测量的光谱,计算光谱测量信号,包括采样后或不采样的均值与标准差,再计算光谱序列中每个吸光度值与均值的差,构成新的均值中心化信号序列Sc。3) For each measured spectrum, calculate the spectral measurement signal, including the mean value and standard deviation after sampling or not, and then calculate the difference between each absorbance value and the mean value in the spectral sequence to form a new mean-centered signal sequence Sc.

4)确立相应阈值(根据实际应用确立,一倍标准差、两倍标准差或三倍标准差),步骤3中Sc序列中值大于此阈值则认为此点为有用信号,放入信号序列S。4) Establish the corresponding threshold (according to the actual application, one standard deviation, two standard deviations or three standard deviations), if the median value of the Sc sequence in step 3 is greater than this threshold, then this point is regarded as a useful signal, and put into the signal sequence S .

5)从原始光谱序列中去除放入信号区的数据点,用剩余光谱序列重复进行步骤3)、4)、5)的计算,直至没有比阈值大的信号,迭代结束,则剩余光谱序列为噪声序列R。5) Remove the data points placed in the signal area from the original spectral sequence, and repeat the calculations of steps 3), 4) and 5) with the remaining spectral sequence until there is no signal greater than the threshold, and the iteration ends, then the remaining spectral sequence is Noise sequence R.

6)根据已得到的信号序列S和噪声序列R,利用信噪比公式计算单次测量光谱的信噪比。6) According to the obtained signal sequence S and noise sequence R, use the signal-to-noise ratio formula Calculate the signal-to-noise ratio of a single measurement spectrum.

7)SNR<10(大量的数据处理实验所得信噪比阈值),则认为该次测量为无效光谱,应该予以剔除。7) If SNR<10 (signal-to-noise ratio threshold value obtained from a large number of data processing experiments), the measurement is considered to be an invalid spectrum and should be eliminated.

8)对同一样品中信噪比符合要求的多次测量光谱,至少3次测量,扣除基线后计算平均光谱,然后计算各次测量光谱相对于平均光谱各波数点对应的标准差序列,计算标准差序列的平均值可得到每条测量光谱相对平均光谱总的标准差STD。8) For multiple measurement spectra in the same sample whose signal-to-noise ratio meets the requirements, at least 3 measurements, calculate the average spectrum after deducting the baseline, and then calculate the standard deviation sequence corresponding to each wavenumber point of each measurement spectrum relative to the average spectrum, and calculate the standard The average value of the difference series can be obtained for each measured spectrum with respect to the total standard deviation STD of the average spectrum.

9)STD>1.5(大量的数据处理实验所得标准差阈值),则视此光谱为平行测量中“离群”的异常光谱,应该予以剔除。9) If STD>1.5 (standard deviation threshold obtained from a large number of data processing experiments), this spectrum is regarded as an "outlier" abnormal spectrum in parallel measurement and should be eliminated.

10)从平行测量光谱剔除步骤9中判定的异常光谱,用剩余平行测量光谱重复进行步骤8、9,直至平行光谱<3条或STD<1.5,迭代结束,实现拉曼光谱异常测量信号的辨识与剔除。10) Eliminate the abnormal spectrum determined in step 9 from the parallel measurement spectrum, and repeat steps 8 and 9 with the remaining parallel measurement spectrum until the parallel spectrum <3 or STD<1.5, the iteration ends, and the identification of the abnormal measurement signal of the Raman spectrum is realized with culling.

本发明有益效果在于:在使用样品光谱之前,能够综合考虑单次测量信号有效性(以信噪比估计为依据)和多次平行测量的相似性(以标准差进行“离群”判断),对样品测量中的异常光谱信号进行自动识别并剔除,以此保证拉曼光谱定性和定量分析所需要信号源的有效性、准确性和可靠性。The beneficial effect of the present invention is that: before using the sample spectrum, the validity of a single measurement signal (based on signal-to-noise ratio estimation) and the similarity of multiple parallel measurements ("outlier" judgment based on standard deviation) can be comprehensively considered, Automatically identify and eliminate abnormal spectral signals in sample measurement, so as to ensure the validity, accuracy and reliability of the signal sources required for qualitative and quantitative analysis of Raman spectroscopy.

附图说明Description of drawings

图1是同一样品平行测量6次的拉曼光谱图;Fig. 1 is the Raman spectrogram of 6 parallel measurements of the same sample;

图2是基线扣除后的拉曼光谱;Figure 2 is the Raman spectrum after baseline subtraction;

图3是根据信噪比剔除无信息光谱后剩余平行光谱;Figure 3 is the remaining parallel spectrum after removing the non-information spectrum according to the signal-to-noise ratio;

图4是最终剔除异常光谱的平行测.量光谱及最终光谱。Fig. 4 is the parallel measurement spectrum and the final spectrum after eliminating the abnormal spectrum.

具体实施方案specific implementation plan

下面将对本发明进行更清楚、完整的进一步描述,显然,所描述的实例仅仅是本发明的一部分实例,而不是全部的实施例。The present invention will be further described more clearly and completely below, obviously, the described examples are only some examples of the present invention, rather than all the embodiments.

本发明提供的一种辨识拉曼光谱异常测量信号的方法包括以下步骤:A method for identifying abnormal Raman spectrum measurement signals provided by the present invention comprises the following steps:

步骤一,采集样品的光谱数据,根据光谱长度对光谱数据进行等间隔采样,组成初始的光谱序列。In step 1, the spectral data of the sample is collected, and the spectral data are sampled at equal intervals according to the spectral length to form an initial spectral sequence.

上述采集样品的光谱数据具体为:Spectral data of the samples collected above are specifically:

采用幅值法和一阶微分相结合的谱图识别方法,进行峰谷点的检测;峰谷点识别后,采用胶带法确定基线,然后扣除基线,得到消除基线干扰的可用于计算信噪比的拉曼光谱。The spectrum recognition method combining the amplitude method and the first order differential is used to detect the peak and valley points; after the peak and valley points are identified, the tape method is used to determine the baseline, and then the baseline is subtracted to obtain a signal-to-noise ratio that eliminates baseline interference Raman spectrum.

在保证光谱波形的基础下,根据光谱长度对光谱数据进行等间隔采样,组成初始的光谱序列进行后续的计算;根据采样定理,每个间隔中包含数据点数多于最小相邻峰谷之间包含数据点数的3倍。On the basis of ensuring the spectral waveform, the spectral data is sampled at equal intervals according to the spectral length to form the initial spectral sequence for subsequent calculations; according to the sampling theorem, the number of data points contained in each interval is more than that contained between the smallest adjacent peaks and valleys 3 times the number of data points.

步骤二,针对每次测量的光谱,计算光谱测量信号均值与标准差,再计算光谱序列中每个吸光度值与均值的差,构成新的均值中心化信号序列Sc;Step 2, for each measured spectrum, calculate the mean value and standard deviation of the spectral measurement signal, and then calculate the difference between each absorbance value and the mean value in the spectrum sequence to form a new mean-centered signal sequence Sc;

步骤三,设定阈值,该阈值根据实际应用确定,为一倍标准差、两倍标准差或三倍标准差。将所述步骤二中Sc序列中值大于所述阈值的认为此点为有用信号,放入有用信号序列S;Step 3, setting a threshold, which is determined according to the actual application and is one standard deviation, two standard deviations or three standard deviations. In the second step, if the median value of the Sc sequence is greater than the threshold value, this point is regarded as a useful signal, and put into the useful signal sequence S;

步骤四,从原始光谱序列中去除放入有用信号序列的数据点后,用剩余光谱序列作为新的信号序列Sc,返回步骤三进行迭代计算,直至没有出现比比设定阈值大的信号,记剩余光谱序列为噪声序列R,转步骤五;Step 4: After removing the data points put into the useful signal sequence from the original spectral sequence, use the remaining spectral sequence as the new signal sequence Sc, and return to step 3 for iterative calculation until there is no signal larger than the set threshold, and record the remaining The spectral sequence is the noise sequence R, go to step 5;

步骤五,根据已得到的有用信号序列S和噪声序列R,利用信噪比公式计算单次测量光谱的信噪比;所述信噪比公式为 Step 5, according to the obtained useful signal sequence S and noise sequence R, use the signal-to-noise ratio formula to calculate the signal-to-noise ratio of a single measurement spectrum; the signal-to-noise ratio formula is

步骤六,基于信噪比剔除无效光谱,当信噪比SNR<10时,认为该次测量为无效光谱,应该予以剔除。Step 6, based on the signal-to-noise ratio to eliminate invalid spectra, when the signal-to-noise ratio SNR<10, it is considered that the measurement is an invalid spectrum and should be eliminated.

步骤七,对同一样品中信噪比符合要求的平行测量光谱,同一样品中信噪比符合要求的平行测量光谱不少于3次,计算每条测量光谱相对平均光谱的标准差STD。Step 7: For the parallel measurement spectra whose signal-to-noise ratio meets the requirements in the same sample, the parallel measurement spectra whose signal-to-noise ratio meets the requirements in the same sample are not less than 3 times, and calculate the standard deviation STD of each measurement spectrum relative to the average spectrum.

步骤八,当所述标准差STD>1.5时,剔除平行测量中“离群”的异常光谱,用剩余平行测量光谱重复进行步骤七,直至平行光谱<3条或STD<1.5,迭代结束,实现拉曼光谱异常测量信号的辨识与剔除。Step 8, when the standard deviation STD>1.5, eliminate the "outlier" abnormal spectrum in the parallel measurement, repeat step 7 with the remaining parallel measurement spectrum, until the parallel spectrum <3 or STD<1.5, the iteration ends, and the realization Identification and elimination of abnormal measurement signals of Raman spectroscopy.

下面结合对某药厂的药品进行检测的实例详细说明本发明技术方案的内容,拉曼光谱数据取自某药厂的药品拉曼光谱,选取阿莫西林克拉维酸钾咀嚼片和盐酸二甲双胍缓释片的6次测量光谱,如图1所示。The content of the technical scheme of the present invention is described in detail below in conjunction with the example that the medicine of certain pharmaceutical factory is detected, and Raman spectrum data is taken from the medicine Raman spectrum of certain pharmaceutical factory, selects amoxicillin clavulanate potassium chewable tablet and metformin hydrochloride slow The 6 measured spectra of the release tablet are shown in Figure 1.

参考图1,辨识拉曼光谱异常测量信号的方法,包括以下步骤:Referring to Fig. 1, the method for identifying the abnormal measurement signal of Raman spectrum includes the following steps:

1、通过光谱仪采集药品的光谱数据,采用幅值法和一阶微分相结合的谱图识别方法,进行峰“谷点”的检测。峰“谷点”识别后,采用“胶带法”确定基线,然后扣除基线,结果如参考图2所示。1. Collect the spectral data of the drug through the spectrometer, and use the spectrum recognition method combining the amplitude method and the first order differential to detect the peak "valley point". After the peak "valley point" is identified, the "tape method" is used to determine the baseline, and then the baseline is subtracted. The result is shown in Figure 2.

2、为计算方便,在保证光谱波形的基础下,根据光谱长度、计算速度要求及峰宽度(谷-谷间隔)确定合适的采样间隔生成新的光谱序列用于后续计算。针对实施例的拉曼光谱,选取全光谱信号作为原始光谱序列。2. For the convenience of calculation, on the basis of ensuring the spectral waveform, determine the appropriate sampling interval according to the spectral length, calculation speed requirements and peak width (valley-valley interval) to generate a new spectral sequence for subsequent calculations. For the Raman spectrum of the embodiment, the full spectrum signal is selected as the original spectrum sequence.

3、对每次测量的光谱,计算光谱测量信号均值,求得光谱序列中每个点减去均值的结果。3. For each measured spectrum, calculate the mean value of the spectrum measurement signal, and obtain the result of subtracting the mean value from each point in the spectrum sequence.

4、实施例采用三倍标准差作为阈值,步骤3中结果大于此阈值则认为此点为有用信号,放入信号序列S。4. The embodiment uses three times the standard deviation as the threshold value. If the result in step 3 is greater than the threshold value, then this point is regarded as a useful signal and put into the signal sequence S.

5、从原始光谱序列中去除放入信号区的波点,用剩余光谱序列重复进行步骤3、4的计算,直至无比阈值大的信号,迭代结束,则剩余光谱序列为噪声序列R。5. Remove the wave points placed in the signal area from the original spectral sequence, and repeat the calculations of steps 3 and 4 with the remaining spectral sequence until the signal with an incomparable threshold value is reached. After the iteration is over, the remaining spectral sequence is the noise sequence R.

6、利用信噪比公式计算单次测量光谱的信噪比。实施例中单次测量光谱的信噪比结果如表1所示。6. Use the signal-to-noise ratio formula Calculate the signal-to-noise ratio of a single measurement spectrum. The signal-to-noise ratio results of a single measurement spectrum in the examples are shown in Table 1.

表1单次测量光谱异常分析结果Table 1 Analysis results of single measurement spectrum anomaly

7、SNR<10(大量的数据处理实验所得信噪比阈值),则认为该次测量为无效光谱,应该予以剔除。如表1所示,盐酸二甲双胍缓释片的拉曼光谱的6次测量的信噪比都大于10,均为有效光谱;而阿莫西林克拉维酸钾咀嚼片拉曼光谱的第2次和第3次测量的SNR<10,为无效的异常信号,应该剔除,所得剩余有效光谱如参考图3所示。7. If SNR<10 (signal-to-noise ratio threshold value obtained from a large number of data processing experiments), the measurement is considered to be an invalid spectrum and should be discarded. As shown in Table 1, the signal-to-noise ratios of the 6 measurements of the Raman spectra of metformin hydrochloride sustained-release tablets are all greater than 10, which are all effective spectra; The SNR < 10 in the third measurement is an invalid abnormal signal and should be eliminated. The remaining effective spectrum obtained is shown in Fig. 3 .

8、对同一样品中信噪比符合要求的测量光谱,扣除基线后计算多次测量的平均光谱,然后计算每次测量光谱相对于平均光谱各波数点对应的标准差序列并计算平均,由此求得每条测量光谱相对平均光谱总的标准差STD。8. For the measurement spectrum whose signal-to-noise ratio meets the requirements in the same sample, calculate the average spectrum of multiple measurements after deducting the baseline, and then calculate the standard deviation sequence corresponding to each wavenumber point of each measurement spectrum relative to the average spectrum and calculate the average, thus Obtain the standard deviation STD of each measured spectrum relative to the total average spectrum.

9、STD>1.5(大量的数据处理实验所得标准差阈值),则视此光谱为异常光谱,应该予以剔除。9. If STD>1.5 (standard deviation threshold obtained from a large number of data processing experiments), the spectrum is regarded as an abnormal spectrum and should be eliminated.

10、从所测量得到的多次测量光谱去除步骤9认定的异常光谱,用剩余平行测量光谱重复进行步骤8、9,直至重复测量光谱<3条或STD<1.5,迭代结束,实现拉曼光谱异常测量信号的辨识与剔除。实施例中每条测量光谱相对平均光谱总的标准差迭代过程如表2所示。所得剩余相似平行测量光谱如参考图4所示。10. Remove the abnormal spectra identified in step 9 from the measured multiple measurement spectra, and repeat steps 8 and 9 with the remaining parallel measurement spectra until the repeated measurement spectra are <3 or STD<1.5, and the iteration ends to realize the Raman spectrum Identification and elimination of abnormal measurement signals. The iterative process of the total standard deviation of each measured spectrum relative to the average spectrum in the embodiment is shown in Table 2. The obtained remaining similar parallel measurement spectra are shown with reference to FIG. 4 .

表2每条测量光谱相对平均光谱总的标准差Table 2 The total standard deviation of each measured spectrum relative to the average spectrum

利用拉曼光谱进行药品快速检测的过程中易受外界环境各种因素的干扰,这将导致所采集的拉曼光谱数据质量参差不齐。利用本专利所描述的方法则可以有效剔除现场快检中采集到两类信号异常光谱,从而保证药品拉曼光谱信息源质量的可靠性,利于提高基于拉曼光谱的药品快速鉴别结果的准确度。The process of using Raman spectroscopy for rapid drug detection is susceptible to interference from various factors in the external environment, which will lead to uneven quality of the collected Raman spectroscopy data. Using the method described in this patent can effectively eliminate the two types of signal abnormal spectra collected in the on-site quick inspection, so as to ensure the reliability of the quality of drug Raman spectrum information sources, and help improve the accuracy of rapid drug identification results based on Raman spectroscopy .

以上所述,仅为本发明较佳的具体实施方式,本发明的保护范围不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above is only a preferred embodiment of the present invention, and the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. All should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (9)

1. a kind of method for recognizing Raman spectrum exception measuring signal, which is characterized in that the described method comprises the following steps:
Step 1 acquires the spectroscopic data of sample, carries out equal interval sampling to spectroscopic data according to spectra length, forms initial Spectral sequence;
Step 2 calculates spectroscopy signal mean value and standard deviation for the spectrum measured every time, then calculates every in spectral sequence The difference of a absorbance value and mean value constitutes new mean value centralization signal sequence Sc;
Step 3, given threshold think that this puts as useful signal for what Sc sequence intermediate value in the step 2 was greater than the threshold value, It is put into useful signal sequence S;
Step 4, from original spectrum sequence removal be put into the data point of useful signal sequence after, use remaining spectral sequence as New signal sequence Sc, return step three are iterated calculating, until note is remaining without occurring comparing given threshold big signal Spectral sequence is noise sequence R, goes to step five;
Step 5 calculates single measurement light using signal-to-noise ratio formula according to obtained useful signal sequence S and noise sequence R The signal-to-noise ratio of spectrum;
Step 6 rejects invalid spectrum based on signal-to-noise ratio;
It is relatively average to calculate every measure spectrum to the satisfactory parallel determination spectrum of signal-to-noise ratio in same sample for step 7 The standard deviation STD of spectrum;
Step 8, the exceptional spectrum " to peel off " in being measured in parallel is rejected according to the standard deviation STD, is measured in parallel spectrum with residue Repeat step 7, until parallel spectrum item number or STD are less than setting value, iteration terminates, and realizes that Raman spectrum measures extremely The identification and rejecting of signal.
2. a kind of method for recognizing Raman spectrum exception measuring signal according to claim 1, which is characterized in that the letter It makes an uproar and is than formula
3. a kind of method for recognizing Raman spectrum exception measuring signal according to claim 1, which is characterized in that the step In rapid eight, parallel spectrum < 3 or STD < 1.5, iteration terminate.
4. a kind of method for recognizing Raman spectrum exception measuring signal according to claim 1, which is characterized in that step 1 In, acquire the spectroscopic data of sample specifically:
The mass spectrum database method combined using amplitude method and first differential carries out the detection of peak valley point;After the identification of peak valley point, adopt Baseline is determined with tape method, then deducts baseline, the Raman spectrum that can be used for calculating signal-to-noise ratio for the baseline interference that is eliminated.
5. a kind of method for recognizing Raman spectrum exception measuring signal according to claim 1, which is characterized in that the step In rapid one, under the basis for guaranteeing spectral waveform, equal interval sampling is carried out to spectroscopic data according to spectra length, is formed initial Spectral sequence carries out subsequent calculating;According to sampling thheorem, in each interval comprising data points more than minimum adjacent peak valley it Between comprising data points 3 times.
6. a kind of method for recognizing Raman spectrum exception measuring signal according to claim 1, which is characterized in that the step Threshold value in rapid three is determined according to practical application, is one times of standard deviation, twice of standard deviation or three times standard deviation.
7. a kind of method for recognizing Raman spectrum exception measuring signal according to claim 1, which is characterized in that the step Rapid six are specially when Signal to Noise Ratio (SNR) < 10, it is believed that this time is measured as invalid spectrum, it should be rejected.
8. a kind of method for recognizing Raman spectrum exception measuring signal according to claim 1, which is characterized in that the step In rapid eight as the standard deviation STD > 1.5, the exceptional spectrum " to peel off " in being measured in parallel is rejected.
9. a kind of method for recognizing Raman spectrum exception measuring signal according to claim 1, which is characterized in that the step In rapid seven, the satisfactory parallel determination spectrum of signal-to-noise ratio is no less than 3 times in same sample.
CN201910574613.9A 2019-06-28 2019-06-28 Method for identifying abnormal measurement signal of Raman spectrum Active CN110208248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910574613.9A CN110208248B (en) 2019-06-28 2019-06-28 Method for identifying abnormal measurement signal of Raman spectrum

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910574613.9A CN110208248B (en) 2019-06-28 2019-06-28 Method for identifying abnormal measurement signal of Raman spectrum

Publications (2)

Publication Number Publication Date
CN110208248A true CN110208248A (en) 2019-09-06
CN110208248B CN110208248B (en) 2021-11-19

Family

ID=67795265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910574613.9A Active CN110208248B (en) 2019-06-28 2019-06-28 Method for identifying abnormal measurement signal of Raman spectrum

Country Status (1)

Country Link
CN (1) CN110208248B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040204865A1 (en) * 2003-01-07 2004-10-14 Samsung Electronics Co., Ltd. Method of removing abnormal data and blood component spectroscopy analysis system employing the same
US7940961B2 (en) * 2007-12-20 2011-05-10 The United States Of America As Represented By The Secretary Of The Navy Method for enhancing ground-based detection of a moving object
CN102334123A (en) * 2008-12-04 2012-01-25 先正达参股股份有限公司 Statistical validation of candiate genes
CN102540165A (en) * 2011-12-19 2012-07-04 北京师范大学 Method and system for preprocessing MODIS (Moderate-Resolution Imaging Spectroradiometer) surface albedo data
CN102982535A (en) * 2012-11-02 2013-03-20 天津大学 Stereo image quality evaluation method based on peak signal to noise ratio (PSNR) and structural similarity (SSIM)
CN104655585A (en) * 2014-09-29 2015-05-27 南京农业大学 PSE meat screening method based on near infrared spectrum
CN105528776A (en) * 2015-08-07 2016-04-27 上海仙梦软件技术有限公司 Quality assessment method for salient detail preservation in JPEG image format
CN108681515A (en) * 2018-07-20 2018-10-19 南京林业大学 A kind of USB self-powereds chromatographic signal sampling card
CN109100315A (en) * 2018-08-21 2018-12-28 暨南大学 A kind of Wavelength selecting method based on jamtosignal
CN109459409A (en) * 2017-09-06 2019-03-12 盐城工学院 A kind of near-infrared exceptional spectrum recognition methods based on KNN
US20190113447A1 (en) * 2014-07-30 2019-04-18 Smiths Detection Inc. Estimation of water interference for spectral correction

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040204865A1 (en) * 2003-01-07 2004-10-14 Samsung Electronics Co., Ltd. Method of removing abnormal data and blood component spectroscopy analysis system employing the same
US7940961B2 (en) * 2007-12-20 2011-05-10 The United States Of America As Represented By The Secretary Of The Navy Method for enhancing ground-based detection of a moving object
CN102334123A (en) * 2008-12-04 2012-01-25 先正达参股股份有限公司 Statistical validation of candiate genes
CN102540165A (en) * 2011-12-19 2012-07-04 北京师范大学 Method and system for preprocessing MODIS (Moderate-Resolution Imaging Spectroradiometer) surface albedo data
CN102982535A (en) * 2012-11-02 2013-03-20 天津大学 Stereo image quality evaluation method based on peak signal to noise ratio (PSNR) and structural similarity (SSIM)
US20190113447A1 (en) * 2014-07-30 2019-04-18 Smiths Detection Inc. Estimation of water interference for spectral correction
CN104655585A (en) * 2014-09-29 2015-05-27 南京农业大学 PSE meat screening method based on near infrared spectrum
CN105528776A (en) * 2015-08-07 2016-04-27 上海仙梦软件技术有限公司 Quality assessment method for salient detail preservation in JPEG image format
CN109459409A (en) * 2017-09-06 2019-03-12 盐城工学院 A kind of near-infrared exceptional spectrum recognition methods based on KNN
CN108681515A (en) * 2018-07-20 2018-10-19 南京林业大学 A kind of USB self-powereds chromatographic signal sampling card
CN109100315A (en) * 2018-08-21 2018-12-28 暨南大学 A kind of Wavelength selecting method based on jamtosignal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
尹宝全: ""农业数据处理中的异常检测方法研究"", 《中国博士学位论文全文数据库 农业科技辑》 *
王建义 等: ""近红外光谱煤质分析模型中异常样品的剔除方法"", 《工矿自动化》 *
陈斌 等: ""P C A 结合马氏距离法剔除近红外异常样品"", 《江苏大学学报(自然科学版)》 *

Also Published As

Publication number Publication date
CN110208248B (en) 2021-11-19

Similar Documents

Publication Publication Date Title
EP2853885B1 (en) Raman spectrum measuring method for drug inspection
CN101915744B (en) Near infrared spectrum nondestructive testing method and device for material component content
US20100280772A1 (en) Method for detection and automatic identification of damage to rolling bearings
CN117030654B (en) Method for measuring concentration of trace-level sulfur dioxide in air
CN108398416A (en) A kind of mix ingredients assay method based on laser Raman spectroscopy
RU2570592C1 (en) Method of detecting and analysing acoustic emission signals
CN110702663B (en) Nondestructive rapid detection method for storage time of frozen meat
CN105606584A (en) Method and system for identifying consistency of articles by using Raman spectroscopy
CN110108658B (en) A method and system for identifying polluted gas infrared spectrum
WO2020186844A1 (en) Self-adaptive surface absorption spectrum analysis method and system, storage medium, and device
CN111141719A (en) Rapid and nondestructive identification method of anti-AIDS drugs
CN104757938A (en) Near infrared spectrum technology based skin lipid content detection method
US20240324897A1 (en) Method for processing mass spectrometry data obtained from breath gas
CN111521577B (en) Infrared spectrum quantitative analysis method taking carbon dioxide peak area as reference
Risoluti et al. Development of a “single-click” analytical platform for the detection of cannabinoids in hemp seed oil
CN105223140A (en) The method for quickly identifying of homology material
CN113970531B (en) A method for correcting spectrum
CN110208248B (en) Method for identifying abnormal measurement signal of Raman spectrum
CN105259136A (en) Measuring-point-free temperature correction method of near-infrared correction model
CN100529731C (en) Drug distinguishing near infrared spectrum analysis method and apparatus
CN112861411A (en) Biomass sodium content measurement and modeling method based on near infrared spectrum principal component and neural network
CN109520950A (en) The insensitive chemical component spectral method of detection of a kind of pair of spectral shift
CN114324294A (en) Multi-probe Raman Spectroscopy System and Mixed Gas Quantitative Analysis Method
Sakudo et al. Visible and near-infrared spectra collected from the thumbs of patients with chronic fatigue syndrome for diagnosis
CN110553988A (en) NO low-concentration signal extraction method based on superposition state idea

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant