CN117747008B - A method and system for baseline fitting and noise reduction of gas laser absorption spectrum - Google Patents

A method and system for baseline fitting and noise reduction of gas laser absorption spectrum Download PDF

Info

Publication number
CN117747008B
CN117747008B CN202410171508.1A CN202410171508A CN117747008B CN 117747008 B CN117747008 B CN 117747008B CN 202410171508 A CN202410171508 A CN 202410171508A CN 117747008 B CN117747008 B CN 117747008B
Authority
CN
China
Prior art keywords
signal
baseline
noise
neural network
absorbance
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.)
Active
Application number
CN202410171508.1A
Other languages
Chinese (zh)
Other versions
CN117747008A (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.)
Shandong Institute of Commerce and Technology
New Material Institute of Shandong Academy of Sciences
Original Assignee
Shandong Institute of Commerce and Technology
New Material Institute of Shandong Academy of Sciences
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 Shandong Institute of Commerce and Technology, New Material Institute of Shandong Academy of Sciences filed Critical Shandong Institute of Commerce and Technology
Priority to CN202410171508.1A priority Critical patent/CN117747008B/en
Publication of CN117747008A publication Critical patent/CN117747008A/en
Application granted granted Critical
Publication of CN117747008B publication Critical patent/CN117747008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Investigating Or Analysing Materials By Optical Means (AREA)

Abstract

本申请涉及信号处理技术领域,提供一种气体激光吸收光谱的基线拟合及降噪方法、系统。方法包括:向待测气体中发送检测光信号;建立第一数据集和基线拟合神经网络;采用第一数据集训练及测试基线拟合神经网络,得到基线拟合信号;建立第二数据集和噪声抑制神经网络;采用第二数据集训练及测试所述噪声抑制神经网络,得到降噪信号。该基线拟合及降噪方法无需额外增加硬件设备,也不会引入额外的硬件噪声,另外对噪声没有频率限制,相较于现有的处理方法,改善了气体浓度检测中存在的基线信号漂移和噪声干扰的问题,该方法具有处理快、降噪效果好的优点。且该方法不受结构限制,适用于小型系统和短光程的设备,有效降低设备成本,应用范围较广。

The present application relates to the field of signal processing technology, and provides a method and system for baseline fitting and noise reduction of gas laser absorption spectrum. The method comprises: sending a detection light signal to the gas to be tested; establishing a first data set and a baseline fitting neural network; using the first data set to train and test the baseline fitting neural network to obtain a baseline fitting signal; establishing a second data set and a noise suppression neural network; using the second data set to train and test the noise suppression neural network to obtain a noise reduction signal. The baseline fitting and noise reduction method does not require additional hardware equipment, nor does it introduce additional hardware noise. In addition, there is no frequency limit on the noise. Compared with the existing processing methods, the baseline signal drift and noise interference problems existing in gas concentration detection are improved. The method has the advantages of fast processing and good noise reduction effect. Moreover, the method is not limited by the structure, and is suitable for small systems and equipment with short optical paths, which effectively reduces the equipment cost and has a wide range of applications.

Description

一种气体激光吸收光谱的基线拟合及降噪方法、系统A method and system for baseline fitting and noise reduction of gas laser absorption spectrum

技术领域Technical Field

本申请涉及信号处理技术领域,尤其涉及一种气体激光吸收光谱的基线拟合及降噪方法、系统。The present application relates to the field of signal processing technology, and in particular to a baseline fitting and noise reduction method and system for gas laser absorption spectrum.

背景技术Background technique

气体浓度的检测需求广泛于多种领域,通常采用吸收光谱中的直接吸收光谱技术进行气体浓度的获取。The demand for gas concentration detection is widespread in many fields, and direct absorption spectroscopy technology in absorption spectroscopy is usually used to obtain gas concentration.

直接吸收光谱(Direct Absorption Spectroscopy,DAS)技术由于其系统结构简单、操作方便、对探测器的要求相对较低的特点在传感系统的小型化方面展现出了巨大的潜力。然而DAS技术在实际使用中需要一组无吸收信号作为基线信号,通常基线信号的获取都是通过选取透射光谱信号中的“无吸收区”数据进行低阶多项式拟合获得的,但“无吸收区”数据的选择与多项式的选取都是通过经验进行的,没有固定的规则。因此多项式拟合方法获得的基线信号往往存在漂移,具有较大的不确定性,这将会造成测量误差。Direct Absorption Spectroscopy (DAS) technology has shown great potential in the miniaturization of sensing systems due to its simple system structure, convenient operation, and relatively low requirements for detectors. However, in actual use, DAS technology requires a set of non-absorption signals as baseline signals. Usually, the baseline signal is obtained by selecting the "non-absorption area" data in the transmission spectrum signal for low-order polynomial fitting. However, the selection of "non-absorption area" data and polynomials are both based on experience and there are no fixed rules. Therefore, the baseline signal obtained by the polynomial fitting method often has drift and has large uncertainty, which will cause measurement errors.

为了获取较为准确的基线信号,可以采用两束检测光信号,一束用于正常检测,另一束作为参考光的方法,这样得到的基线信号较为准确,但容易产生干涉噪声,由于干涉噪声的存在,会降低气体浓度的检测精度。In order to obtain a more accurate baseline signal, two beams of detection light signals can be used, one for normal detection and the other as a reference light. The baseline signal obtained in this way is more accurate, but it is easy to generate interference noise. Due to the existence of interference noise, the detection accuracy of gas concentration will be reduced.

发明内容Summary of the invention

本申请提供了一种气体激光吸收光谱的基线拟合及降噪方法、系统,以改善气体浓度检测中存在的基线信号漂移和噪声干扰的技术问题。The present application provides a baseline fitting and noise reduction method and system for gas laser absorption spectrum to improve the technical problems of baseline signal drift and noise interference in gas concentration detection.

本申请第一方面提供的气体激光吸收光谱的基线拟合及降噪方法,包括:向待测气体中发送检测光信号;建立第一数据集和基线拟合神经网络;采用第一数据集训练及测试基线拟合神经网络,得到基线拟合信号;其中,基线拟合神经网络的输入为透射光信号,基线拟合神经网络的输出为无吸收基线信号,透射光信号与无吸收基线信号均通过检测光信号处理得到;建立第二数据集和噪声抑制神经网络;其中,第二数据集包括吸光度信号,吸光度信号为无吸收基线信号与透射光信号的比值;采用第二数据集训练及测试噪声抑制神经网络,得到降噪信号,其中,噪声抑制神经网络的输入为吸光度信号,噪声抑制神经网络的输出为高信噪比吸光度信号或无噪声的仿真吸光度信号,高信噪比吸光度信号通过吸光度信号处理得到,无噪声的仿真吸光度信号通过仿真程序处理得到。The first aspect of the present application provides a baseline fitting and noise reduction method for gas laser absorption spectrum, comprising: sending a detection light signal to the gas to be tested; establishing a first data set and a baseline fitting neural network; using the first data set to train and test the baseline fitting neural network to obtain a baseline fitting signal; wherein the input of the baseline fitting neural network is a transmitted light signal, and the output of the baseline fitting neural network is a non-absorption baseline signal, and both the transmitted light signal and the non-absorption baseline signal are obtained by processing the detection light signal; establishing a second data set and a noise suppression neural network; wherein the second data set includes an absorbance signal, and the absorbance signal is the ratio of the non-absorption baseline signal to the transmitted light signal; using the second data set to train and test the noise suppression neural network to obtain a noise reduction signal, wherein the input of the noise suppression neural network is an absorbance signal, and the output of the noise suppression neural network is a high signal-to-noise ratio absorbance signal or a noise-free simulated absorbance signal, and the high signal-to-noise ratio absorbance signal is obtained by processing the absorbance signal, and the noise-free simulated absorbance signal is obtained by processing the simulation program.

在一些可行的实现中,建立第一数据集包括:获取多个基线训练数据和多个基线测试数据;其中,基线训练数据和基线测试数据均通过检测光信号得到,基线训练数据包括第一透射光信号和第一无吸收基线信号,基线测试数据包括第二透射光信号和第二无吸收基线信号;对基线训练数据和基线测试数据以第一特征选取原则进行选取,得到第一数据集。In some feasible implementations, establishing a first data set includes: acquiring multiple baseline training data and multiple baseline test data; wherein the baseline training data and the baseline test data are both obtained by detecting light signals, the baseline training data include a first transmitted light signal and a first non-absorption baseline signal, and the baseline test data include a second transmitted light signal and a second non-absorption baseline signal; the baseline training data and the baseline test data are selected according to a first feature selection principle to obtain the first data set.

在一些可行的实现中,建立第二数据集包括:获取多个降噪训练数据和多个降噪测试数据,其中,降噪训练数据包括第一吸光度信号以及,第一高信噪比吸光度信号或无噪声的第一仿真吸光度信号,降噪测试数据包括第二吸光度信号以及,第二高信噪比信号或无噪声的第二仿真吸光度信号;对降噪训练数据和降噪测试数据以第二特征选取的原则进行选取,得到第二数据集。In some feasible implementations, establishing the second data set includes: acquiring multiple noise reduction training data and multiple noise reduction test data, wherein the noise reduction training data includes a first absorbance signal and a first high signal-to-noise ratio absorbance signal or a noise-free first simulated absorbance signal, and the noise reduction test data includes a second absorbance signal and a second high signal-to-noise ratio signal or a noise-free second simulated absorbance signal; selecting the noise reduction training data and the noise reduction test data according to the second feature selection principle to obtain the second data set.

在一些可行的实现中,第一特征选取原则为将第一透射光信号和第二透射光信号的吸收峰对应的数值设置为零;第二特征选取原则为将第一吸光度信号和第二吸光度信号的吸收峰采用洛伦兹线型函数进行拟合;其中,洛伦兹线型函数为:In some feasible implementations, the first feature selection principle is to set the values corresponding to the absorption peaks of the first transmitted light signal and the second transmitted light signal to zero; the second feature selection principle is to fit the absorption peaks of the first absorbance signal and the second absorbance signal using a Lorentzian linear function; wherein the Lorentzian linear function for:

;

为待测气体的分子吸光度谱线的中心频率,/>代表待测气体的分子吸光度谱线的半高全宽,/>为激光器的出射光频率。 is the center frequency of the molecular absorbance spectrum of the gas to be measured, /> Represents the full width at half maximum of the molecular absorbance spectrum of the gas to be measured,/> is the frequency of the laser's output light.

在一些可行的实现中,基线拟合神经网络和噪声抑制神经网络均包括输入层、第一隐含层、第二隐含层和输出层;其中,输入层与第一隐含层之间、第一隐含层与第二隐含层之间、第二隐含层与第三隐含层之间的激活函数均为Sigmoid函数:In some feasible implementations, the baseline fitting neural network and the noise suppression neural network both include an input layer, a first hidden layer, a second hidden layer, and an output layer; wherein the activation functions between the input layer and the first hidden layer, between the first hidden layer and the second hidden layer, and between the second hidden layer and the third hidden layer are all Sigmoid functions:

