Gas concentration measurement method, device, equipment, storage medium and product
By calibrating the response model of the gas sensor using a carrier gas and obtaining correction coefficients, the problem of rapid and accurate concentration measurement of the gas sensor under incomplete replacement conditions is solved, achieving faster measurement speed and higher accuracy.
Patent Information
- Application Number
- CN202511698676.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-19
- Publication Date
- 2026-02-13
AI Technical Summary
Existing technologies struggle to achieve rapid and accurate gas concentration measurements through complete gas replacement in large-volume gas sensors or open, easily diffused environments.
By acquiring the initial reading of the gas sensor and a carrier gas of known concentration, the gas sensor is calibrated using the correction coefficient of the response model, and the concentration of the gas to be measured is determined, thus avoiding the complete replacement process.
It enables rapid and accurate measurement of gas concentration under incomplete replacement conditions, improving measurement speed and the breadth of applicable scenarios, while also enhancing measurement accuracy.
Smart Images

Figure CN121522097A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of gas detection, and in particular to a gas concentration measurement method, device, equipment, storage medium and product. BACKGROUND
[0002] In the technical field of gas detection, when detecting the gas concentration, the principle of gas replacement is needed to separate or consume the to-be-detected gas from the mixed gas through physical replacement or chemical reaction, and the concentration of the to-be-detected gas is calculated according to the volume, pressure or mass change before and after replacement. However, the gas replacement process needs to consume a lot of time, so how to quickly and accurately measure the gas concentration becomes the focus of research and practice.
[0003] In the prior art, more attention is paid to improving the performance of the sensor itself, for example, using miniaturized or high-sensitivity sensors, or using pump suction or diffusion methods to optimize the sampling system, so as to improve the gas replacement speed.
[0004] However, for a gas sensor with a large volume, or in an open and easy diffusion scene, it is difficult to quickly and accurately measure the gas concentration by completely replacing the gas. SUMMARY
[0005] The present application provides a gas concentration measurement method, device, equipment, storage medium and product, so as to quickly and accurately measure the gas concentration of the to-be-detected gas in the case of incomplete gas replacement.
[0006] According to an aspect of the present application, a gas concentration measurement method is provided, comprising:
[0007] obtaining a first reading of a gas sensor; wherein the first reading is an initial reading of the gas sensor before the carrier gas is input; the carrier gas is a gas with a known concentration;
[0008] determining a correction coefficient of the output value of the response model according to the first gas concentration of the carrier gas, the first output value of the response model of the gas sensor, and the first reading; wherein the response model is used to characterize the relationship between the output value of the gas sensor and the time when the gas is input into the gas sensor, and the starting node of the time is the time when the gas is input into the gas sensor; the first output value is the output value of the response model when the carrier gas is input into the gas sensor;
[0009] determining a second gas concentration of the to-be-detected gas according to a second output value of the response model; wherein the second output value is the output value of the response model when the carrier gas and the to-be-detected gas are input into the gas sensor;
[0010] The corrected gas concentration of the to-be-detected gas is determined according to the first gas concentration, the second gas concentration, and the correction coefficient.
[0011] According to another aspect of the present application, a gas concentration measuring device is provided, comprising:
[0012] A first reading obtaining module is configured to obtain a first reading of a gas sensor, wherein the first reading is an initial reading of the gas sensor before a carrier gas is input, and the carrier gas is a gas with a known concentration;
[0013] A correction coefficient determining module is configured to determine a correction coefficient of an output value of a response model of the gas sensor according to a first gas concentration of the carrier gas, the first output value of the response model, and the first reading, wherein the response model is used to represent a relationship between an output value of the gas sensor and time when the gas sensor is input with a gas, and a starting node of the time is a time when the gas is input into the gas sensor, and the first output value is an output value of the response model when the gas sensor is input with the carrier gas;
[0014] A second gas concentration determining module is configured to determine a second gas concentration of a to-be-detected gas according to a second output value of the response model, wherein the second output value is an output value of the response model when the gas sensor is input with the carrier gas and the to-be-detected gas;
[0015] A corrected gas concentration determining module is configured to determine a corrected gas concentration of the to-be-detected gas according to the first gas concentration, the second gas concentration, and the correction coefficient.
[0016] According to another aspect of the present application, an electronic device is provided, comprising:
[0017] at least one processor; and
[0018] a memory connected with the at least one processor; wherein
[0019] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the gas concentration measuring method according to any one of the embodiments of the present application.
[0020] According to another aspect of the present application, a computer readable storage medium is provided, and the computer readable storage medium stores computer instructions for enabling a processor to execute the gas concentration measuring method according to any one of the embodiments of the present application when the processor executes the computer instructions.
[0021] According to another aspect of the present application, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the gas concentration measurement method according to any of the embodiments of the present application.
[0022] The technical scheme of the embodiment of the present application, by obtaining the first reading of the gas sensor, wherein the first reading is the initial reading of the gas sensor before the carrier gas is introduced, the carrier gas is a gas with a known concentration, and according to the first gas concentration of the carrier gas, the first output value of the response model of the gas sensor, and the first reading, the correction coefficient of the output value of the response model is determined, which realizes the calibration of the response model of the gas sensor by using the first gas concentration of the carrier gas, so as to obtain the correction coefficient of the output value of the response model; and further according to the second output value of the response model, the second gas concentration of the to-be-measured gas is determined, wherein the second output value is the output value of the response model under the condition that the carrier gas and the to-be-measured gas are introduced into the gas sensor, and then according to the first gas concentration, the second gas concentration, and the correction coefficient, the corrected gas concentration of the to-be-measured gas is determined, which realizes the rapid and accurate measurement of the gas concentration. By calibrating the response model of the gas sensor by using the carrier gas, the correction coefficient is obtained, and in the subsequent case of introducing the to-be-measured gas, the output value of the response model can be corrected by using the correction coefficient, so as to accurately obtain the corrected gas concentration of the to-be-measured gas. Compared with the traditional gas concentration measurement method, the present application does not need to rely on complete displacement of the gas, the measurement speed is faster, the application scenarios are more extensive, and the precision is higher.
[0023] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0025] Figure 1 is a flow chart of a gas concentration measurement method according to an embodiment of the present application;
[0026] Figure 2 is a flow chart of a gas concentration measurement method according to an embodiment of the present application;
[0027] Figure 3 is a structural schematic diagram of a gas concentration measurement device according to an embodiment of the present application;
[0028] Figure 4 Figure 1 is a structural schematic diagram of an electronic device for implementing a gas concentration measurement method according to an embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the personnel in the technical field better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should belong to the scope of protection of the present application.
[0030] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to only those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0031] Embodiment One
[0032] Figure 1 A flowchart of a gas concentration measurement method is provided for the first embodiment of the present application. The present embodiment can be applied to the case of measuring gas concentration. The method can be executed by a gas concentration measurement device, which can be realized in the form of hardware and / or software, and can be configured in an electronic device. As shown in the figure, the method comprises: Figure 1
[0033] S101, obtaining a first reading of a gas sensor, wherein the first reading is an initial reading of the gas sensor before a carrier gas is introduced, and the carrier gas is a gas with a known concentration.
[0034] In the present embodiment, the gas sensor can be a gas sensor applied in an oil and gas pipeline scene, such as a portable gas sensor, a fixed gas sensor, etc. The first reading can be understood as an initial reading of the gas sensor before the carrier gas is introduced, such as the gas concentration in the environment. The gas concentration of the carrier gas is known, which can be used to calibrate the gas sensor.
[0035] S102, determining a correction coefficient of the output value of the response model according to the first gas concentration of the carrier gas, the first output value of the response model of the gas sensor, and the first reading.
[0036] The response model is used to represent the relationship between the output value of the gas sensor and time when the gas sensor is input with the gas, and the starting node of the time is the time when the gas is input into the gas sensor; and the first output value is the output value of the response model when the gas sensor is input with the carrier gas.
[0037] In the embodiment, the first gas concentration is the gas concentration of the carrier gas, and the value is known. The first output value can be understood as the output value of the response model at a certain time when the carrier gas is input into the gas sensor. The correction coefficient can be understood as the ratio between the actual concentration change and the output value change of the gas sensor from the time when the gas is input into the gas sensor to the observation time (the observation time can be any time after the gas is input into the gas sensor), and the correction coefficient can reflect the measurement deviation caused by incomplete displacement of the gas; the value of the correction coefficient can be obtained by inputting the carrier gas into the gas sensor. The response model is used to represent the relationship between the output value of the gas sensor and time when the gas sensor is input with the gas, and the starting node of the time is the time when the gas is input into the gas sensor; and the first output value is the output value of the response model when the gas sensor is input with the carrier gas.
[0038] Optionally, before the step, the method further includes: obtaining a second reading of the gas sensor; wherein the second reading is a reading of the gas sensor when the carrier gas is input; and constructing the response model of the gas sensor according to the first gas concentration of the carrier gas, the first reading, the second reading, and an exponential function. The advantage of this setting is that the response model of the gas sensor can be determined according to the above steps, which provides a basis for subsequent determination of the correction coefficient, and the exponential function is introduced when constructing the response model, which improves the nonlinear fitting ability of the response model, so that the response model can be applied to the gas concentration measurement requirements in complex environments.
[0039] In the embodiment, the second reading can be a reading of the gas sensor at any time after the carrier gas is input. The exponential function includes a time parameter, which is used to represent the nonlinear relationship between the reading of the gas sensor and the time.
[0040] Optionally, the response model is a first-order exponential model, wherein the response model is expressed as follows:
[0041] ;
[0042] wherein, represents the reading of the gas sensor at the time when the carrier gas is input into the gas sensor. the second reading at the time, representing the first reading, representing the first gas concentration, representing an exponential function, representing a time constant.
[0043] The above formula gives a specific expression of the response model, and using the above expression, the second reading of the gas sensor can be obtained in real time in the case that the first gas concentration of the carrier gas is known, which provides a basis for real-time calculation of the correction coefficient, and is suitable for analyzing the transient process of the gas concentration.
[0044] S103, determining the second gas concentration of the to-be-tested gas according to the second output value of the response model, wherein the second output value is an output value of the response model in the case that the gas sensor is connected to the carrier gas and the to-be-tested gas.
[0045] In the embodiment, the to-be-tested gas can be a gas generated by oil and gas volatilization in an oil and gas pipeline scene, such as methane and ethane. The second gas concentration can be understood as a gas concentration of the to-be-tested gas predicted according to the response model, and in order to obtain a more accurate gas concentration of the to-be-tested gas, the correction coefficient can be used to correct it in the subsequent step.
[0046] S104, determining the corrected gas concentration of the to-be-tested gas according to the first gas concentration, the second gas concentration, and the correction coefficient.
[0047] In the embodiment, the corrected gas concentration can be understood as correcting the second gas concentration of the to-be-tested gas by using the correction coefficient and the first gas concentration to obtain a more accurate gas concentration value.
[0048] Optionally, the corrected gas concentration of the to-be-tested gas is determined according to the first gas concentration, the second gas concentration, and the correction coefficient, and the specific process can be as follows: a third difference value is determined according to the difference between the second gas concentration and the first gas concentration; the product of the third difference value and the correction coefficient is added to the first gas concentration to determine the corrected gas concentration of the to-be-tested gas. The advantage of such setting is that the corrected gas concentration of the to-be-tested gas at each time can be calculated in real time through the above steps, and the calculation process is simple, the complexity is low, and the applicability is stronger in the actual application scene.
[0049] The embodiment of the present application provides a kind of gas concentration measurement method, by obtaining the first reading of gas sensor, wherein, first reading is the initial reading of gas sensor before being input into carrier gas, carrier gas is the gas of known concentration, and according to the first gas concentration of carrier gas, the first output value of the response model of gas sensor, and first reading, the correction coefficient of the output value of response model is determined, it is realized that the response model of gas sensor is calibrated using the first gas concentration of carrier gas, to obtain the correction coefficient of response model output value;And continue according to the second output value of the response model, the second gas concentration of the gas to be measured, wherein, second output value is the output value of response model under the condition that carrier gas and the gas to be measured are input into gas sensor, and then according to the first gas concentration, the second gas concentration and the correction coefficient, the correction gas concentration of the gas to be measured is determined, the fast and accurate measurement of gas concentration is realized.The present application calibrates the response model of gas sensor using carrier gas, obtains correction coefficient, and under the condition that the gas to be measured is subsequently input, the output value of response model can be corrected using correction coefficient, so that the correction gas concentration of the gas to be measured is accurately obtained, compared with traditional gas concentration measurement method, the present application does not need to depend on gas to occur complete replacement, measurement speed is faster, more widely applicable, and higher precision.
[0050] Embodiment two
[0051] Figure 2 A flow chart of the gas concentration measurement method provided for the second embodiment of the present application is further refined based on the above-mentioned embodiment. As shown in the figure, Figure 2 the method comprises:
[0052] S201, obtaining the first reading of the gas sensor, wherein the first reading is the initial reading of the gas sensor before being input into the carrier gas, and the carrier gas is the gas of known concentration.
[0053] S202, determining the first difference value according to the difference between the first gas concentration of the carrier gas and the first reading.
[0054] S203, determining the second difference value according to the difference between the first output value of the response model of the gas sensor and the first reading.
[0055] S204, determining the correction coefficient of the output value of the response model according to the ratio of the first difference value and the second difference value.
[0056] The response model is used to represent the relationship between the output value of the gas sensor and the time under the condition that the gas is input into the gas sensor, and the starting node of the time is the time when the gas is input into the gas sensor; The first output value is the output value of the response model under the condition that the carrier gas is input into the gas sensor.
[0057] The first output value of the response model can change over time, and thus the correction coefficient obtained can be a dynamic value that changes over time, so that when the second gas concentration of the to-be-tested gas is subsequently corrected, the second gas concentration of the to-be-tested gas can be corrected according to the correction coefficient at each moment, thereby improving the measurement accuracy of the gas concentration of the to-be-tested gas.
[0058] Optionally, the correction coefficient can be expressed as follows:
[0059] ;
[0060] wherein, the correction coefficient at the moment t is represented as K(t), the first gas concentration is represented as C1, the first reading is represented as R1(t), and the first output value of the response model of the gas sensor at the moment t is represented as Y(t).
[0061] In the case where the difference between the preset index of the carrier gas and the to-be-tested gas is within the preset index range, the correction coefficient is independent of time; and the preset index includes at least one of a density index and an adsorption index. In this way, in the case where the difference between the preset index of the carrier gas and the to-be-tested gas is within the preset index range, the use of the correction coefficient with a fixed value can avoid frequent calibration of the correction coefficient by the carrier gas, thereby simplifying the calculation process.
[0062] In this embodiment, the density index can include density, and the adsorption index can include viscosity. The preset index range can be set according to the application scenario. In the case where the difference between the preset index of the carrier gas and the to-be-tested gas is within the preset index range, the correction coefficient can be considered as a fixed value independent of time, that is, the first difference and the second difference are in a linear relationship, and the ratio of the two does not change over time.
[0063] S205, determining the second gas concentration of the to-be-tested gas according to the second output value of the response model, wherein the second output value is the output value of the response model of the gas sensor in the case where the carrier gas and the to-be-tested gas are input.
[0064] S206, determining the corrected gas concentration of the to-be-tested gas according to the first gas concentration, the second gas concentration, and the correction coefficient.
[0065] For example, a carrier gas with a known gas concentration (first gas concentration) is input into the gas sensor, and the second reading of the gas sensor at each moment is observed by the response model, and the correction coefficient at each moment is calculated by the following expression:
[0066] ;
[0067] wherein, represents a correction coefficient at a time point, represents a first gas concentration, represents a first reading, represents a first output value of a response model of the gas sensor at a time point.
[0068] The measured gas is introduced into the gas sensor, the output value of the response model at each time point represents a second gas concentration of the measured gas, a third difference value is determined according to a difference between the second gas concentration and the first gas concentration, and a product of the third difference value and the correction coefficient is added to the first gas concentration to determine a corrected gas concentration of the measured gas at each time point.
[0069] The embodiment of the present application determines a first difference value according to a difference between a first gas concentration of a carrier gas and a first reading of the gas sensor, determines a second difference value according to a difference between a first output value of a response model of the gas sensor and the first reading, and then determines a correction coefficient of the output value of the response model according to a ratio of the first difference value to the second difference value, thereby realizing real-time calculation of the correction coefficient. In the subsequent process, the second gas concentration of the measured gas can be corrected based on the correction coefficient to obtain a more accurate corrected gas concentration. The entire process does not need to rely on complete replacement of the gas, and the speed of the gas concentration measurement process is greatly improved.
[0070] Embodiment Three
[0071] Figure 3 A structural schematic diagram of a gas concentration measurement device provided by the embodiment three of the present application. As shown in Figure 3 , the device comprises a first reading acquisition module 301, a correction coefficient determination module 302, a second gas concentration determination module 303, and a corrected gas concentration determination module 304.
[0072] The first reading acquisition module is used to acquire a first reading of a gas sensor; wherein the first reading is an initial reading of the gas sensor before a carrier gas is introduced; and the carrier gas is a gas with a known concentration.
[0073] a correction coefficient determination module configured to determine a correction coefficient of an output value of a response model of the gas sensor according to the first gas concentration of the carrier gas, the first output value of the response model, and the first reading, wherein the response model is used to represent a relationship between an output value of the gas sensor and time when the gas is input into the gas sensor, and the first output value is an output value of the response model when the carrier gas is input into the gas sensor;
[0074] a second gas concentration determination module configured to determine a second gas concentration of the to-be-detected gas according to a second output value of the response model, wherein the second output value is an output value of the response model when the carrier gas and the to-be-detected gas are input into the gas sensor;
[0075] a corrected gas concentration determination module configured to determine a corrected gas concentration of the to-be-detected gas according to the first gas concentration, the second gas concentration, and the correction coefficient.
[0076] The embodiment of the present application provides a gas concentration measuring device, by obtaining a first reading of a gas sensor, wherein the first reading is an initial reading of the gas sensor before a carrier gas is input, the carrier gas is a gas with a known concentration, and according to the first gas concentration of the carrier gas, a first output value of a response model of the gas sensor, and the first reading, a correction coefficient of an output value of the response model is determined, so that the response model of the gas sensor is calibrated by using the first gas concentration of the carrier gas, thereby obtaining the correction coefficient of the output value of the response model; and then according to a second output value of the response model, a second gas concentration of a to-be-detected gas is determined, wherein the second output value is an output value of the response model when the carrier gas and the to-be-detected gas are input into the gas sensor, and then according to the first gas concentration, the second gas concentration, and the correction coefficient, a corrected gas concentration of the to-be-detected gas is determined, so that the gas concentration is quickly and accurately measured. By calibrating the response model of the gas sensor by using the carrier gas, the correction coefficient is obtained, and in the subsequent case of inputting the to-be-detected gas, the output value of the response model can be corrected by using the correction coefficient, so that the corrected gas concentration of the to-be-detected gas is accurately obtained. Compared with the traditional gas concentration measuring method, the present application does not need to rely on complete replacement of the gas, the measuring speed is faster, the application scenarios are more extensive, and the precision is higher.
[0077] Optionally, the device further comprises:
[0078] The response model construction module is configured to acquire a second reading of the gas sensor before determining the correction coefficient of the output value of the response model of the gas sensor according to the first gas concentration of the carrier gas, the first output value of the response model of the gas sensor, and the first reading, wherein the second reading is a reading of the gas sensor when the carrier gas is input; and construct the response model of the gas sensor according to the first gas concentration of the carrier gas, the first reading, the second reading, and an exponential function.
[0079] Optionally, the response model is a first-order exponential model; wherein the response model is expressed as follows:
[0080] ;
[0081] wherein, represents the second reading of the gas sensor at the time t2, represents the first reading, represents the first gas concentration, represents the exponential function, represents the time constant.
[0082] Optionally, the correction coefficient determination module comprises:
[0083] a first difference determination unit configured to determine a first difference according to a difference between the first gas concentration of the carrier gas and the first reading;
[0084] a second difference determination unit configured to determine a second difference according to a difference between the first output value of the response model of the gas sensor and the first reading;
[0085] a correction coefficient determination unit configured to determine the correction coefficient of the output value of the response model according to a ratio of the first difference to the second difference.
[0086] Optionally, the correction coefficient is expressed as follows:
[0087] ;
[0088] wherein, represents the correction coefficient at the time t2, represents the first gas concentration, represents the first reading, represents the first output value of the response model of the gas sensor at the time t1;
[0089] The correction coefficient is irrelevant to time in a case where a difference between the carrier gas and the preset index of the to-be-detected gas is within a preset index range; and the preset index includes at least one of a density index and an adsorption index.
[0090] Optionally, the correction gas concentration determination module comprises:
[0091] A third difference determination unit is configured to determine a third difference according to a difference between the second gas concentration and the first gas concentration.
[0092] A correction gas concentration determination unit is configured to determine a correction gas concentration of the to-be-detected gas by adding the product of the third difference and the correction coefficient to the first gas concentration.
[0093] The gas concentration measurement device provided by the embodiments of the present application can perform the gas concentration measurement method provided by any of the embodiments of the present application, and has the corresponding function modules and beneficial effects of performing the method.
[0094] Embodiment four
[0095] Figure 4 A structural schematic diagram of an electronic device 400 that can be used to implement embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit implementations of the present application described and / or claimed in this document.
[0096] As shown in Figure 4 The electronic device 400 includes at least one processor 401 and a memory, such as a read-only memory (ROM) 402, a random access memory (RAM) 403, etc., which are communicatively connected to the at least one processor 401, wherein the memory stores a computer program executable by the at least one processor, and the processor 401 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 402 or loaded from the storage unit 408 into the random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 can also be stored. The processor 401, the ROM 402, and the RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0097] A plurality of components in the electronic device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a magnetic disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.
[0098] The processor 401 can be various general and / or special purpose processing components having processing and computing capabilities. Some examples of the processor 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 401 performs various methods and processes described above, such as the gas concentration measurement method.
[0099] In some embodiments, the gas concentration measurement method can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 408. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded onto the RAM 403 and executed by the processor 401, one or more steps of the gas concentration measurement method described above can be performed. Alternatively, in other embodiments, the processor 401 can be configured to perform the gas concentration measurement method by any other appropriate means, such as by means of firmware.
[0100] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0101] Computer programs for implementing the methods of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer program, when executed, enables the functions / acts specified in the flowcharts and / or block diagrams to be implemented. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine as a standalone software package and partially on a remote machine or entirely on a remote machine or server.
[0102] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium will include one or more lines of a program of instructions in a transitory signal, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0103] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0104] The systems and techniques described herein can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described herein), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), blockchain network, and the Internet.
[0105] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. A server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.
[0106] The embodiment of the present disclosure provides a computer program product, comprising a computer program, which, when executed by a processor, implements the gas concentration measurement method provided in the above embodiment.
[0107] It should be understood that various forms of flow shown above can be used to reorder, add or delete steps. For example, each step described in the present application can be executed in parallel, sequentially or in different order, as long as the desired results of the technical solutions of the present application can be achieved, which is not limited herein.
[0108] The above detailed description does not constitute a limitation on the scope of protection of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for measuring gas concentration, characterized in that, include: Acquire a first reading from the gas sensor; wherein the first reading is the initial reading of the gas sensor before the carrier gas is introduced; and the carrier gas is a gas of known concentration. Based on the first gas concentration of the carrier gas, the first output value of the response model of the gas sensor, and the first reading, a correction coefficient for the output value of the response model is determined; wherein, the response model is used to characterize the relationship between the output value of the gas sensor and time when gas is introduced, and the starting node of the time is the moment when the gas is input to the gas sensor; the first output value is the output value of the response model when the gas sensor is introduced with carrier gas. The second gas concentration of the gas to be measured is determined based on the second output value of the response model; wherein, the second output value is the output value of the response model when the gas sensor is supplied with the carrier gas and the gas to be measured. The corrected gas concentration of the gas to be tested is determined based on the first gas concentration, the second gas concentration, and the correction coefficient.
2. The gas concentration measurement method according to claim 1, characterized in that, Before determining the correction coefficient for the output value of the response model based on the first gas concentration of the carrier gas, the first output value of the response model of the gas sensor, and the first reading, the method further includes: Acquire a second reading from the gas sensor; wherein the second reading is the reading of the gas sensor when the carrier gas is introduced; The response model of the gas sensor is constructed based on the first gas concentration of the carrier gas, the first reading, the second reading, and the exponential function.
3. The gas concentration measurement method according to claim 2, characterized in that, The response model is a first-order exponential model; the response model is expressed by the following expression: ; in, Representing gas sensors in The second reading at time, Represents the first reading. Represents the concentration of the first gas. Represents an exponential function. Represents the time constant.
4. The gas concentration measurement method according to claim 1, characterized in that, The step of determining the correction coefficient for the output value of the response model based on the first gas concentration of the carrier gas, the first output value of the response model of the gas sensor, and the first reading includes: The first difference is determined based on the difference between the first gas concentration of the carrier gas and the first reading; The second difference is determined based on the difference between the first output value of the gas sensor's response model and the first reading; The correction coefficient for the output value of the response model is determined based on the ratio of the first difference to the second difference.
5. The gas concentration measurement method according to claim 4, characterized in that, The correction factor is expressed by the following expression: ; in, represent Correction factor at time, Represents the concentration of the first gas. Represents the first reading. The response model of the gas sensor is in The first output value at time 1; Wherein, when the difference between the preset index of the carrier gas and the gas to be tested is within the preset index range, the correction coefficient is independent of time; wherein, the preset index includes at least one of the following: density index and adsorption index.
6. The gas concentration measurement method according to claim 1, characterized in that, The step of determining the corrected gas concentration of the gas to be measured based on the first gas concentration, the second gas concentration, and the correction coefficient includes: The third difference is determined based on the difference between the second gas concentration and the first gas concentration; The product of the third difference and the correction coefficient, and the sum of the product and the first gas concentration, are used to determine the corrected gas concentration of the gas to be measured.
7. A gas concentration measuring device, characterized in that, include: A first reading acquisition module is used to acquire a first reading of a gas sensor; wherein, the first reading is the initial reading of the gas sensor before the carrier gas is introduced; and the carrier gas is a gas of known concentration. The correction coefficient determination module is used to determine the correction coefficient of the output value of the response model based on the first gas concentration of the carrier gas, the first output value of the response model of the gas sensor, and the first reading; wherein, the response model is used to characterize the relationship between the output value of the gas sensor and time when the gas is introduced, and the starting node of the time is the moment when the gas is input to the gas sensor; the first output value is the output value of the response model of the gas sensor when the carrier gas is introduced. The second gas concentration determination module is used to determine the second gas concentration of the gas to be measured based on the second output value of the response model; wherein, the second output value is the output value of the response model when the gas sensor is supplied with the carrier gas and the gas to be measured. The corrected gas concentration determination module is used to determine the corrected gas concentration of the gas to be measured based on the first gas concentration, the second gas concentration, and the correction coefficient.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the gas concentration measurement method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the gas concentration measurement method according to any one of claims 1-6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the gas concentration measurement method according to any one of claims 1-6.