CN111289460B - Gas concentration detection equipment, its detection method, control device and storage medium - Google Patents
Gas concentration detection equipment, its detection method, control device and storage medium Download PDFInfo
- Publication number
- CN111289460B CN111289460B CN202010182715.9A CN202010182715A CN111289460B CN 111289460 B CN111289460 B CN 111289460B CN 202010182715 A CN202010182715 A CN 202010182715A CN 111289460 B CN111289460 B CN 111289460B
- Authority
- CN
- China
- Prior art keywords
- gas
- detected
- pressure value
- light
- concentration
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/17—Systems in which incident light is modified in accordance with the properties of the material investigated
- G01N21/25—Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
- G01N21/31—Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry
- G01N21/35—Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light
- G01N21/3504—Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light for analysing gases, e.g. multi-gas analysis
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/17—Systems in which incident light is modified in accordance with the properties of the material investigated
- G01N21/25—Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
- G01N21/31—Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry
- G01N21/35—Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light
- G01N21/3504—Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light for analysing gases, e.g. multi-gas analysis
- G01N2021/3536—Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light for analysing gases, e.g. multi-gas analysis using modulation of pressure or density
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02A—TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
- Y02A50/00—TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE in human health protection, e.g. against extreme weather
- Y02A50/20—Air quality improvement or preservation, e.g. vehicle emission control or emission reduction by using catalytic converters
Landscapes
- Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Health & Medical Sciences (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 Or Analysing Materials By Optical Means (AREA)
Abstract
Description
技术领域technical field
本发明涉及镜片技术领域,尤其涉及气体浓度检测方法、控制装置、气体浓度检测设备和可读存储介质。The invention relates to the field of lens technology, in particular to a gas concentration detection method, a control device, a gas concentration detection device and a readable storage medium.
背景技术Background technique
目前,在进行气体浓度检测时一般通过红外气体传感器,基于不同气体分子的近红外光谱选吸收特性,利用气体浓度与吸收强度的关系,鉴别气体组分并确定其浓度。在进行浓度分析时,需要通过热释电或热电堆红外探测器对受到气体作用后的红外线进行检测,对检测结果进行额外的光谱分析才能确定气体的浓度。由此可见,当前气体浓度的分析过程繁琐,红外探测器所读取的结果无法直接表征气体浓度,而是需要进行额外的光谱分析过程才能得到气体浓度的表征参数,影响气体浓度检测的效率。At present, in the detection of gas concentration, infrared gas sensors are generally used to identify gas components and determine their concentrations based on the near-infrared spectra of different gas molecules and the relationship between gas concentration and absorption intensity. When performing concentration analysis, it is necessary to detect the infrared rays after being affected by the gas through pyroelectric or thermopile infrared detectors, and perform additional spectral analysis on the detection results to determine the concentration of the gas. It can be seen that the current gas concentration analysis process is cumbersome, and the results read by the infrared detector cannot directly represent the gas concentration. Instead, an additional spectral analysis process is required to obtain the characterization parameters of the gas concentration, which affects the efficiency of gas concentration detection.
发明内容Contents of the invention
本发明的主要目的在于提供一种气体浓度检测方法,旨在实现气体浓度检测效率的提高。The main purpose of the present invention is to provide a gas concentration detection method, aiming at improving the gas concentration detection efficiency.
为实现上述目的,本发明提供一种气体浓度检测方法,所述气体浓度检测方法包括以下步骤:In order to achieve the above object, the present invention provides a gas concentration detection method, the gas concentration detection method comprises the following steps:
按照设置的光特征参数控制光发生器向待测气体发射第一光线;Control the light generator to emit the first light to the gas to be measured according to the set light characteristic parameters;
获取压力传感器检测的第一压力值,所述第一压力值为所述压力传感器在所述第一光线穿过所述待测气体照射到所述压力传感器时检测到的数据;Acquiring a first pressure value detected by a pressure sensor, where the first pressure value is data detected by the pressure sensor when the first light irradiates the pressure sensor through the gas to be measured;
根据所述第一压力值确定所述待测气体的浓度。The concentration of the gas to be measured is determined according to the first pressure value.
可选地,所述根据所述第一压力值确定所述待测气体的浓度的步骤包括:Optionally, the step of determining the concentration of the gas to be tested according to the first pressure value includes:
获取所述压力传感器所检测的压力值与气体浓度之间的对应关系;Obtaining the correspondence between the pressure value detected by the pressure sensor and the gas concentration;
将所述第一压力值代入所述对应关系得到所述待测气体的浓度。Substituting the first pressure value into the corresponding relationship to obtain the concentration of the gas to be measured.
可选地,所述对应关系为计算公式,所述将所述第一压力值代入所述对应关系得到所述待测气体的浓度的步骤包括:Optionally, the corresponding relationship is a calculation formula, and the step of substituting the first pressure value into the corresponding relationship to obtain the concentration of the gas to be measured includes:
将所述第一压力值代入所述计算公式得到所述待测气体的浓度。Substituting the first pressure value into the calculation formula to obtain the concentration of the gas to be measured.
可选地,所述对应关系为径向基神经网络,所述将所述第一压力值代入所述对应关系得到所述待测气体的浓度的步骤包括:Optionally, the corresponding relationship is a radial basis neural network, and the step of substituting the first pressure value into the corresponding relationship to obtain the concentration of the gas to be measured includes:
将所述第一压力值输入所述径向基神经网络;inputting the first pressure value into the radial basis neural network;
将所述径向基神经网络的输出结果作为所述待测气体的浓度。The output result of the radial basis neural network is used as the concentration of the gas to be measured.
可选地,所述获取所述第一压力值与所述待测气体之间的对应关系的步骤之前,还包括:Optionally, before the step of obtaining the corresponding relationship between the first pressure value and the gas to be measured, it may further include:
控制所述光发生器分别向多个已知浓度的气体发出所述第一光线;controlling the light generator to emit the first light to a plurality of gases with known concentrations;
获取所述压力传感器对应检测到的第二压力值,所述第二压力值为所述压力传感器在所述第一光线穿过各所述已知浓度的气体并照射到所述压力传感器时检测到的数据;Acquiring a second pressure value correspondingly detected by the pressure sensor, where the second pressure value is detected by the pressure sensor when the first light passes through each gas of known concentration and irradiates the pressure sensor received data;
根据各所述已知浓度的气体的浓度值及其对应的第二压力值、以及所述光特征参数,生成所述对应关系。The corresponding relationship is generated according to the concentration value of each gas with a known concentration and its corresponding second pressure value, and the light characteristic parameter.
可选地,当所述对应关系为径向基神经网络时,所述根据各所述已知浓度的气体的浓度值及其对应的第二压力值、以及所述光特征参数,生成所述对应关系的步骤包括:Optionally, when the corresponding relationship is a radial basis neural network, the concentration value of each gas with known concentration and its corresponding second pressure value, and the light characteristic parameter are used to generate the The steps for correspondence include:
基于遗传算法,根据各所述已知浓度的气体的浓度值及其对应的第二压力值、以及所述光特征参数,生成所述径向基神经网络。Based on a genetic algorithm, the radial basis neural network is generated according to the concentration value of each gas with known concentration and its corresponding second pressure value, and the light characteristic parameter.
可选地,所述按照设置的光特征参数控制光发生器向待测气体发射第一光线的步骤之前,还包括:Optionally, before the step of controlling the light generator to emit the first light to the gas to be measured according to the set light characteristic parameters, it also includes:
获取所述待测气体的类型;Obtain the type of the gas to be measured;
根据所述类型确定所述光特征参数;且/或,determining said light characteristic parameter according to said type; and/or,
所述获取所述压力传感器所检测的压力值与气体浓度之间的对应关系的步骤包括:The step of obtaining the corresponding relationship between the pressure value detected by the pressure sensor and the gas concentration includes:
获取所述待测气体的类型;Obtain the type of the gas to be measured;
根据所述类型获取所述对应关系。The corresponding relationship is obtained according to the type.
此外,为了实现上述目的,本申请还提出一种控制装置,所述控制装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的气体浓度检测程序,所述气体浓度检测程序被所述处理器执行时实现如上任一项所述的气体浓度检测方法的步骤。In addition, in order to achieve the above object, the present application also proposes a control device, which includes: a memory, a processor, and a gas concentration detection program stored in the memory and operable on the processor. When the gas concentration detection program is executed by the processor, the steps of the gas concentration detection method described in any one of the above items are realized.
此外,为了实现上述目的,本申请还提出一种气体浓度检测设备,所述气体浓度检测设备包括:In addition, in order to achieve the above purpose, this application also proposes a gas concentration detection device, the gas concentration detection device includes:
光发生器,用于生成光线;a light generator for generating light;
压力传感器,用于检测所述光线穿过待测气体后照射到所述压力传感器上时所形成的压力值;a pressure sensor, used to detect the pressure value formed when the light passes through the gas to be measured and irradiates the pressure sensor;
如上所述的控制装置,所述光发生器和所述压力传感器均与所述控制装置连接。As in the above control device, both the light generator and the pressure sensor are connected to the control device.
此外,为了实现上述目的,本申请还提出一种可读存储介质,所述可读存储介质上存储有气体浓度检测程序,所述气体浓度检测程序被处理器执行时实现如上任一项所述的气体浓度检测方法的步骤。In addition, in order to achieve the above purpose, the present application also proposes a readable storage medium, on which a gas concentration detection program is stored, and when the gas concentration detection program is executed by a processor, the above-mentioned The steps of the gas concentration detection method.
本发明提出的一种气体浓度检测方法,该方法按照设置的光特征参数控制光发生器向待测气体发射第一光线,当第一光线穿过待测气体并照射到压力传感器时,获取压力传感器在所述第一光线穿过待测气体并照射到压力传感器时所检测的第一压力值,根据第一压力值确定待测气体的浓度。通过上述方式,采用压力传感器所检测的压力值可直接作为气体浓度大小的表征参数,无需探测到红外线后再进行额外的光谱分析过程,实现气体浓度检测过程的简化,提高气体浓度检测的效率。A gas concentration detection method proposed by the present invention, the method controls the light generator to emit the first light to the gas to be measured according to the set light characteristic parameters, when the first light passes through the gas to be measured and irradiates the pressure sensor, the pressure is obtained The sensor detects the first pressure value when the first light passes through the gas to be tested and irradiates the pressure sensor, and determines the concentration of the gas to be tested according to the first pressure value. Through the above method, the pressure value detected by the pressure sensor can be directly used as a characterization parameter of the gas concentration, and no additional spectral analysis process is performed after detecting infrared rays, so as to realize the simplification of the gas concentration detection process and improve the efficiency of gas concentration detection.
附图说明Description of drawings
图1是本发明实施例气体浓度检测设备的结构示意图Fig. 1 is the structural representation of the gas concentration detection equipment of the embodiment of the present invention
图2是本发明实施例控制装置涉及的硬件运行环境的结构示意图;2 is a schematic structural diagram of a hardware operating environment involved in a control device according to an embodiment of the present invention;
图3为本发明气体浓度检测方法一实施例的流程示意图;3 is a schematic flow diagram of an embodiment of the gas concentration detection method of the present invention;
图4为本发明气体浓度检测方法另一实施例的流程示意图。Fig. 4 is a schematic flowchart of another embodiment of the gas concentration detection method of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明实施例的主要解决方案是:按照设置的光特征参数控制光发生器向待测气体发射第一光线;获压力传感器检测的第一压力值,所述第一压力值为所述压力传感器在所述第一光线穿过所述待测气体并照射到所述压力传感器时检测到的数据;根据所述第一压力值确定所述待测气体的浓度。The main solution of the embodiment of the present invention is: control the light generator to emit the first light to the gas to be measured according to the set light characteristic parameters; obtain the first pressure value detected by the pressure sensor, and the first pressure value is the pressure sensor The data detected when the first light passes through the gas to be tested and irradiates the pressure sensor; the concentration of the gas to be tested is determined according to the first pressure value.
由于现有技术中,当前气体浓度的分析过程繁琐,红外探测器所读取的结果无法直接表征气体浓度,而是需要进行额外的光谱分析过程才能得到气体浓度的表征参数,影响气体浓度检测的效率。Due to the cumbersome analysis process of the current gas concentration in the existing technology, the results read by the infrared detector cannot directly represent the gas concentration, but an additional spectral analysis process is required to obtain the characterization parameters of the gas concentration, which affects the gas concentration detection. efficiency.
本发明提供一种解决方案,旨在实现气体浓度检测效率的提高。The present invention provides a solution aimed at improving the efficiency of gas concentration detection.
本发明实施例提出一种气体浓度检测设备,用于对气体进行浓度检测,其中,气体可以是只包含一种物质的气体,也可以是包含多于一种物质的混合气体。An embodiment of the present invention provides a gas concentration detection device for gas concentration detection, wherein the gas may be a gas containing only one substance, or a mixed gas containing more than one substance.
参照图1,气体浓度检测设备具体包括光发生器1和压力传感器2。Referring to FIG. 1 , the gas concentration detection device specifically includes a light generator 1 and a
光发生器1可用于生成随气体浓度变化而光强发生变化的光线,例如红外光等。压力传感器2具体为受到不同强度的光照会具有不同压力值的检测模块。具体的压力传感器2可以为对红外光线敏感的微机电系统芯片(MEMS芯片)。在进行气体浓度检测时,光发生器1与压力传感器间隔设置,压力传感器2设于光发生器1发出光线所形成的光路上。The light generator 1 can be used to generate light, such as infrared light, whose light intensity changes with changes in gas concentration. The
具体的,参照图1,气体浓度检测设备还可包括用于装载待测气体的气室3,光发生器1与压力传感器2分别设于气室3的两侧,气室3具有供光发生器1发出光线通过的入光口和出光口,光发生器1设于入光口一侧,压力传感器2设于出光口一侧。此外,气体浓度检测设备还可包括用于存储待测气体的气罐4,气罐4与气室3之间可设有气体通道,在需要对待测气体进行浓度检测时,控制气罐4向气室3输入待测气体。Specifically, referring to FIG. 1 , the gas concentration detection device may also include a
在其他实施例中,气体浓度检测设备可仅包括光发生器1和压力传感器2,光发生器1和压力传感器2可直接设于待测气体所在的空间内,对空间内的气体检测浓度检测。In other embodiments, the gas concentration detection device may only include the light generator 1 and the
此外,在本发明实施例中,还提出一种控制装置,用于实现气体浓度的自动化检测。上述的气体浓度检测设备可包括这里的控制装置。在其他实施例中,控制装置也可独立于气体浓度检测设备设置。In addition, in the embodiment of the present invention, a control device is also provided for automatic detection of gas concentration. The above-mentioned gas concentration detecting device may include the control device herein. In other embodiments, the control device can also be set independently of the gas concentration detection device.
参照图2,该控制装置可以包括:处理器1001(例如CPU)和存储器1002。其中,存储器1002可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1002可选的还可以是独立于前述处理器1001的存储装置。Referring to FIG. 2 , the control device may include: a processor 1001 (such as a CPU) and a
存储器1002、光发生器1、压力传感器2、气罐4均与处理器1001连接。处理器1可用于控制光发生器1的光线的生成,还可获取压力传感器2所采集的压力值,此外,还可控制气罐4向气室输送气体。The
作为一种可读存储介质的存储器1002中可以包括气体浓度检测程序。而处理器1001可以用于调用存储器1002中存储的气体浓度检测程序,并执行以下气体浓度检测方法中任一实施例中的步骤操作。The
本领域技术人员可以理解,图2中示出的装置结构并不构成对装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the device shown in FIG. 2 does not constitute a limitation to the device, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
本发明实施例还提出一种气体浓度检测方法,用于对气体进行浓度检测,其中,气体可以是只包含一种物质的气体,也可以是包含多于一种物质的混合气体。The embodiment of the present invention also proposes a gas concentration detection method for gas concentration detection, wherein the gas may be a gas containing only one substance, or a mixed gas containing more than one substance.
在一实施例中,参照图3,所述气体浓度检测方法包括:In one embodiment, referring to FIG. 3 , the gas concentration detection method includes:
步骤S10,按照设置的光特征参数控制光发生器向待测气体发射第一光线;Step S10, controlling the light generator to emit the first light to the gas to be measured according to the set light characteristic parameters;
光特征参数具体指光发生器所发射的第一光线的特征参数。光特征参数可具体包括第一光线的强度。此外,为了保证测试的结果更为准确,除了强度以外,光特征参数还可包括第一光线的波长。The light characteristic parameter specifically refers to the characteristic parameter of the first light emitted by the light generator. The light characteristic parameter may specifically include the intensity of the first light. In addition, in order to ensure that the test result is more accurate, in addition to the intensity, the light characteristic parameter may also include the wavelength of the first light.
不同的待测气体可对应具有不同的光特征参数。例如,CO对应的光特征参数是波长4.65um,CO2对应的光特征参数是波长2.7um、4.26um。在步骤S10之前,可获取所述待测气体的类型,根据所述类型确定所述光特征参数。其中,由于不同波长对光线的洗手程度是不同的,有些气体在某些波长的光线中是无法被吸收的,因此通过基于待测气体的类型确定光特征参数,从而保证检测的准确性和有效性,Different gases to be measured may have different optical characteristic parameters. For example, the light characteristic parameter corresponding to CO is a wavelength of 4.65um, and the light characteristic parameter corresponding to CO2 is a wavelength of 2.7um and 4.26um. Before step S10, the type of the gas to be measured may be obtained, and the optical characteristic parameter is determined according to the type. Among them, because different wavelengths have different degrees of hand washing of light, some gases cannot be absorbed in certain wavelengths of light, so the light characteristic parameters are determined based on the type of gas to be measured, so as to ensure the accuracy and effectiveness of detection. sex,
当待测气体中包含多于一种气体时,可分别基于每种气体的类型确定相应的光特征参数,按照所确定的光特征参数分别向待测气体发射第一光线。When the gas to be tested contains more than one type of gas, the corresponding light characteristic parameters can be determined based on each type of gas, and the first light is emitted to the gas to be tested according to the determined light characteristic parameters.
步骤S20,获取压力传感器检测的第一压力值,所述第一压力值为所述压力传感器在所述第一光线穿过所述待测气体并照射到所述压力传感器时检测到的数据;Step S20, acquiring a first pressure value detected by a pressure sensor, where the first pressure value is data detected by the pressure sensor when the first light passes through the gas to be measured and irradiates the pressure sensor;
具体的,基于上述实施例中光发生器与压力传感器之间的位置关系。在光发生器发出第一光线达到预设时长时,可认为第一光线穿过待测气体并照射到压力传感器,此时可获取压力传感器检测到的数据作为第一压力值。此外,在获取压力传感器检测的第一压力值之前,可检测待测气体的流速,在检测到的流速小于或等于预设值时读取压力传感器当前检测的压力数据,从而避免流速过大对气体浓度检测结果的影响,保证气体浓度检测结果的准确性。Specifically, it is based on the positional relationship between the light generator and the pressure sensor in the above embodiments. When the light generator emits the first light for a preset duration, it can be considered that the first light passes through the gas to be measured and irradiates the pressure sensor, and at this time, the data detected by the pressure sensor can be obtained as the first pressure value. In addition, before obtaining the first pressure value detected by the pressure sensor, the flow rate of the gas to be measured can be detected, and the pressure data currently detected by the pressure sensor can be read when the detected flow rate is less than or equal to the preset value, so as to avoid excessive flow rate. The impact of gas concentration detection results ensures the accuracy of gas concentration detection results.
步骤S30,根据所述第一压力值确定所述待测气体的浓度。Step S30, determining the concentration of the gas to be measured according to the first pressure value.
压力传感器所检测的压力值与气体浓度之间可具有预先建立的对应关系。该对应关系的形式可根据需求进行具体设置,可以是拟合关系、参数转换关系等。具体的,对比关系可以是映射表、公式、机器学习模型等。There may be a pre-established correspondence between the pressure value detected by the pressure sensor and the gas concentration. The form of the corresponding relationship can be specifically set according to requirements, and can be a fitting relationship, a parameter conversion relationship, and the like. Specifically, the comparison relationship may be a mapping table, a formula, a machine learning model, and the like.
基于所建立的对应关系,步骤S30可具体包括:Based on the established correspondence, step S30 may specifically include:
步骤S31,获取所述压力传感器所检测的压力值与气体浓度之间的对应关系;Step S31, obtaining the corresponding relationship between the pressure value detected by the pressure sensor and the gas concentration;
其中,不同类型的气体可对应有不同对应关系。当设备所需检测的气体类型只有一种时,可直接获取其对应的对应关系。当设备所需检测的气体类型多于一种时,可先获取当前待测气体的类型,根据类型获取对应的对应关系。Wherein, different types of gases may have different correspondences. When there is only one type of gas to be detected by the device, its corresponding correspondence can be obtained directly. When the equipment needs to detect more than one type of gas, the type of the current gas to be tested can be obtained first, and the corresponding corresponding relationship can be obtained according to the type.
同一类型的气体所对应的对应关系可根据需求设置有一个或多于一个,可根据实际的精度需求选择其中之一作为确定待测气体浓度的对应关系。例如,同一类型的气体对应的对应关系可包括拟合公式和机器学习模型,当允许误差大于或等于预设阈值时,则可选择公式作为确定待测气体浓度的对应关系;当允许误差小于预设阈值时,可选择机器学习模型作为确定待测气体浓度的对应关系。There can be one or more than one corresponding relationship corresponding to the same type of gas according to requirements, and one of them can be selected as the corresponding relationship for determining the concentration of the gas to be measured according to the actual accuracy requirement. For example, the corresponding relationship for the same type of gas may include a fitting formula and a machine learning model. When the allowable error is greater than or equal to a preset threshold, the formula can be selected as the corresponding relationship for determining the concentration of the gas to be measured; When setting the threshold, a machine learning model can be selected as the corresponding relationship for determining the concentration of the gas to be measured.
步骤S32,将所述第一压力值代入所述对应关系得到所述待测气体的浓度。Step S32, substituting the first pressure value into the corresponding relationship to obtain the concentration of the gas to be measured.
其中,不同类型的对应关系可对应有不同第一压力值的处理方式。Wherein, different types of corresponding relationships may correspond to different processing manners of the first pressure value.
当所述对应关系为计算公式,则将所述第一压力值代入所述计算公式得到所述待测气体的浓度。计算公式具体为只包含压力值与气体浓度作为未知数的关系式,将第一压力值作为已知值参数导入计算公式中,便可得到气体浓度的数值,作为待测气体的浓度。When the corresponding relationship is a calculation formula, the concentration of the gas to be measured is obtained by substituting the first pressure value into the calculation formula. The calculation formula is specifically a relational expression that only includes the pressure value and the gas concentration as unknowns. The first pressure value is introduced into the calculation formula as a known value parameter, and the value of the gas concentration can be obtained as the concentration of the gas to be measured.
当所述对应关系为机器学习模型时,如径向基神经网络,将第一压力值输入径向基神经网络,将径向基神经网络的输出结果作为待测气体的浓度。When the corresponding relationship is a machine learning model, such as a radial basis neural network, the first pressure value is input into the radial basis neural network, and the output result of the radial basis neural network is used as the concentration of the gas to be measured.
本实施例提出的一种气体浓度检测方法,该方法按照设置的光特征参数控制光发生器向待测气体发射第一光线,当第一光线穿过待测气体并照射到压力传感器时,获取压力传感器所检测的第一压力值,根据第一压力值确定待测气体的浓度。通过上述方式,具有光特征参数对应的特征的第一光线经过待测气体后强度会发生衰减,不同浓度对第一光线强度的衰减作用不同,因此基于压力传感器所检测的压力值感测第一光线衰减后的强度,便可作为气体浓度大小的表征参数,无需探测到红外线后再进行额外的光谱分析过程,实现气体浓度检测过程的简化,提高气体浓度检测的效率。A gas concentration detection method proposed in this embodiment, the method controls the light generator to emit the first light to the gas to be measured according to the set light characteristic parameters, when the first light passes through the gas to be measured and irradiates the pressure sensor, the obtained The first pressure value detected by the pressure sensor is used to determine the concentration of the gas to be measured according to the first pressure value. Through the above method, the intensity of the first light with the characteristics corresponding to the light characteristic parameters will attenuate after passing through the gas to be tested, and different concentrations have different attenuation effects on the intensity of the first light, so the first light is sensed based on the pressure value detected by the pressure sensor The intensity after light attenuation can be used as a characterization parameter of the gas concentration. There is no need to perform an additional spectral analysis process after detecting infrared rays, so as to simplify the gas concentration detection process and improve the efficiency of gas concentration detection.
其中,当气体浓度检测设备中设置有用于装载待测气体的气室时,为了进一步提高所得到的气体浓度检测结果的准确度,在步骤S10之前,还包括:Wherein, when the gas concentration detection device is provided with a gas chamber for loading the gas to be measured, in order to further improve the accuracy of the obtained gas concentration detection result, before step S10, it also includes:
在向气室输入待测气体前,按照光特征参数控制光发生器向气室发射第一光线,在第一光线经过气室照射到压力传感器时,读取压力传感器的第二压力值。在读取到第二压力值之后再执行步骤S10。基于此,步骤S30包括,基于第二压力值对第一压力值修正后,按照修正后的第一压力值确定待测气体的浓度。Before inputting the gas to be measured into the gas chamber, the light generator is controlled to emit the first light to the gas chamber according to the light characteristic parameters, and when the first light passes through the gas chamber and irradiates the pressure sensor, the second pressure value of the pressure sensor is read. Step S10 is executed after the second pressure value is read. Based on this, step S30 includes, after correcting the first pressure value based on the second pressure value, determining the concentration of the gas to be measured according to the corrected first pressure value.
通过上述方式,可保证所得到的待测气体的浓度可避免环境中其他因素的影响,从而提高待测气体浓度检测的准确性。Through the above method, it can be ensured that the obtained concentration of the gas to be measured can avoid the influence of other factors in the environment, thereby improving the accuracy of detecting the concentration of the gas to be measured.
进一步,基于上述实施例,提出本申请气体浓度检测方法的另一实施例。在本实施例中,参照图4,步骤S31之前,还包括:Further, another embodiment of the gas concentration detection method of the present application is proposed based on the above embodiments. In this embodiment, referring to FIG. 4, before step S31, it also includes:
步骤S01,控制光发生器分别向多个已知浓度的气体发出所述第一光线;Step S01, controlling the light generator to emit the first light to a plurality of gases with known concentrations;
这里已知浓度的气体为与待测气体的同类型且已经知道浓度的气体。按照待测气体的类型所对应的光特征参数控制光发生器朝多个已知浓度的气体发出第一光线,即与上述步骤S10中发向待测气体相同的光线。The gas with known concentration here is the same type of gas as the gas to be measured and whose concentration is already known. According to the light characteristic parameters corresponding to the type of gas to be measured, the light generator is controlled to emit first light toward a plurality of gases with known concentrations, that is, the same light as that emitted to the gas to be measured in step S10 above.
步骤S02,获取所述压力传感器对应检测到的第二压力值,所述第二压力值为所述压力传感器在所述第一光线穿过各所述已知浓度的气体并照射到所述压力传感器时检测到的数据;Step S02, acquiring the second pressure value correspondingly detected by the pressure sensor, the second pressure value being the pressure sensor when the first light passes through each gas of known concentration and irradiates the pressure data detected by the sensor;
每个已知浓度的气体对应获取一个压力传感器的检测数据,得到多个第二压力值。The detection data of one pressure sensor is correspondingly obtained for each gas with a known concentration, so as to obtain multiple second pressure values.
步骤S03,根据各所述已知浓度的气体的浓度值及其对应的第二压力值、以及所述光特征参数,生成所述对应关系。Step S03, generating the corresponding relationship according to the concentration value of each gas with known concentration and its corresponding second pressure value, and the light characteristic parameter.
先确定对应关系的形式,按照所确定的形式获取相应的拟合结构,采用多个已知浓度的气体所对应的多个浓度值以及第二压力值、以及所述光特征参数,作为拟合结构的样本,并确定模型中未知的参数后,将基于该参数形成的拟合结构作为压力值与浓度之间的对应关系。First determine the form of the corresponding relationship, obtain the corresponding fitting structure according to the determined form, and use multiple concentration values and second pressure values corresponding to multiple known concentrations of gases, as well as the light characteristic parameters, as the fitting After determining the unknown parameters in the model, the fitting structure formed based on the parameters is used as the corresponding relationship between the pressure value and the concentration.
具体的,当对应关系的形式为公式时,可将第二压力值Z与第一光线经过气体衰减作用后的强度Y之间的关系描述为Z=f1(Y,c1),将光特征参数中的强度、第一光线经过气体衰减作用后的强度Y与气体浓度X之间的关系描述为Y=f2(X,A,c2),基于上述得到的样本中的多个第二压力值及其对应浓度值,拟合得到准确的Z=f1(Y,c1),基于上述得到的样本中的各已知浓度气体对应浓度值以及光特征参数中的强度,拟合得到准确的Y=f2(X,A,c2),基于Y将两个关系式拟合,得到Z=f1(f2(X,A,c2),c1),作为压力传感器所检测的压力值与气体浓度之间的对应关系。Specifically, when the corresponding relationship is in the form of a formula, the relationship between the second pressure value Z and the intensity Y of the first light after gas attenuation can be described as Z=f 1 (Y, c 1 ), and the light The relationship between the intensity of the characteristic parameters, the intensity Y of the first light after being attenuated by the gas, and the gas concentration X is described as Y=f 2 (X, A, c 2 ), based on the multiple first light in the sample obtained above 2. The pressure value and its corresponding concentration value are fitted to obtain an accurate Z=f 1 (Y, c 1 ). Get accurate Y=f 2 (X, A, c 2 ), fit the two relational expressions based on Y, and get Z=f 1 (f 2 (X, A, c 2 ), c 1 ), as a pressure sensor Correspondence between detected pressure value and gas concentration.
此外,当对应关系的形式为机器学习模型,如径向基神经网络(RBF神经网络)时,可将上述得到的样本训练超参数已设置好的径向基神经网络的预设模型中,确定模型中扩展常数与输出节点权值的最优解,将基于得到的最优解形成的径向基神经网络作为压力传感器所检测的压力值与气体浓度之间的对应关系。其中,为了提高所确定的径向基神经网络的准确性,基于遗传算法,根据各所述已知浓度的气体的浓度值及其对应的第二压力值、以及所述光特征参数,生成所述径向基神经网络。In addition, when the corresponding relationship is in the form of a machine learning model, such as a radial basis neural network (RBF neural network), the sample training hyperparameters obtained above can be used in the preset model of the radial basis neural network for which the hyperparameters have been set. The optimal solution of the expansion constant and the weight of the output node in the model, the radial basis neural network formed based on the obtained optimal solution is used as the corresponding relationship between the pressure value detected by the pressure sensor and the gas concentration. Wherein, in order to improve the accuracy of the determined radial basis neural network, based on the genetic algorithm, according to the concentration value of each gas with known concentration and its corresponding second pressure value, and the light characteristic parameter, the generated Radial Basis Neural Networks.
在本实施例中,通过基于与待测气体测试时同样的条件,获取多个已知浓度的气体的浓度值及其对应的第二压力值、以及光特征参数,以生成准确的对应关系,保证通过当前的第一压力值输入对应关系中可得到准确的待测气体的浓度,从而提高基于压力值检测待测气体浓度的准确性。In this embodiment, based on the same conditions as the gas to be tested, the concentration values of a plurality of known concentrations of gases, their corresponding second pressure values, and light characteristic parameters are obtained to generate accurate correspondences, It is ensured that the accurate concentration of the gas to be measured can be obtained by inputting the current first pressure value into the corresponding relationship, thereby improving the accuracy of detecting the concentration of the gas to be measured based on the pressure value.
其中,由于RBF神经网络有很强的非线性拟合能力,可映射任意复杂的非线性关系,因此应用于生成上述气体浓度与压力值之间的对应关系,可实现对气体浓度的精确检测。Among them, since the RBF neural network has a strong nonlinear fitting ability and can map any complex nonlinear relationship, it is applied to generate the corresponding relationship between the gas concentration and the pressure value above, which can realize the accurate detection of the gas concentration.
此外,本发明实施例还提出一种可读存储介质,所述可读存储介质上存储有气体浓度检测程序,所述气体浓度检测程序被处理器执行时实现如上气体浓度检测方法中任一实施例中的操作步骤。In addition, the embodiment of the present invention also proposes a readable storage medium, the gas concentration detection program is stored on the readable storage medium, and when the gas concentration detection program is executed by the processor, any one of the above gas concentration detection methods can be realized. The steps in the example.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, as used herein, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or system comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or system. Without further limitations, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system comprising that element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM) as described above. , magnetic disk, optical disk), including several instructions to make a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the method described in each embodiment of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010182715.9A CN111289460B (en) | 2020-03-16 | 2020-03-16 | Gas concentration detection equipment, its detection method, control device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010182715.9A CN111289460B (en) | 2020-03-16 | 2020-03-16 | Gas concentration detection equipment, its detection method, control device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111289460A CN111289460A (en) | 2020-06-16 |
| CN111289460B true CN111289460B (en) | 2023-04-25 |
Family
ID=71029626
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010182715.9A Active CN111289460B (en) | 2020-03-16 | 2020-03-16 | Gas concentration detection equipment, its detection method, control device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111289460B (en) |
Family Cites Families (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0826957A1 (en) * | 1996-08-29 | 1998-03-04 | Jasco Corporation | Gas analyzing apparatus |
| ES2268716T3 (en) * | 1997-01-25 | 2007-03-16 | Siemens Schweiz Ag | OPTOACUSTIC GAS DETECTOR. |
| CN100403022C (en) * | 2004-06-17 | 2008-07-16 | 西安交通大学 | Self-sustaining dark discharge carbon nanotube film gas sensor and gas concentration measurement method thereof |
| CN101055243B (en) * | 2007-04-04 | 2010-09-29 | 南京旭飞光电有限公司 | Optical fiber gas sensing method and sensor |
| US7808640B2 (en) * | 2008-07-30 | 2010-10-05 | Honeywell International Inc. | Photoacoustic spectroscopy system |
| JP5519596B2 (en) * | 2011-08-08 | 2014-06-11 | 日本特殊陶業株式会社 | Gas sensor device and concentration measuring method using gas sensor |
| JP2013096889A (en) * | 2011-11-02 | 2013-05-20 | Fuji Electric Co Ltd | Infrared gas analyzer |
| BR102014020098A2 (en) * | 2013-08-29 | 2015-11-24 | Gen Electric | method and system |
| CN103728017B (en) * | 2014-01-17 | 2015-08-05 | 安徽大学 | Light pressure detection method of light pressure sensor based on nano silver film |
| CN103792201B (en) * | 2014-02-26 | 2015-11-25 | 安徽大学 | Optical pressure sensor for detecting multi-component gas and detection method thereof |
| CN104865192B (en) * | 2015-05-12 | 2018-01-05 | 中国科学院合肥物质科学研究院 | A kind of optic fibre cantilev microphone and preparation method for optoacoustic spectroscopy detection |
| CN109632687A (en) * | 2019-01-28 | 2019-04-16 | 国网重庆市电力公司电力科学研究院 | The bearing calibration of carbon tetrafluoride gas Concentration Testing, device, equipment and storage medium |
| CN110031416B (en) * | 2019-05-16 | 2021-07-06 | 北京印刷学院 | Gas concentration detection device and method |
| CN110333190A (en) * | 2019-07-05 | 2019-10-15 | 大连理工大学 | A Diffusion Photoacoustic Microcavity Gas Sensor |
-
2020
- 2020-03-16 CN CN202010182715.9A patent/CN111289460B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN111289460A (en) | 2020-06-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4926769B2 (en) | Method of determining gas concentration with erroneous detection judgment, program and device | |
| US9423350B2 (en) | Method and device for determining a concentration | |
| CN105352907A (en) | Infrared gas sensor based on radial basis network temperature compensation and detection method | |
| CN109738881B (en) | Calibration method and device of time-of-flight depth module and readable storage medium | |
| CN109632687A (en) | The bearing calibration of carbon tetrafluoride gas Concentration Testing, device, equipment and storage medium | |
| CN108426832A (en) | Concentration detection method, the apparatus and system of multicomponent gas | |
| CN105928895A (en) | Systems And Methods For Wavelength Spectrum Analysis For Detection Of Various Gases By Using Treated Tape | |
| CN111289460B (en) | Gas concentration detection equipment, its detection method, control device and storage medium | |
| US12525657B2 (en) | System for detecting electrolyte leaks during battery manufacturing | |
| US5770793A (en) | Method for determining the concentration of a substance in a gas | |
| CN114112966B (en) | Gas sensor testing device, method, machine-readable storage medium and processor | |
| JP6308857B2 (en) | Component concentration measuring device and method | |
| JP6750410B2 (en) | Laser gas analyzer | |
| US20200319160A1 (en) | Determining a gas concentration | |
| CN110231313B (en) | Online zero calibration method and device for laser gas analyzer | |
| US9970867B2 (en) | Method of determining the concentration of a gas component and spectrometer therefor | |
| KR20220103084A (en) | Hazardous ingredient measurement device and hazardous ingredient analysis system using the same | |
| JP7365864B2 (en) | Optical detection system and method | |
| JP2012215467A (en) | Biological substance analyzer and biological substance analysis method | |
| KR102421489B1 (en) | Hazardous ingredient measurement device and hazardous ingredient analysis system using the same | |
| CN107367356A (en) | Cavity leakage detection method and its device | |
| CN119043524B (en) | A real-time detection method for laser temperature | |
| JPWO2023046523A5 (en) | ||
| JP5501797B2 (en) | Spectrum analysis apparatus and spectrum analysis method | |
| WO2024070023A1 (en) | Gas analysis system and gas analysis method |
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 |