;

其中,为自然常数,/>为输入层或第一隐含层或第二隐含层的输入光谱数据;第三隐含层与输出层之间的激活函数为/>;其中,/>为第三隐含层的输出光谱数据。in, is a natural constant, /> is the input spectrum data of the input layer or the first hidden layer or the second hidden layer; the activation function between the third hidden layer and the output layer is/> ; Among them, /> is the output spectral data of the third hidden layer.

在一些可行的实现中,基线拟合神经网络和噪声抑制神经网络的损失函数相同;基线拟合神经网络和噪声抑制神经网络的训练方法相同。In some feasible implementations, the loss function of the baseline fitting neural network and the noise suppression neural network is the same; the training method of the baseline fitting neural network and the noise suppression neural network is the same.

在一些可行的实现中,基线拟合神经网络采用均方误差进行测试,均方误差MSE为:In some feasible implementations, the baseline fitted neural network is tested using the mean square error, and the mean square error MSE is:

;

其中,为训练后的基线拟合神经网络的输出值,/>是第二无吸收基线信号;i为第i个光谱数据,n为输入光谱数据的个数。in, The output value of the baseline fitted neural network after training, /> is the second non-absorption baseline signal; i is the ith spectral data, and n is the number of input spectral data.

在一些可行的实现中,噪声抑制神经网络采用信噪比函数进行测试,信噪比函数SNR为:In some feasible implementations, the noise suppression neural network is tested using a signal-to-noise ratio function, where the signal-to-noise ratio function SNR is:

;

其中,为第二吸光度信号的吸收峰峰值,/>为第二吸光度信号的非吸收峰部分。in, is the peak value of the absorption peak of the second absorbance signal, /> is the non-absorption peak part of the second absorbance signal.

在一些可行的实现中,气体激光吸收光谱的基线拟合及降噪方法还包括:根据降噪信号计算待测气体的浓度。In some feasible implementations, the baseline fitting and noise reduction method for gas laser absorption spectrum further includes: calculating the concentration of the gas to be measured based on the noise reduction signal.

本申请第二方面提供的气体激光吸收光谱的基线拟合及降噪系统,包括发送模块;被配置为,向待测气体中发送检测光信号;第一建立模块,被配置为,建立第一数据集和基线拟合神经网络;第一训练及测试模块,被配置为,采用第一数据集训练及测试基线拟合神经网络,得到基线拟合信号;其中,基线拟合神经网络的输入为透射光信号,基线拟合神经网络的输出为无吸收基线信号,透射光信号与无吸收基线信号均通过检测光信号处理得到;第二建立模块,被配置为,建立第二数据集和噪声抑制神经网络;其中,第二数据集包括吸光度信号,吸光度信号为无吸收基线信号与透射光信号的比值;第二训练及测试模块,被配置为,采用第二数据集训练及测试噪声抑制神经网络,得到降噪信号;其中,噪声抑制神经网络的输入为吸光度信号,噪声抑制神经网络的输出为高信噪比吸光度信号通过吸光度信号处理得到,无噪声的仿真吸光度信号,无噪声的仿真吸光度信号通过仿真程序处理得到。The second aspect of the present application provides a baseline fitting and noise reduction system for gas laser absorption spectra, including a sending module; configured to send a detection light signal to the gas to be tested; a first establishment module, configured to establish a first data set and a baseline fitting neural network; a first training and testing module, configured to use the first data set to train and test the baseline fitting neural network to obtain a baseline fitting signal; wherein the input of the baseline fitting neural network is a transmitted light signal, and the output of the baseline fitting neural network is a non-absorption baseline signal, and both the transmitted light signal and the non-absorption baseline signal are obtained by processing the detection light signal; the second establishment module, configured to establish a second data set and a noise suppression neural network; wherein the second data set includes an absorbance signal, and the absorbance signal is the ratio of the non-absorption baseline signal to the transmitted light signal; the second training and testing module, configured to use the second data set to train and test the noise suppression neural network to obtain a noise reduction signal; wherein the input of the noise suppression neural network is an absorbance signal, and the output of the noise suppression neural network is a high signal-to-noise ratio absorbance signal obtained by processing the absorbance signal, a noise-free simulated absorbance signal, and the noise-free simulated absorbance signal is obtained by processing the simulation program.

本申请中的气体激光吸收光谱的基线拟合及降噪方法,能够根据透射光信号自适应拟合出基线信号,并可以有效的抑制原始的吸光度信号中的噪声。且该方法不受结构限制,适用于小型系统和短光程的设备,应用范围较广。The baseline fitting and noise reduction method of the gas laser absorption spectrum in the present application can adaptively fit the baseline signal according to the transmitted light signal, and can effectively suppress the noise in the original absorbance signal. Moreover, the method is not limited by the structure, is suitable for small systems and short optical path devices, and has a wide range of applications.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

图1为本申请实施例提供的一种气体激光吸收光谱的基线拟合及降噪方法的流程示意图;FIG1 is a schematic flow chart of a baseline fitting and noise reduction method for gas laser absorption spectrum provided in an embodiment of the present application;

图2a为本申请实施例提供的透射光信号的示意图;FIG2a is a schematic diagram of a transmission light signal provided in an embodiment of the present application;

图2b为本申请实施例提供的采用第一特征选择原则进行特征选择的示意图;FIG2b is a schematic diagram of feature selection using the first feature selection principle provided in an embodiment of the present application;

图3为本申请实施例提供的一种训练及测试基线拟合神经网络的流程示意图;FIG3 is a schematic diagram of a process of training and testing a baseline fitting neural network provided in an embodiment of the present application;

图4为本申请实施例提供的一种仿真与原始的吸光度信号对比示意图;FIG4 is a schematic diagram showing a comparison between a simulated and an original absorbance signal provided in an embodiment of the present application;

图5a为本申请实施例提供的混合气体的原始的吸光度信号示意图;FIG5a is a schematic diagram of the original absorbance signal of the mixed gas provided in an embodiment of the present application;

图5b为本申请实施例提供的缩放后的混合气体的吸光度示意图;FIG5 b is a schematic diagram of the absorbance of the scaled mixed gas provided in an embodiment of the present application;

图6为本申请实施例提供的采用第二特征选择原则进行特征选择的示意图;FIG6 is a schematic diagram of feature selection using the second feature selection principle provided in an embodiment of the present application;

图7为本申请实施例提供的一种训练及测试噪声抑制神经网络的流程示意图;FIG7 is a schematic diagram of a process of training and testing a noise suppression neural network provided in an embodiment of the present application;

图8为本申请实施例提供的一种气体激光吸收光谱的基线拟合及降噪方法具体应用的流程示意图;FIG8 is a schematic flow chart of a specific application of a method for baseline fitting and noise reduction of a gas laser absorption spectrum provided in an embodiment of the present application;

图9为本申请实施例提供的一种基线拟合的效果示意图;FIG9 is a schematic diagram of the effect of a baseline fitting provided in an embodiment of the present application;

图10a为本申请实施例提供的原始吸光度信号的示意图;FIG10a is a schematic diagram of an original absorbance signal provided in an embodiment of the present application;

图10b为本申请实施例提供的降噪后的吸光度信号的示意图;FIG10b is a schematic diagram of an absorbance signal after noise reduction provided in an embodiment of the present application;

图11为本申请实施例提供的一种气体激光吸收光谱的基线拟合及降噪系统的结构框图;FIG11 is a structural block diagram of a baseline fitting and noise reduction system for gas laser absorption spectrum provided in an embodiment of the present application;

图12为本申请实施例提供的气体激光吸收光谱的基线拟合及降噪系统的结构示意图。FIG. 12 is a schematic diagram of the structure of a baseline fitting and noise reduction system for gas laser absorption spectra provided in an embodiment of the present application.

图示标记:Graphic marking:

100-基线拟合及降噪系统;101-发送模块;102-第一建立模块;103-第一训练及测试模块;104-第二建立模块;105-第二训练及测试模块。100 - baseline fitting and noise reduction system; 101 - sending module; 102 - first establishment module; 103 - first training and testing module; 104 - second establishment module; 105 - second training and testing module.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述。显然,所描述的实施例是本申请的一部分实施例,而不是全部实施例。基于本申请的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所得到的其他实施例,都属于本申请的保护范围。The technical solutions in the embodiments of the present application will be described clearly below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments of the present application, other embodiments obtained by ordinary technicians in this field without making creative work all belong to the protection scope of the present application.

以下,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”等的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the following, the terms "first", "second", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", etc. may explicitly or implicitly include one or more of the feature. In the description of this application, unless otherwise specified, "plurality" means two or more.

此外,本申请中,“上”、“下”、“内”、“外”等方位术语是相对于附图中的部件示意置放的方位来定义的,应当理解到,这些方向性术语是相对的概念,它们用于相对于的描述和澄清,其可以根据附图中部件所放置的方位的变化而相应地发生变化。In addition, in the present application, directional terms such as "upper", "lower", "inner" and "outer" are defined relative to the orientation of the components in the drawings. It should be understood that these directional terms are relative concepts. They are used for relative description and clarification, and they can change accordingly according to the changes in the orientation of the components in the drawings.

气体浓度检测需求广泛存在于工业生产安全、环境监测、深空深海探测、能源生产利用等领域,光学检测方法由于其响应速度快、安全性高、非侵入测量以及在小型化和低功耗上的巨大潜力,成为当前气体检测技术中最具有发展前景的技术路线之一。The demand for gas concentration detection is widely present in the fields of industrial production safety, environmental monitoring, deep space and deep sea exploration, energy production and utilization, etc. Optical detection methods have become one of the most promising technical routes in current gas detection technology due to their fast response speed, high safety, non-invasive measurement, and great potential in miniaturization and low power consumption.

直接吸收光谱技术(DAS)由于其系统结构简单、操作方便、对探测器的要求相对较低的特点在传感系统的小型化方面展现出了巨大的潜力。然而DAS技术在实际使用中需要一组无吸收信号作为基线信号,通常基线信号的获取都是通过选取透射光谱信号中的“无吸收区”数据进行低阶多项式拟合获得的,但“无吸收区”数据的选择与多项式的选取都是通过经验进行的,没有固定的规则。因此多项式拟合方法获得的基线信号往往存在漂移,具有较大的不确定性,这将会造成测量误差。如待测气体浓度低、吸收谱线强度弱、有效光程太短等弱吸收条件下,由多项式拟合基线造成的测量误差往往是不可接受的。Direct absorption spectroscopy (DAS) has shown great potential in the miniaturization of sensing systems due to its simple system structure, convenient operation, and relatively low requirements for detectors. However, in actual use, DAS technology requires a set of non-absorption signals as baseline signals. Usually, the baseline signal is obtained by selecting the "non-absorption area" data in the transmission spectrum signal for low-order polynomial fitting. However, the selection of "non-absorption area" data and the selection of polynomials are both based on experience and there are no fixed rules. Therefore, the baseline signal obtained by the polynomial fitting method often has drift and has large uncertainty, which will cause measurement errors. Under weak absorption conditions such as low concentration of the gas to be measured, weak absorption line intensity, and too short effective optical path, the measurement error caused by the polynomial fitting baseline is often unacceptable.

为计算气体浓度,需要通过基线拟合信号和透射光谱信号作比计算出原始吸光度信号,原始吸光度信号不可避免地受各种噪声的干扰包括光路以及电路上的各种噪声,这些噪声的存在会降低系统的检测性能,特别是在系统小型化和短光程的条件下噪声造成的影响相对更大,因此对检测信号进行降噪处理是十分必要的。常用的降噪方法有多次信号累加平均以及S-G滤波等方法。多次平均法对白噪声具有非常好的降噪效果,但理论上降噪效果往往取决于平均次数,而实际应用中受测量响应时间要求和硬件成本等限制,平均次数不能无限增加。S-G滤波广泛应用于数据平滑处理,其在滤除高频噪声的同时还可以确保信号的形状不变,但对局部突变信号的处理可能会造成较大的误差,另外对低频噪声的滤除往往会导致信号扭曲和幅值消减的现象,导致降噪效果不好。In order to calculate the gas concentration, it is necessary to calculate the original absorbance signal by comparing the baseline fitting signal with the transmission spectrum signal. The original absorbance signal is inevitably interfered by various noises, including various noises in the optical path and circuit. The existence of these noises will reduce the detection performance of the system, especially under the conditions of system miniaturization and short optical path. The impact of noise is relatively greater, so it is necessary to perform noise reduction on the detection signal. Commonly used noise reduction methods include multiple signal accumulation and averaging and S-G filtering. The multiple averaging method has a very good noise reduction effect on white noise, but in theory, the noise reduction effect often depends on the number of averages. In practical applications, the number of averages cannot be increased indefinitely due to the measurement response time requirements and hardware costs. S-G filtering is widely used in data smoothing processing. It can filter out high-frequency noise while ensuring that the shape of the signal remains unchanged, but the processing of local mutation signals may cause large errors. In addition, filtering out low-frequency noise often leads to signal distortion and amplitude reduction, resulting in poor noise reduction effect.

为解决上述技术问题,本申请实施例提供一种气体激光吸收光谱的基线拟合及降噪方法。该方法无需额外增加硬件设备,也不会引入额外的硬件噪声,另外对噪声没有频率限制,相较于现有的处理方法,该方法具有处理快、降噪效果好的优点。In order to solve the above technical problems, the embodiment of the present application provides a baseline fitting and noise reduction method for gas laser absorption spectrum. The method does not require additional hardware equipment, does not introduce additional hardware noise, and has no frequency limit on the noise. Compared with the existing processing methods, the method has the advantages of fast processing and good noise reduction effect.

图1为本申请实施例提供的一种气体激光吸收光谱的基线拟合及降噪方法的流程示意图。FIG1 is a schematic flow chart of a baseline fitting and noise reduction method for a gas laser absorption spectrum provided in an embodiment of the present application.

参见图1,该方法可以由以下步骤S100至步骤S500所实现。Referring to FIG. 1 , the method may be implemented by the following steps S100 to S500 .

步骤S100:向待测气体中发送检测光信号。Step S100: sending a detection light signal to the gas to be tested.

步骤S200:建立第一数据集和基线拟合神经网络。Step S200: Establishing a first data set and a baseline fitting neural network.

在步骤S200中,可以先建立第一数据集,后建立基线拟合神经网络。In step S200, a first data set may be established first, and then a baseline fitting neural network may be established.

在建立第一数据集时,可以采用以下步骤S201和步骤S202。When establishing the first data set, the following steps S201 and S202 may be adopted.

步骤S201:获取多个基线训练数据和多个基线测试数据。Step S201: Acquire a plurality of baseline training data and a plurality of baseline test data.

其中,基线训练数据和基线测试数据均通过检测光信号得到,基线训练数据用于后续对基线拟合神经网络执行训练操作,基线测试数据用于后续对基线拟合神经网络执行测试操作。The baseline training data and the baseline test data are both obtained by detecting light signals. The baseline training data is used for subsequent training operations on the baseline fitting neural network, and the baseline test data is used for subsequent testing operations on the baseline fitting neural network.

具体的,基线训练数据包括第一透射光信号和第一无吸收基线信号,基线测试数据包括第二透射光信号和第二无吸收基线信号。其中,本申请实施例中提供的透射光信号是一种光谱信号。Specifically, the baseline training data includes a first transmitted light signal and a first non-absorption baseline signal, and the baseline test data includes a second transmitted light signal and a second non-absorption baseline signal. The transmitted light signal provided in the embodiment of the present application is a spectral signal.

也就是说,基线训练数据和基线测试数据中均包括透射光信号和无吸收基线信号。That is, both the baseline training data and the baseline test data include the transmitted light signal and the non-absorption baseline signal.

具体的,直接吸收光谱技术通常需要一组稳定的无吸收信号作为基线信号,但由于非制冷光电探测器的使用,使得其探测效果易受外界环境温度的变化以及自身工作造成的积热影响,导致基线信号出现偏移,造成检测误差。但外界环境温度及探测器工作造成的温度变化在短时间内是可以忽略不计的,因此本申请实施例中,可以通过短时间内连续测量不同浓度气体的第一透射光信号及其对应的第一无吸收基线信号、第二透射光信号及其对应的第二无吸收基线信号,并建立他们之间的映射关系,从而得到基线训练数据和基线测试数据。Specifically, direct absorption spectroscopy technology usually requires a set of stable non-absorption signals as baseline signals, but due to the use of non-cooled photodetectors, their detection effect is susceptible to changes in the external ambient temperature and the heat accumulation caused by their own work, resulting in a baseline signal offset, causing detection errors. However, the temperature changes caused by the external ambient temperature and the detector work are negligible in a short period of time. Therefore, in the embodiment of the present application, the first transmitted light signal of different concentrations of gas and its corresponding first non-absorption baseline signal, the second transmitted light signal and its corresponding second non-absorption baseline signal can be continuously measured in a short period of time, and a mapping relationship between them can be established to obtain baseline training data and baseline test data.

这样,第一透射光信号和第二透射光信号的数量均为多个,第一透射光信号和第二透射光信号可以为待测气体在不同浓度条件下的透射光信号。第一无吸收基线信号的数量与第一透射光信号的数量相同,第二无吸收基线信号的数量与第二透射光信号的数量相同。In this way, the number of the first transmission light signal and the second transmission light signal are both multiple, and the first transmission light signal and the second transmission light signal can be transmission light signals of the gas to be measured under different concentration conditions. The number of the first non-absorption baseline signal is the same as the number of the first transmission light signal, and the number of the second non-absorption baseline signal is the same as the number of the second transmission light signal.

步骤S202:对基线训练数据和基线测试数据以第一特征选取原则进行选取,得到第一数据集。Step S202: Select the baseline training data and the baseline test data according to the first feature selection principle to obtain a first data set.

其中,第一特征选择的原则为:将第一透射光信号和第二透射光信号的吸收峰对应的数值设置为零。The principle of the first feature selection is: setting the values corresponding to the absorption peaks of the first transmitted light signal and the second transmitted light signal to zero.

具体的,第一透射光信号和第二透射光信号中受浓度效应影响,会降低透射光信号和无吸收基线信号之间的相关性,增大网络训练难度。因此,为尽量消除浓度效应的影响,将第一透射光信号和第二透射光信号中受浓度影响的部分,也就是吸收峰范围内对应的数值设置为零,其余部分不做处理。Specifically, the first transmitted light signal and the second transmitted light signal are affected by the concentration effect, which will reduce the correlation between the transmitted light signal and the non-absorption baseline signal and increase the difficulty of network training. Therefore, in order to eliminate the influence of the concentration effect as much as possible, the part of the first transmitted light signal and the second transmitted light signal affected by the concentration, that is, the corresponding value within the absorption peak range is set to zero, and the rest is not processed.

图2a为本申请实施例提供的透射光信号的示意图。FIG. 2 a is a schematic diagram of a transmitted light signal provided in an embodiment of the present application.

图2b为本申请实施例提供的采用第一特征选择原则进行特征选择的示意图。FIG2b is a schematic diagram of feature selection using the first feature selection principle provided in an embodiment of the present application.

在一个具体的实现中,参见图2a和图2b,展示了基线拟合神经网络的特征选取结果,其中,横坐标为波数,纵坐标为透射光信号。图2a中透射光信号是通过探测检测光信号得到的,透射光信号由于待测气体的吸收作用会产生凹陷,而待测气体的浓度的不同将导致不同程度的凹陷,由此便引入了浓度效应。为了降低浓度效应的影响,需要将上述凹陷部分的值设置为0,将透射光信号的剩余部分作为特征,至此便完成了基线拟合神经网络的输入信号的特征选择,最终输入基线拟合神经网络的信号如图2b中点划线曲线所示。In a specific implementation, see Figures 2a and 2b, which show the feature selection results of the baseline fitting neural network, where the horizontal axis is the wave number and the vertical axis is the transmitted light signal. The transmitted light signal in Figure 2a is obtained by detecting the detection light signal. The transmitted light signal will produce a depression due to the absorption of the gas to be measured, and the different concentrations of the gas to be measured will cause different degrees of depression, thereby introducing the concentration effect. In order to reduce the influence of the concentration effect, it is necessary to set the value of the above-mentioned depressed part to 0, and use the remaining part of the transmitted light signal as a feature. At this point, the feature selection of the input signal of the baseline fitting neural network is completed, and the final signal input to the baseline fitting neural network is shown as the dot-dash curve in Figure 2b.

这样,对第一透射光信号和第二透射光信号进行处理之后,即可得到第一数据集。具体的,第一数据集可以包括第一训练数据集和第一测试数据集,第一训练数据集包括处理后的第一透射光信号和第一无吸收基线信号,第一测试数据集包括处理后的第二透射光信号和第二无吸收基线信号。In this way, after processing the first transmitted light signal and the second transmitted light signal, a first data set can be obtained. Specifically, the first data set may include a first training data set and a first test data set, the first training data set includes the processed first transmitted light signal and the first non-absorption baseline signal, and the first test data set includes the processed second transmitted light signal and the second non-absorption baseline signal.

而在建立第一数据库之后,可以建立基线拟合神经网络。After the first database is established, a baseline fitting neural network can be established.

基线拟合神经网络的建立主要以不同浓度待测气体的透射光谱信号作为输入信号,而其对应的无吸收基线信号作为基线拟合神经网络的输出信号。The establishment of the baseline fitting neural network mainly takes the transmission spectrum signal of the gas to be tested with different concentrations as the input signal, and the corresponding non-absorption baseline signal as the output signal of the baseline fitting neural network.

步骤S300:采用第一数据集训练及测试基线拟合神经网络,得到基线拟合信号。Step S300: using the first data set to train and test the baseline fitting neural network to obtain a baseline fitting signal.

其中,基线拟合神经网络的输入为透射光信号,基线拟合神经网络的输出为无吸收基线信号,透射光信号与无吸收基线信号均通过检测光信号处理得到。The input of the baseline fitting neural network is the transmitted light signal, and the output of the baseline fitting neural network is the non-absorption baseline signal. Both the transmitted light signal and the non-absorption baseline signal are obtained by processing the detected light signal.

具体的,可以先采用第一数据集中的第一训练数据集训练基线拟合神经网络,再采用第一数据集中的第一测试数据集对训练后的基线拟合神经网络进行测试。Specifically, the baseline fitting neural network may be trained by using a first training data set in the first data set, and then the trained baseline fitting neural network may be tested by using a first test data set in the first data set.

图3为本申请实施例提供的一种训练及测试基线拟合神经网络的流程示意图。FIG3 is a schematic diagram of a process of training and testing a baseline fitting neural network provided in an embodiment of the present application.

参见图3,在一个具体的实现中,步骤S300可以由以下步骤S301-步骤S306所实现。Referring to FIG. 3 , in a specific implementation, step S300 may be implemented by the following steps S301 to S306 .

步骤S301:探测器探测得到的透射光谱信号(训练数据),透射光谱信号对应的目标基线信号(标签)。Step S301: The detector detects the transmission spectrum signal (training data) obtained, and the target baseline signal (label) corresponding to the transmission spectrum signal.

其中,透射光谱信号即为透射光信号,目标基线信号即为无吸收基线信号。Among them, the transmission spectrum signal is the transmission light signal, and the target baseline signal is the non-absorption baseline signal.

在步骤S301中,训练数据作为基线拟合神经网络的输入数据,标签作为基线拟合神经网络的输出数据。In step S301, the training data is used as input data of the baseline fitting neural network, and the label is used as output data of the baseline fitting neural network.

步骤S302:初始化的基线拟合神经网络。Step S302: Initialize the baseline fitting neural network.

步骤S303:训练。Step S303: training.

步骤S304:拟合的基线信号。Step S304: Fitting baseline signal.

拟合的基线信号即为基线拟合信号。The fitted baseline signal is the baseline fitting signal.

步骤S305:判断拟合的基线与目标基线之间的均方误差是否满足要求。若结果为是,则完成训练和测试过程,若结果为否,则执行步骤S306。Step S305: Determine whether the mean square error between the fitted baseline and the target baseline meets the requirement. If the result is yes, the training and testing process is completed, and if the result is no, step S306 is executed.

步骤S306:调整基线拟合神经网络结构及参数。并执行步骤S303。Step S306: Adjust the baseline fitting neural network structure and parameters, and execute step S303.

在步骤S306中,可以使用均方误差(MSE)判断训练出来的网络是否满足要求,均方误差表达式如下:In step S306, the mean square error (MSE) can be used to determine whether the trained network meets the requirements. The mean square error expression is as follows:

;

其中,为预测值,也就是训练后的基线拟合神经网络的输出值,/>是标签值,也就是目标基线信号,也即第二无吸收基线信号,i为第i个光谱数据,n为输入光谱数据的个数。in, is the predicted value, that is, the output value of the baseline fitting neural network after training,/> is the label value, that is, the target baseline signal, that is, the second non-absorption baseline signal, i is the i-th spectrum data, and n is the number of input spectrum data.

具体的,在完成训练之后,还可以通过第一测试数据集对基线拟合神经网络进行测试,从而实现基线拟合神经网络的优化。Specifically, after the training is completed, the baseline fitting neural network may be tested using the first test data set, thereby optimizing the baseline fitting neural network.

步骤S400:建立第二数据集和噪声抑制神经网络。Step S400: Establish a second data set and a noise suppression neural network.

其中,第二数据集包括吸光度信号,吸光度信号为无吸收基线信号与透射光信号的比值。The second data set includes an absorbance signal, which is a ratio of a non-absorption baseline signal to a transmitted light signal.

具体的,步骤S400中,可以先建立第二数据集,再建立噪声抑制神经网络。Specifically, in step S400, the second data set may be established first, and then the noise suppression neural network may be established.

建立第二数据集可以由以下步骤S401至步骤S402所实现。The second data set can be established by following steps S401 to S402.

步骤S401:获取多个降噪训练数据和多个降噪测试数据。Step S401: Acquire a plurality of denoising training data and a plurality of denoising test data.

其中,降噪训练数据包括第一吸光度信号以及,第一高信噪比吸光度信号或无噪声的第一仿真吸光度信号,降噪测试数据包括第二吸光度信号以及,第二高信噪比吸光度信号或无噪声的第二仿真吸光度信号。其中,第一吸光度信号可以由第一无吸收基线信号比第一透射光信号计算得到,第二吸光度信号可以由第二无吸收基线信号比第二透射光信号计算得到。The noise reduction training data includes a first absorbance signal and a first high signal-to-noise ratio absorbance signal or a noise-free first simulated absorbance signal, and the noise reduction test data includes a second absorbance signal and a second high signal-to-noise ratio absorbance signal or a noise-free second simulated absorbance signal. The first absorbance signal can be calculated by comparing the first non-absorption baseline signal to the first transmitted light signal, and the second absorbance signal can be calculated by comparing the second non-absorption baseline signal to the second transmitted light signal.

其中,无噪声的仿真吸光度信号优先输出,在无法输出无噪声的仿真吸光度信号或者无法更好的输出无噪声的仿真吸光度信号时,选择输出高信噪比吸光度信号。由于原始的吸光度信号与相同条件下的仿真吸光度信号之间有时会存在不可忽视的差异,此时的仿真吸光度信号便不能作为噪声抑制神经网络的输出信号,这时往往会将与输入信号存在线性关系的高浓度原始的吸光度信号通过线性缩放的方法作为输出信号。其中,原始的吸光度信号表示未进行降噪处理的吸光度信号,也就是噪声抑制神经网络的输入信号。Among them, the noise-free simulated absorbance signal is output first. When the noise-free simulated absorbance signal cannot be output or the noise-free simulated absorbance signal cannot be output better, the high signal-to-noise ratio absorbance signal is selected for output. Because there is sometimes a non-negligible difference between the original absorbance signal and the simulated absorbance signal under the same conditions, the simulated absorbance signal at this time cannot be used as the output signal of the noise suppression neural network. At this time, the high-concentration original absorbance signal that has a linear relationship with the input signal is often used as the output signal through a linear scaling method. Among them, the original absorbance signal represents the absorbance signal that has not been subjected to noise reduction processing, that is, the input signal of the noise suppression neural network.

图4为本申请实施例提供的一种仿真与原始的吸光度信号对比示意图。FIG. 4 is a schematic diagram showing a comparison between a simulated and an original absorbance signal provided in an embodiment of the present application.

参见图4,以50ppm乙烷和40ppm甲烷混合气体在常温常压下的吸光度信号为例,展示了混合气体的仿真吸光度与原始的吸光度信号之间存在明显差异的情况。Referring to FIG. 4 , taking the absorbance signal of a mixed gas of 50 ppm ethane and 40 ppm methane at room temperature and pressure as an example, it is shown that there is an obvious difference between the simulated absorbance of the mixed gas and the original absorbance signal.

直接吸收光谱技术基于比尔——朗伯定律,当激光器发出的光的波长覆盖待测气体的特征吸收谱线时,响应波长处的光子能量会被待测气体分子吸收,使得检测端上的出射光的光功率产生衰减,并符合以下公式:Direct absorption spectroscopy technology is based on the Beer-Lambert law. When the wavelength of the light emitted by the laser covers the characteristic absorption spectrum of the gas to be measured, the photon energy at the response wavelength will be absorbed by the gas molecules to be measured, causing the optical power of the outgoing light at the detection end to attenuate and conform to the following formula:

;

其中表示透射光强,这里即为经过待测气体吸收后的探测信号;/>表示出射光强,在实际检测中通氮气时的探测信号来获得;/>为激光器的出射光频率,/>为吸收系数,/>为待测气体浓度,/>为有效光程。in Indicates the intensity of transmitted light, which is the detection signal after being absorbed by the gas to be tested; /> Indicates the intensity of emitted light, which is obtained by the detection signal when nitrogen is passed in actual detection; /> is the output light frequency of the laser, /> is the absorption coefficient, /> is the concentration of the gas to be measured, /> is the effective optical path.

而在实际检测中是通过吸光度来反演出气体浓度以实现检测的,一般对吸光度定义为:In actual detection, the gas concentration is reflected by absorbance to achieve detection. defined as:

;

其中S(T)为吸收谱线强度,T为温度;P为压强,为洛伦兹线型函数。Where S(T) is the intensity of the absorption line, T is the temperature, and P is the pressure. is a Lorentzian linear function.

通过上述公式可以发现,在其他条件相同时,吸光度信号与气体浓度之间存在线性关系。因此理论上可以通过将高浓度吸光度信号按照浓度比进行线性缩放的方法来得到低浓度的吸光度信号,由于系统噪声是固定的,而高浓度条件下吸光度信号较大,噪声相对较小,因此通过上述方法是可以得到更高信噪比的吸光度信号。From the above formula, it can be found that when other conditions are the same, there is a linear relationship between the absorbance signal and the gas concentration. Therefore, in theory, the absorbance signal of low concentration can be obtained by linearly scaling the high concentration absorbance signal according to the concentration ratio. Since the system noise is fixed, and the absorbance signal is larger under high concentration conditions and the noise is relatively small, the absorbance signal with a higher signal-to-noise ratio can be obtained through the above method.

步骤S402:对降噪训练数据和降噪测试数据以第二特征选取的原则进行选取,得到第二数据集。Step S402: selecting the denoised training data and the denoised test data based on the second feature selection principle to obtain a second data set.

其中,第二特征选取原则是,可以通过洛伦兹线型函数对第一吸光度信号和第二吸光度中的吸收峰对应的数值进行拟合,而其余部分的值设置为零。The second feature selection principle is that the numerical values corresponding to the absorption peaks in the first absorbance signal and the second absorbance can be fitted by a Lorentz linear function, and the values of the remaining parts are set to zero.

具体的,洛伦兹线型函数为:Specifically, the Lorentz line function for:

;

为待测气体的分子吸光度谱线的中心频率,/>为待测气体的分子吸光度谱线的半高全宽,/>为激光器的出射光频率。 is the center frequency of the molecular absorbance spectrum of the gas to be measured, /> is the half-maximum full width of the molecular absorbance spectrum of the gas to be measured, /> is the output light frequency of the laser.

图5a为本申请实施例提供的混合气体的原始的吸光度信号示意图。FIG5 a is a schematic diagram of the original absorbance signal of the mixed gas provided in an embodiment of the present application.

图5b为本申请实施例提供的缩放后的混合气体的吸光度示意图。FIG5 b is a schematic diagram of the absorbance of the scaled mixed gas provided in an embodiment of the present application.

针对上述图4中的问题,参见图5a和图5b,可以通过将原始的500ppm乙烷和400ppm甲烷混合气体吸光度信号缩减10倍的方法来校正,近似得到高信噪比的50ppm乙烷和40ppm甲烷混合气体吸光度信号。For the problem in FIG. 4 above, see FIG. 5a and FIG. 5b , correction can be performed by reducing the original absorbance signal of the mixed gas of 500 ppm ethane and 400 ppm methane by 10 times, thereby approximately obtaining an absorbance signal of the mixed gas of 50 ppm ethane and 40 ppm methane with a high signal-to-noise ratio.

这样,对于不同浓度梯度的待测气体进行多次探测和数据处理步骤,即可初步得到多个降噪训练数据和多个降噪测试数据。后续通过第二特征选取后即可得到第二数据集。In this way, multiple detection and data processing steps are performed for the gas to be tested with different concentration gradients, and multiple noise reduction training data and multiple noise reduction test data can be initially obtained. The second data set can be obtained after the second feature selection.

图6为本申请实施例提供的采用第二特征选择原则进行特征选择的示意图。FIG6 is a schematic diagram of feature selection using the second feature selection principle provided in an embodiment of the present application.

在一个具体的实现中,参见图6,横坐标为波数,纵坐标为吸光度,图6中实线曲线为原始的吸光度信号,但由于使用波段范围内对待测气体都存在吸收导致原始的信号全都大于0,因此在本申请实施例中对其进行了校正,将吸收峰向下拉到0值附近,最后使用洛伦兹线型函数对吸收峰进行拟合得到图中点划线曲线,点划线曲线即为噪声抑制神经网络的输入信号。本例为50ppm乙烷和40ppm甲烷混合气体吸光度信号,其中2986.6cm-1与2990cm-1位置处的吸收峰为乙烷吸收峰,因此只需要对其中一个吸收峰进行拟合便可以得到关于乙烷气体浓度的全部信息。而2989cm-1位置处的甲烷存在多个吸收峰,多个吸收峰叠加导致其形状并不符合洛伦兹线型,但其一部分仍符合洛伦兹线型,因此只需对甲烷峰的一部分进行洛伦兹线型拟合操作即可。这样,就完成了特征选取。In a specific implementation, see Figure 6, the horizontal axis is the wave number, the vertical axis is the absorbance, and the solid line curve in Figure 6 is the original absorbance signal, but because the gas to be tested has absorption in the used band range, the original signals are all greater than 0, so it is corrected in the embodiment of the present application, and the absorption peak is pulled down to near the value of 0, and finally the absorption peak is fitted with the Lorentz linear function to obtain the dotted line curve in the figure, which is the input signal of the noise suppression neural network. This example is the absorbance signal of a mixed gas of 50ppm ethane and 40ppm methane, where the absorption peaks at 2986.6cm -1 and 2990cm -1 are ethane absorption peaks, so only one of the absorption peaks needs to be fitted to obtain all the information about the concentration of ethane gas. There are multiple absorption peaks for methane at the position of 2989cm -1 , and the superposition of multiple absorption peaks causes its shape to not conform to the Lorentz linear type, but a part of it still conforms to the Lorentz linear type, so only a part of the methane peak needs to be fitted with the Lorentz linear type. In this way, feature selection is completed.

这样,对第一吸光度信号和第二吸光度信号进行处理之后,既可得第二数据集。具体的,第二数据集可以包括第二训练数据集和第二测试数据集,第二训练数据集包括处理后的第一吸光度信号以及,第一高信噪比吸光度信号或无噪声的第一仿真吸光度信号;第二测试数据集包括处理后的第二吸光度信号以及,第二高信噪比吸光度信号或无噪声的第二仿真吸光度信号。In this way, after processing the first absorbance signal and the second absorbance signal, a second data set can be obtained. Specifically, the second data set may include a second training data set and a second test data set, the second training data set includes the processed first absorbance signal and a first high signal-to-noise ratio absorbance signal or a noise-free first simulated absorbance signal; the second test data set includes the processed second absorbance signal and a second high signal-to-noise ratio absorbance signal or a noise-free second simulated absorbance signal.

而在建立第二数据库之后,可以建立噪声抑制神经网络。After the second database is established, a noise suppression neural network can be established.

噪声抑制神经网络的建立是为了建立探测到的检测光信号转换的第一吸光度信号和第二吸光度信号,以及高信噪比或无噪声的吸光度信号之间的映射关系。第一吸光度信号和第二吸光度信号作为噪声抑制神经网络的输入信号,输出信号通常采用与输入信号在相同条件下仿真吸光度信号或经过线性缩放后的高信噪比吸光度信号。其中,高信噪比吸光度信号通过吸光度信号处理得到,无噪声的仿真吸光度信号通过仿真程序处理得到。The establishment of the noise suppression neural network is to establish a mapping relationship between the first absorbance signal and the second absorbance signal converted from the detected detection light signal, and the absorbance signal with a high signal-to-noise ratio or noise-free. The first absorbance signal and the second absorbance signal are used as input signals of the noise suppression neural network, and the output signal is usually a simulated absorbance signal under the same conditions as the input signal or a high signal-to-noise ratio absorbance signal after linear scaling. Among them, the high signal-to-noise ratio absorbance signal is obtained by absorbance signal processing, and the noise-free simulated absorbance signal is obtained by simulation program processing.

在一个具体的实现中,基线拟合神经网络和噪声抑制神经网络的训练方法相同,基线拟合神经网络和噪声抑制神经网络均包括输入层、第一隐含层、第二隐含层、第三隐含层和输出层。In a specific implementation, the training methods of the baseline fitting neural network and the noise suppression neural network are the same, and both the baseline fitting neural network and the noise suppression neural network include an input layer, a first hidden layer, a second hidden layer, a third hidden layer and an output layer.

其中,输入层与第一隐含层之间、第一隐含层与第二隐含层之间、第二隐含层与第三隐含层之间的激活函数均为Sigmoid函数:Among them, the activation functions between the input layer and the first hidden layer, between the first hidden layer and the second hidden layer, and between the second hidden layer and the third hidden layer are all Sigmoid functions:

;

其中,为自然常数,/>为输入层或第一隐含层或第二隐含层的输入光谱数据;in, is a natural constant, /> is the input spectral data of the input layer or the first hidden layer or the second hidden layer;

第三隐含层与输出层之间的激活函数为;其中,/>为第三隐含层的输出光谱数据。The activation function between the third hidden layer and the output layer is ; Among them, /> is the output spectral data of the third hidden layer.

基线拟合神经网络和噪声抑制神经网络的损失函数可以相同,均可以为均方误差函数作为损失函数。The loss functions of the baseline fitting neural network and the noise suppression neural network can be the same, and both can use the mean square error function as the loss function.

步骤S500:采用第二数据集训练及测试噪声抑制神经网络,得到降噪信号。Step S500: using the second data set to train and test the noise suppression neural network to obtain a noise reduction signal.

其中,噪声抑制神经网络的输入为吸光度信号,噪声抑制神经网络的输出为高信噪比吸光度信号或无噪声的仿真吸光度信号。The input of the noise suppression neural network is an absorbance signal, and the output of the noise suppression neural network is an absorbance signal with a high signal-to-noise ratio or a noise-free simulated absorbance signal.

具体的,先采用第二数据集中的第二训练数据集训练噪声抑制神经网络,再采用第二数据集中的第二测试数据集对训练后的噪声抑制神经网络进行测试。Specifically, the noise suppression neural network is first trained using the second training data set in the second data set, and then the trained noise suppression neural network is tested using the second test data set in the second data set.

在一个具体的实现中,基线拟合神经网络和噪声抑制神经网络的训练方法可以相同,均可以采用贝叶斯正则化方法。在贝叶斯正则化训练算法中,需要先定义模型参数的先验分布。其中/>为第/>层的网络参数。然后需要计算后验分布,根据贝叶斯公式,通过观测数据集D来计算每一层网络的后验分布。如第/>层网络模型的输出为/>,对应的目标值为/>In a specific implementation, the training methods of the baseline fitting neural network and the noise suppression neural network can be the same, and both can use the Bayesian regularization method. In the Bayesian regularization training algorithm, it is necessary to first define the prior distribution of the model parameters. . Among them/> For the first/> The network parameters of each layer. Then we need to calculate the posterior distribution. According to the Bayesian formula, we can calculate the posterior distribution of each layer of the network by observing the data set D. As shown in the first The output of the layer network model is/> , the corresponding target value is/> .

根据贝叶斯公式则有:According to the Bayesian formula:

;

其中,表示给定模型输出和参数下观测到目标值的概率。in, Represents the probability of observing the target value given the model output and parameters.

进一步,需要最大化后验概率,即选择后验概率最大的参数值。然后,根据最大化后验概率结果,更新参数。Furthermore, we need to maximize the posterior probability, that is, select the parameter value with the largest posterior probability. Then, we update the parameters based on the result of maximizing the posterior probability.

最后应用得到的模型,检验模型的效果。根据实验结果进行调整和优化。Finally, the obtained model is applied to test its effect and adjustments and optimizations are made according to the experimental results.

图7为本申请实施例提供的一种训练及测试噪声抑制神经网络的流程示意图。FIG. 7 is a schematic diagram of a process of training and testing a noise suppression neural network provided in an embodiment of the present application.

参见图7,在一个具体的实现中,步骤S500可以由以下步骤S501至步骤S506所实现。Referring to FIG. 7 , in a specific implementation, step S500 may be implemented by the following steps S501 to S506 .

步骤S501:含噪声的吸光度信号(训练数据),无噪声的吸光度信号(标签)。其中,含噪声的吸光度信号即为原始的吸光度信号,即为无吸收基线信号与透射光信号的比值,无噪声的吸光度信号即为高信噪比吸光度信号或无噪声的仿真吸光度信号。Step S501: absorbance signal with noise (training data), absorbance signal without noise (label). The absorbance signal with noise is the original absorbance signal, that is, the ratio of the non-absorption baseline signal to the transmitted light signal, and the absorbance signal without noise is the absorbance signal with high signal-to-noise ratio or the simulated absorbance signal without noise.

在步骤S501中,训练数据作为噪声抑制神经网络的输入数据,标签作为噪声抑制神经网络的输出数据。In step S501, the training data is used as input data of the noise suppression neural network, and the label is used as output data of the noise suppression neural network.

步骤S502:初始化的噪声抑制神经网络。Step S502: Initialize the noise suppression neural network.

步骤S503:训练。Step S503: training.

步骤S504:降噪后的吸光度信号。Step S504: absorbance signal after noise reduction.

步骤S505:判断是否满足信噪比要求。若结果为是,则完成训练和测试过程,若结果为否,则执行步骤S506。Step S505: Determine whether the signal-to-noise ratio requirement is met. If the result is yes, the training and testing process is completed, and if the result is no, step S506 is executed.

步骤S506:调整噪声抑制神经网络结构及参数。并执行步骤S503。Step S506: Adjust the noise suppression neural network structure and parameters, and execute step S503.

在步骤S506中,可以采用信噪比函数SNR为:In step S506, the signal-to-noise ratio function SNR may be:

;

其中,为第二吸光度信号的吸收峰峰值,/>为第二吸光度信号的非吸收峰部分。in, is the peak value of the absorption peak of the second absorbance signal, /> is the non-absorption peak part of the second absorbance signal.

具体的,在训练后的噪声抑制神经网络满足信噪比函数SNR的条件后,即完成了噪声抑制神经网络的训练及测试过程。Specifically, after the trained noise suppression neural network meets the condition of the signal-to-noise ratio function SNR, the training and testing process of the noise suppression neural network is completed.

在一些可行的实现中,基线拟合及降噪方法还可以包括步骤S600。In some feasible implementations, the baseline fitting and noise reduction method may further include step S600.

步骤S600:根据降噪信号计算待测气体浓度。Step S600: Calculate the concentration of the gas to be measured according to the noise reduction signal.

在步骤S600中,在对两个神经网络训练和测试完成之后,即可通过得到的降噪信号计算待测气体浓度。In step S600, after the training and testing of the two neural networks are completed, the concentration of the gas to be measured can be calculated using the obtained noise reduction signal.

图8为本申请实施例提供的一种气体激光吸收光谱的基线拟合及降噪方法具体应用的流程示意图。FIG8 is a flow chart of a specific application of a baseline fitting and noise reduction method for a gas laser absorption spectrum provided in an embodiment of the present application.

参见图8,在一个具体的实现中,可以通过本申请实施例提供的气体激光吸收光谱的基线拟合及降噪方法进行待测气体浓度的计算,具体可以由以下步骤S001至步骤S600-1所实现。Referring to FIG. 8 , in a specific implementation, the concentration of the gas to be measured can be calculated by the baseline fitting and noise reduction method of the gas laser absorption spectrum provided in the embodiment of the present application, which can be specifically implemented by the following steps S001 to S600 - 1.

步骤S001:探测器得到的透射光信号。Step S001: The detector obtains a transmitted light signal.

具体的,透射光信号可以由检测光信号转换得到。Specifically, the transmitted light signal can be converted from the detected light signal.

步骤S201-1:对透射光信号进行特征选取。Step S201 - 1 : performing feature selection on the transmitted light signal.

其中,步骤S201-1可以为步骤S201中的分步骤。Among them, step S201-1 can be a sub-step in step S201.

步骤S300-1:训练完的基线拟合神经网络。Step S300-1: training the baseline fitting neural network.

步骤S300-2:拟合的基线信号。Step S300 - 2 : Fitting baseline signal.

其中,步骤300-1、步骤S300-2可以为步骤S300中的两个步骤。Among them, step S300-1 and step S300-2 can be two steps in step S300.

步骤S401-1:将拟合的基线信号比上透射光信号得到待测气体的吸光度信号。Step S401 - 1 : Compare the fitted baseline signal with the transmitted light signal to obtain the absorbance signal of the gas to be measured.

得到拟合基线信号后,需要用上述拟合基线信号与透射光谱信号作比,得到原始的吸光度信号。After obtaining the fitted baseline signal, it is necessary to compare the fitted baseline signal with the transmission spectrum signal to obtain the original absorbance signal.

步骤S402-1:对吸光度信号进行特征选择。Step S402-1: performing feature selection on the absorbance signal.

其中,步骤S401-1、步骤S402-1可以为步骤S400中的两个步骤。Among them, step S401-1 and step S402-1 may be two steps in step S400.

步骤S501-1:训练完的噪声抑制神经网络。Step S501-1: Trained noise suppression neural network.

步骤S502-1:降噪后的待测气体吸光度信号。Step S502-1: De-noised absorbance signal of the gas to be measured.

其中,步骤S501-1、步骤S502-1可以为步骤S500中的两个步骤。Among them, step S501-1 and step S502-1 may be two steps in step S500.

步骤S600-1:根据吸光度信号中待测气体的吸收峰的峰值反演出待测气体浓度。Step S600 - 1 : inverting the concentration of the gas to be measured according to the peak value of the absorption peak of the gas to be measured in the absorbance signal.

其中,步骤S600-1可以为步骤S600中的步骤。Among them, step S600-1 can be a step in step S600.

图9为本申请实施例提供的一种基线拟合的效果示意图。FIG. 9 is a schematic diagram of the effect of a baseline fitting provided in an embodiment of the present application.

参见图9,将特征选择后的信号输入训练及测试好的基线拟合神经网络中,基线拟合神经网络输出基线拟合信号,拟合效果如图9所示。Referring to FIG9 , the signal after feature selection is input into the trained and tested baseline fitting neural network, and the baseline fitting neural network outputs a baseline fitting signal. The fitting effect is shown in FIG9 .

图10a为本申请实施例提供的原始吸光度信号的示意图。FIG. 10 a is a schematic diagram of an original absorbance signal provided in an embodiment of the present application.

图10b为本申请实施例提供的降噪后的吸光度信号的示意图。FIG10 b is a schematic diagram of the absorbance signal after noise reduction provided in an embodiment of the present application.

参见图10a和图10b,特征选择后的吸光度信号将作为噪声抑制神经网络的输入信号,训练及测试完成的噪声抑制神经网络将输出降噪后的吸光度信号。10a and 10b, the absorbance signal after feature selection will be used as the input signal of the noise suppression neural network, and the noise suppression neural network after training and testing will output the absorbance signal after noise reduction.

根据降噪后的吸光度信号的峰值即可反演出待测气体的浓度。其中,根据甲烷和乙烷的峰值可以计算得出,甲烷的SNR从降噪前的16.6dB提高到了20.5dB,乙烷的SNR则从降噪前的22.69dB提高到了26.26dB。The concentration of the gas to be measured can be inverted according to the peak value of the absorbance signal after noise reduction. Among them, according to the peak values of methane and ethane, it can be calculated that the SNR of methane has increased from 16.6dB before noise reduction to 20.5dB, and the SNR of ethane has increased from 22.69dB before noise reduction to 26.26dB.

具体的,本申请实施例提供的气体激光吸收光谱的基线拟合及降噪方法,能够根据透射光信号自适应拟合出基线信号,改善了气体浓度检测中存在的基线信号漂移和噪声干扰的问题,并可以有效的抑制吸光度信号中的噪声。该方法无需额外增加硬件设备,也不会引入额外的硬件噪声,另外对噪声没有频率限制,相较于现有的处理方法,该方法具有处理快、降噪效果好的优点。且该方法不受结构限制,适用于小型系统和短光程的设备,有效降低设备成本,应用范围较广。Specifically, the baseline fitting and noise reduction method of the gas laser absorption spectrum provided in the embodiment of the present application can adaptively fit the baseline signal according to the transmitted light signal, improve the problems of baseline signal drift and noise interference in gas concentration detection, and can effectively suppress the noise in the absorbance signal. This method does not require additional hardware equipment, nor does it introduce additional hardware noise. In addition, there is no frequency limit on the noise. Compared with the existing processing methods, this method has the advantages of fast processing and good noise reduction effect. Moreover, this method is not limited by the structure and is suitable for small systems and equipment with short optical paths, effectively reducing equipment costs and having a wide range of applications.

图11为本申请实施例提供的一种气体激光吸收光谱的基线拟合及降噪系统的结构框图。FIG11 is a structural block diagram of a baseline fitting and noise reduction system for gas laser absorption spectrum provided in an embodiment of the present application.

参见图11,与上述实施例对应的,本申请还提供一种气体激光吸收光谱的基线拟合及降噪系统100的实施例,应用于上述任一实施例提供的基线拟合及降噪方法。基线拟合及降噪系统100包括发送模块101、第一建立模块102、第一训练及测试模块103、第二建立模块104、第二训练及测试模块105。Referring to FIG11 , corresponding to the above-mentioned embodiments, the present application also provides an embodiment of a baseline fitting and noise reduction system 100 for gas laser absorption spectrum, which is applied to the baseline fitting and noise reduction method provided in any of the above-mentioned embodiments. The baseline fitting and noise reduction system 100 includes a sending module 101, a first establishment module 102, a first training and testing module 103, a second establishment module 104, and a second training and testing module 105.

发送模块101用于向待测气体中发送检测光信号。The sending module 101 is used to send a detection light signal to the gas to be tested.

第一建立模块102用于建立第一数据集和基线拟合神经网络。The first establishing module 102 is used to establish a first data set and a baseline fitting neural network.

第一训练及测试模块103用于采用第一数据集训练及测试基线拟合神经网络,得到基线拟合信号;其中,基线拟合神经网络的输入为透射光信号,基线拟合神经网络的输出为无吸收基线信号,透射光信号与无吸收基线信号均通过检测光信号处理得到。The first training and testing module 103 is used to train and test the baseline fitting neural network using the first data set to obtain a baseline fitting signal; wherein the input of the baseline fitting neural network is the transmitted light signal, and the output of the baseline fitting neural network is the non-absorption baseline signal, and both the transmitted light signal and the non-absorption baseline signal are obtained by processing the detection light signal.

第二建立模块104用于建立第二数据集和噪声抑制神经网络;其中,第二数据集包括吸光度信号。吸光度信号为无吸收基线信号与透射光信号的比值。The second establishing module 104 is used to establish a second data set and a noise suppression neural network, wherein the second data set includes an absorbance signal, which is a ratio of a non-absorption baseline signal to a transmitted light signal.

第二训练及测试模块105用于采用第二数据集训练及测试噪声抑制神经网络,得到降噪信号;其中,噪声抑制神经网络的输入为吸光度信号,噪声抑制神经网络的输出为高信噪比吸光度信号或无噪声的仿真吸光度信号,高信噪比吸光度信号或无噪声的仿真吸光度信号通过吸光度信号处理得到。The second training and testing module 105 is used to train and test the noise suppression neural network using the second data set to obtain a noise reduction signal; wherein, the input of the noise suppression neural network is an absorbance signal, and the output of the noise suppression neural network is a high signal-to-noise ratio absorbance signal or a noise-free simulated absorbance signal, and the high signal-to-noise ratio absorbance signal or the noise-free simulated absorbance signal is obtained by processing the absorbance signal.

图12为本申请实施例提供的一种基线拟合及降噪系统的结构示意图。FIG12 is a schematic diagram of the structure of a baseline fitting and noise reduction system provided in an embodiment of the present application.

在一个具体的实现中,参见图12,信号发生器产生的调制信号输入激光器控制器,进而调谐激光器,使激光器的输出波长覆盖目标检测波段,然后激光器的出射检测光信号,检测信号经过准直透镜准直后再射入气室,气室内充满待测气体,再由光电探测模块将检测到的光信号转换为电信号并做放大处理,最后由数据采集卡采集透射光信号并上传至计算机。In a specific implementation, see Figure 12, the modulation signal generated by the signal generator is input into the laser controller, and then the laser is tuned so that the output wavelength of the laser covers the target detection band. Then the laser emits a detection light signal, which is collimated by a collimating lens and then shot into the gas chamber. The gas chamber is filled with the gas to be tested, and then the photoelectric detection module converts the detected light signal into an electrical signal and amplifies it. Finally, the data acquisition card collects the transmitted light signal and uploads it to the computer.

其中,激光器可以为上述实施例中的发送模块101,计算机可以包括上述实施例提供的第一建立模块102、第一训练及测试模块103、第二建立模块104和第二训练及测试模块105。为了调节温度和压力,气室可以设有温度计和压力计。The laser may be the sending module 101 in the above embodiment, and the computer may include the first establishment module 102, the first training and testing module 103, the second establishment module 104 and the second training and testing module 105 provided in the above embodiment. In order to adjust the temperature and pressure, the gas chamber may be provided with a thermometer and a pressure gauge.

计算机还可以包括计算模块,计算模块用于根据降噪信号计算待测气体的浓度。The computer may further include a calculation module, and the calculation module is used to calculate the concentration of the gas to be measured according to the noise reduction signal.

具体的,本申请实施例提供的气体激光吸收光谱的基线拟合及降噪系统,能够根据透射光信号自适应拟合出基线信号,改善了气体浓度检测中存在的基线信号漂移和噪声干扰的问题,并可以有效的抑制原始的吸光度信号中的噪声。可以实现设备小型化,有效降低生产成本。Specifically, the baseline fitting and noise reduction system for gas laser absorption spectrum provided in the embodiment of the present application can adaptively fit the baseline signal according to the transmitted light signal, improve the baseline signal drift and noise interference problems existing in gas concentration detection, and can effectively suppress the noise in the original absorbance signal. The device can be miniaturized and the production cost can be effectively reduced.

需要说明的是,本领域技术人员在考虑说明书及实践这里公开的申请后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围由权利要求指出。It should be noted that those skilled in the art will easily think of other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application. The specification and examples are only regarded as exemplary, and the true scope of the present application is indicated by the claims.

应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims (8)

1.一种气体激光吸收光谱的基线拟合及降噪方法,其特征在于,包括:1. A baseline fitting and noise reduction method for gas laser absorption spectrum, characterized by comprising: 向待测气体中发送检测光信号;Sending a detection light signal to the gas to be tested; 建立第一数据集和基线拟合神经网络;Establishing a first data set and a baseline fitting neural network; 采用所述第一数据集训练及测试所述基线拟合神经网络,得到基线拟合信号;其中,所述基线拟合神经网络的输入为透射光信号,所述基线拟合神经网络的输出为无吸收基线信号,所述透射光信号与所述无吸收基线信号均通过所述检测光信号处理得到;The first data set is used to train and test the baseline fitting neural network to obtain a baseline fitting signal; wherein the input of the baseline fitting neural network is a transmitted light signal, the output of the baseline fitting neural network is a non-absorption baseline signal, and both the transmitted light signal and the non-absorption baseline signal are obtained by processing the detection light signal; 建立第二数据集和噪声抑制神经网络;其中,所述第二数据集包括吸光度信号,所述吸光度信号为所述无吸收基线信号与所述透射光信号的比值;Establishing a second data set and a noise suppression neural network; wherein the second data set includes an absorbance signal, and the absorbance signal is a ratio of the non-absorption baseline signal to the transmitted light signal; 采用所述第二数据集训练及测试所述噪声抑制神经网络,得到降噪信号;其中,所述噪声抑制神经网络的输入为所述吸光度信号,所述噪声抑制神经网络的输出为高信噪比吸光度信号或无噪声的仿真吸光度信号,所述高信噪比吸光度信号通过所述吸光度信号处理得到,无噪声的所述仿真吸光度信号通过仿真程序处理得到;The noise suppression neural network is trained and tested using the second data set to obtain a noise reduction signal; wherein the input of the noise suppression neural network is the absorbance signal, and the output of the noise suppression neural network is a high signal-to-noise ratio absorbance signal or a noise-free simulated absorbance signal, the high signal-to-noise ratio absorbance signal is obtained by processing the absorbance signal, and the noise-free simulated absorbance signal is obtained by processing a simulation program; 所述建立第一数据集包括:The establishing of the first data set comprises: 获取多个基线训练数据和多个基线测试数据;其中,所述基线训练数据和所述基线测试数据均通过所述检测光信号得到,所述基线训练数据包括第一透射光信号和第一无吸收基线信号,所述基线测试数据包括第二透射光信号和第二无吸收基线信号;Acquire a plurality of baseline training data and a plurality of baseline test data; wherein the baseline training data and the baseline test data are both obtained by the detected light signal, the baseline training data includes a first transmitted light signal and a first non-absorption baseline signal, and the baseline test data includes a second transmitted light signal and a second non-absorption baseline signal; 对所述基线训练数据和所述基线测试数据以第一特征选取原则进行选取,得到所述第一数据集;The baseline training data and the baseline test data are selected according to a first feature selection principle to obtain the first data set; 所述建立第二数据集包括:The establishing of the second data set comprises: 获取多个降噪训练数据和多个降噪测试数据;其中,所述降噪训练数据包括第一吸光度信号以及,第一高信噪比吸光度信号或无噪声的第一仿真吸光度信号,所述降噪测试数据包括第二吸光度信号以及,第二高信噪比吸光度信号或无噪声的第二仿真吸光度信号;Acquire a plurality of noise reduction training data and a plurality of noise reduction test data; wherein the noise reduction training data comprises a first absorbance signal and a first high signal-to-noise ratio absorbance signal or a noise-free first simulated absorbance signal, and the noise reduction test data comprises a second absorbance signal and a second high signal-to-noise ratio absorbance signal or a noise-free second simulated absorbance signal; 对所述降噪训练数据和所述降噪测试数据以第二特征选取的原则进行选取,得到所述第二数据集;The denoising training data and the denoising test data are selected according to the second feature selection principle to obtain the second data set; 所述第一特征选取原则为将所述第一透射光信号和所述第二透射光信号的吸收峰对应的数值设置为零;The first feature selection principle is to set the values corresponding to the absorption peaks of the first transmitted light signal and the second transmitted light signal to zero; 所述第二特征选取原则为将所述第一吸光度信号和所述第二吸光度信号的吸收峰采用洛伦兹线型函数进行拟合。The second feature selection principle is to fit the absorption peaks of the first absorbance signal and the second absorbance signal using a Lorentzian linear function. 2.根据权利要求1所述的气体激光吸收光谱的基线拟合及降噪方法,其特征在于,2. The baseline fitting and noise reduction method for gas laser absorption spectrum according to claim 1, characterized in that: 所述洛伦兹线型函数为:The Lorentzian Linear Function for: 为所述待测气体的分子吸光度谱线的中心频率,/>为所述待测气体的分子吸光度谱线的半高全宽,/>为激光器的出射光频率。 is the center frequency of the molecular absorbance spectrum of the gas to be measured, /> is the half-maximum full width of the molecular absorbance spectrum of the gas to be measured, /> is the output light frequency of the laser. 3.根据权利要求2所述的气体激光吸收光谱的基线拟合及降噪方法,其特征在于,3. The baseline fitting and noise reduction method for gas laser absorption spectrum according to claim 2, characterized in that: 所述基线拟合神经网络和所述噪声抑制神经网络均包括输入层、第一隐含层、第二隐含层、第三隐含层和输出层;其中,所述输入层与所述第一隐含层之间、所述第一隐含层与所述第二隐含层之间、所述第二隐含层与所述第三隐含层之间的激活函数均为Sigmoid函数:The baseline fitting neural network and the noise suppression neural network both include an input layer, a first hidden layer, a second hidden layer, a third hidden layer and an output layer; wherein the activation functions between the input layer and the first hidden layer, between the first hidden layer and the second hidden layer, and between the second hidden layer and the third hidden layer are all Sigmoid functions: 其中,e为自然常数,/>为所述输入层或所述第一隐含层或所述第二隐含层的输入光谱数据; Among them, e is a natural constant,/> is the input spectral data of the input layer or the first hidden layer or the second hidden layer; 所述第三隐含层与所述输出层之间的激活函数为;其中,/>为所述第三隐含层的输出光谱数据。The activation function between the third hidden layer and the output layer is ; Among them, /> is the output spectral data of the third hidden layer. 4.根据权利要求3所述的气体激光吸收光谱的基线拟合及降噪方法,其特征在于,4. The baseline fitting and noise reduction method for gas laser absorption spectrum according to claim 3, characterized in that: 所述基线拟合神经网络和所述噪声抑制神经网络的损失函数相同;The loss functions of the baseline fitting neural network and the noise suppression neural network are the same; 所述基线拟合神经网络和所述噪声抑制神经网络的训练方法相同。The training methods of the baseline fitting neural network and the noise suppression neural network are the same. 5.根据权利要求4所述的气体激光吸收光谱的基线拟合及降噪方法,其特征在于,5. The baseline fitting and noise reduction method for gas laser absorption spectrum according to claim 4, characterized in that: 所述基线拟合神经网络采用均方误差进行测试,所述均方误差MSE为:The baseline fitting neural network is tested using mean square error, and the mean square error MSE is: 其中,/>为训练后的所述基线拟合神经网络的输出值,是所述第二无吸收基线信号;i为第i个光谱数据,n为输入光谱数据的个数。 Among them,/> is the output value of the baseline fitting neural network after training, is the second non-absorption baseline signal; i is the ith spectral data, and n is the number of input spectral data. 6.根据权利要求5所述的气体激光吸收光谱的基线拟合及降噪方法,其特征在于,6. The method for baseline fitting and noise reduction of gas laser absorption spectrum according to claim 5, characterized in that: 所述噪声抑制神经网络采用信噪比函数进行测试,所述信噪比函数SNR为:The noise suppression neural network is tested using a signal-to-noise ratio function, where the signal-to-noise ratio function SNR is: 其中,/>为所述第二吸光度信号的吸收峰峰值,/>为所述第二吸光度信号的非吸收峰部分。 Among them,/> is the peak value of the absorption peak of the second absorbance signal, /> is the non-absorption peak part of the second absorbance signal. 7.根据权利要求1所述的气体激光吸收光谱的基线拟合及降噪方法,其特征在于,7. The baseline fitting and noise reduction method for gas laser absorption spectrum according to claim 1, characterized in that: 所述气体激光吸收光谱的基线拟合及降噪方法还包括:根据所述降噪信号计算所述待测气体的浓度。The baseline fitting and noise reduction method for gas laser absorption spectrum also includes: calculating the concentration of the gas to be measured according to the noise reduction signal. 8.一种气体激光吸收光谱的基线拟合及降噪系统,其特征在于,应用于权利要求1-7中任一项所述的气体激光吸收光谱的基线拟合及降噪方法,所述气体激光吸收光谱的基线拟合及降噪系统包括:8. A baseline fitting and noise reduction system for gas laser absorption spectrum, characterized in that it is applied to the baseline fitting and noise reduction method for gas laser absorption spectrum according to any one of claims 1 to 7, and the baseline fitting and noise reduction system for gas laser absorption spectrum comprises: 发送模块;被配置为,向待测气体中发送检测光信号;A sending module; configured to send a detection light signal to the gas to be tested; 第一建立模块,被配置为,建立第一数据集和基线拟合神经网络;A first establishment module is configured to establish a first data set and a baseline fitting neural network; 第一训练及测试模块,被配置为,采用所述第一数据集训练及测试所述基线拟合神经网络,得到基线拟合信号;其中,所述基线拟合神经网络的输入为透射光信号,所述基线拟合神经网络的输出为无吸收基线信号,所述透射光信号与所述无吸收基线信号均通过所述检测光信号处理得到;A first training and testing module is configured to train and test the baseline fitting neural network using the first data set to obtain a baseline fitting signal; wherein the input of the baseline fitting neural network is a transmitted light signal, and the output of the baseline fitting neural network is a non-absorption baseline signal, and both the transmitted light signal and the non-absorption baseline signal are obtained by processing the detection light signal; 第二建立模块,被配置为,建立第二数据集和噪声抑制神经网络;其中,第二数据集包括吸光度信号,所述吸光度信号为所述无吸收基线信号与所述透射光信号的比值;A second establishment module is configured to establish a second data set and a noise suppression neural network; wherein the second data set includes an absorbance signal, and the absorbance signal is a ratio of the non-absorption baseline signal to the transmitted light signal; 第二训练及测试模块,被配置为,采用所述第二数据集训练及测试所述噪声抑制神经网络,得到降噪信号;其中,所述噪声抑制神经网络的输入为所述吸光度信号,所述噪声抑制神经网络的输出为高信噪比吸光度信号或无噪声的仿真吸光度信号,所述高信噪比吸光度信号通过所述吸光度信号处理得到,无噪声的所述仿真吸光度信号通过仿真程序处理得到;A second training and testing module is configured to train and test the noise suppression neural network using the second data set to obtain a noise reduction signal; wherein the input of the noise suppression neural network is the absorbance signal, and the output of the noise suppression neural network is a high signal-to-noise ratio absorbance signal or a noise-free simulated absorbance signal, wherein the high signal-to-noise ratio absorbance signal is obtained by processing the absorbance signal, and the noise-free simulated absorbance signal is obtained by processing a simulation program; 所述建立第一数据集包括:获取多个基线训练数据和多个基线测试数据;其中,所述基线训练数据和所述基线测试数据均通过所述检测光信号得到,所述基线训练数据包括第一透射光信号和第一无吸收基线信号,所述基线测试数据包括第二透射光信号和第二无吸收基线信号;对所述基线训练数据和所述基线测试数据以第一特征选取原则进行选取,得到所述第一数据集;The establishing of the first data set comprises: acquiring a plurality of baseline training data and a plurality of baseline test data; wherein the baseline training data and the baseline test data are both obtained through the detection light signal, the baseline training data comprises a first transmission light signal and a first non-absorption baseline signal, and the baseline test data comprises a second transmission light signal and a second non-absorption baseline signal; the baseline training data and the baseline test data are selected according to a first feature selection principle to obtain the first data set; 所述建立第二数据集包括:获取多个降噪训练数据和多个降噪测试数据;其中,所述降噪训练数据包括第一吸光度信号以及,第一高信噪比吸光度信号或无噪声的第一仿真吸光度信号,所述降噪测试数据包括第二吸光度信号以及,第二高信噪比吸光度信号或无噪声的第二仿真吸光度信号;对所述降噪训练数据和所述降噪测试数据以第二特征选取的原则进行选取,得到所述第二数据集;The establishing of the second data set comprises: acquiring a plurality of noise reduction training data and a plurality of noise reduction test data; wherein the noise reduction training data comprises a first absorbance signal and a first high signal-to-noise ratio absorbance signal or a noise-free first simulated absorbance signal, and the noise reduction test data comprises a second absorbance signal and a second high signal-to-noise ratio absorbance signal or a noise-free second simulated absorbance signal; the noise reduction training data and the noise reduction test data are selected according to the second feature selection principle to obtain the second data set; 所述第一特征选取原则为将所述第一透射光信号和所述第二透射光信号的吸收峰对应的数值设置为零;所述第二特征选取原则为将所述第一吸光度信号和所述第二吸光度信号的吸收峰采用洛伦兹线型函数进行拟合。The first feature selection principle is to set the values corresponding to the absorption peaks of the first transmitted light signal and the second transmitted light signal to zero; the second feature selection principle is to fit the absorption peaks of the first absorbance signal and the second absorbance signal using a Lorentzian linear function.
CN202410171508.1A 2024-02-07 2024-02-07 A method and system for baseline fitting and noise reduction of gas laser absorption spectrum Active CN117747008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410171508.1A CN117747008B (en) 2024-02-07 2024-02-07 A method and system for baseline fitting and noise reduction of gas laser absorption spectrum

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410171508.1A CN117747008B (en) 2024-02-07 2024-02-07 A method and system for baseline fitting and noise reduction of gas laser absorption spectrum

Publications (2)

Publication Number Publication Date
CN117747008A CN117747008A (en) 2024-03-22
CN117747008B true CN117747008B (en) 2024-05-03

Family

ID=90257774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410171508.1A Active CN117747008B (en) 2024-02-07 2024-02-07 A method and system for baseline fitting and noise reduction of gas laser absorption spectrum

Country Status (1)

Country Link
CN (1) CN117747008B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2092713A1 (en) * 1990-10-12 1992-04-13 James Milton Brown Spectral data measurement and correction
JP2012137429A (en) * 2010-12-27 2012-07-19 Mitsubishi Heavy Ind Ltd Laser measuring device
CN104535528A (en) * 2014-11-26 2015-04-22 东南大学 Method for real time extraction of TDLAS gas absorption spectrum absorbance by BP neural network
CA2915137A1 (en) * 2014-12-26 2016-06-26 General Electric Company Systems and methods to analyze a gas-mixture
CN108981953A (en) * 2018-10-24 2018-12-11 北京航空航天大学 A kind of laser absorption spectrum temp measuring method and system based on interference modulations principle
CN110987870A (en) * 2019-12-20 2020-04-10 天津同阳科技发展有限公司 System and method for real-time monitoring of gas concentration based on wavelength modulation spectroscopy
CN111678599A (en) * 2020-07-07 2020-09-18 安徽大学 Laser spectral noise reduction method and device based on deep learning optimization of S-G filtering
WO2021055902A1 (en) * 2019-09-20 2021-03-25 Seekops Inc. Spectral fitting of compact laser-based trace gas sensor measurements for high dynamic range (hdr)
CN114993990A (en) * 2022-08-03 2022-09-02 安徽岑锋科技有限公司 Integrated small open-circuit greenhouse gas flux monitoring method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9068933B2 (en) * 2012-06-08 2015-06-30 Ut-Battelle, Llc EGR distribution and fluctuation probe based on CO2 measurements
US11614402B2 (en) * 2019-03-07 2023-03-28 The Regents of the Univ. of Colorado, a body corp. Baseline-free quantitative absorption spectroscopy

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2092713A1 (en) * 1990-10-12 1992-04-13 James Milton Brown Spectral data measurement and correction
JP2012137429A (en) * 2010-12-27 2012-07-19 Mitsubishi Heavy Ind Ltd Laser measuring device
CN104535528A (en) * 2014-11-26 2015-04-22 东南大学 Method for real time extraction of TDLAS gas absorption spectrum absorbance by BP neural network
CA2915137A1 (en) * 2014-12-26 2016-06-26 General Electric Company Systems and methods to analyze a gas-mixture
CN108981953A (en) * 2018-10-24 2018-12-11 北京航空航天大学 A kind of laser absorption spectrum temp measuring method and system based on interference modulations principle
WO2021055902A1 (en) * 2019-09-20 2021-03-25 Seekops Inc. Spectral fitting of compact laser-based trace gas sensor measurements for high dynamic range (hdr)
CN110987870A (en) * 2019-12-20 2020-04-10 天津同阳科技发展有限公司 System and method for real-time monitoring of gas concentration based on wavelength modulation spectroscopy
CN111678599A (en) * 2020-07-07 2020-09-18 安徽大学 Laser spectral noise reduction method and device based on deep learning optimization of S-G filtering
CN114993990A (en) * 2022-08-03 2022-09-02 安徽岑锋科技有限公司 Integrated small open-circuit greenhouse gas flux monitoring method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Design of Resolution-Tunable Neural Network-Based Integrated Reconstructive Spectrometer;Anish Mondal等;IEEE Sensors Journal;20211230;第22卷(第3 期);全文 *
基于光谱吸收的CO2气体检测系统;宫卫华 等;山东科学;20221231;第35卷(第6期);全文 *
基于深度学习的红外光谱气体智能检测技术研究;田遴博;万方学位论文;20231007;全文 *
基于超光谱层析成像技术重建燃烧场温度及气体浓度二维分布;臧益鹏;中国博士学位论文全文数据库;20210915;全文 *

Also Published As

Publication number Publication date
CN117747008A (en) 2024-03-22

Similar Documents

Publication Publication Date Title
US11187647B2 (en) System and method for estimating a gas concentration
JP6981817B2 (en) Spectroscopic analyzer and spectroscopic analysis method
CN111678599B (en) Laser spectrum noise reduction method and device based on deep learning optimization S-G filtering
CN115586162A (en) Noise reduction method and device for laser absorption spectrum
CN110135320B (en) Spectral noise reduction method and device based on BP neural network and variance compensation
US7603004B2 (en) Neural network demodulation for an optical sensor
CN117747008B (en) A method and system for baseline fitting and noise reduction of gas laser absorption spectrum
US11743667B2 (en) Discrimination of light interference in a MEMS microphone
CN103411923B (en) A kind of normalization noise-reduction method adopting two-path tunable laser absorption spectrum technology
US20160238461A1 (en) Temperature measuring system and temperature measuring method
CN117990267B (en) Method, system and medium for obtaining pressure sensitivity of pressure sensitive paint
CN118243157A (en) Correction method and correction system for optical fiber MEMS interference spectrum
Lu et al. Beam-steering-effect immune laser absorption spectrum extraction for precise and robust temperature measurement
CN116519629A (en) TDLAS measurement signal spectral line parameter acquisition method in high-pressure environment
CN211978164U (en) Distributed optical fiber temperature measurement system based on double-end demodulation
CN115792136A (en) Gas concentration detection method and device, terminal equipment and storage medium
CN118294393B (en) A gas detection method, device and equipment
JP4080763B2 (en) Fiber Bragg Grating Element Reflected Light Wavelength Measurement Processing Equipment
JP2007322437A (en) Device and method for performing measurement processing of fiber bragg grating element reflection light wavelength
CN111141695B (en) Non-dispersive infrared multi-component Freon gas detection system
Zhang et al. A particle swarm denoising algorithm applied to TDLAS direct absorption spectroscopy
CN118130400B (en) DOAS system gas concentration measurement method based on solution generalized inverse matrix
CN110231313B (en) Online zero calibration method and device for laser gas analyzer
CN119000605B (en) Laser absorption spectrum signal noise reduction method based on improved local mean decomposition
CN114295577B (en) Terahertz detection signal processing method, device, equipment and medium

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