Fuel gas monitoring method and system

By setting up a collection device at the failure site, the air sample generation component change curve is collected and analyzed in real time, the problem of natural gas leakage detection when the pressure sensor fails, and accurate leakage detection and early warning are achieved.

CN120352085APending Publication Date: 2025-07-22JIANGXI LUOHUI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510322793.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-19
Publication Date
2025-07-22

AI Technical Summary

Technical Problem

In the prior art, natural gas leakage cannot be accurately monitored when the pressure sensor fails, which poses safety hazards.

Method used

By setting up a preset collection device at the failure site, collecting air samples in real time and performing component analysis, generating component change curves, analyzing and determining whether target gases appear, and issuing early warning information.

Benefits of technology

In the event of pressure sensor failure, natural gas leakage can be accurately detected, safety hazards can be eliminated, and user experience can be improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120352085A_ABST
    Figure CN120352085A_ABST
Patent Text Reader

Abstract

The invention provides a gas monitoring method and system, and the method comprises the steps: detecting a corresponding failure site in real time according to a pressure sensor when the failure of the pressure sensor is detected in real time, and arranging a preset collection device in the failure site; collecting an air sample correspondingly generated in the failure site in real time through a preset collection device, and performing component analysis processing on the air sample based on a preset rule to output a corresponding component change curve in real time; analyzing the component change curve to judge whether target gas appears in the failure site or not in real time; and if the target gas correspondingly appears in the failure site according to real-time judgment, natural gas leakage in the failure site is correspondingly judged, corresponding early warning information is immediately sent out, and the component change curve is a dynamic change curve. After the pressure sensor fails, whether natural gas leaks or not can still be accurately detected, and potential safety hazards are correspondingly eliminated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and particularly to a gas monitoring method and system. Background Art

[0002] With the progress of technology and the rapid development of the times, natural gas has been popularized in people's daily lives, greatly facilitating people's lives.

[0003] Among them, most existing households are connected to and use natural gas. Specifically, since existing natural gas can cause harm to people's bodies and pose certain safety hazards when there is a leakage, based on this, the prior art always monitors the usage of natural gas in real time.

[0004] Furthermore, during the process of monitoring natural gas in the prior art, most of them set corresponding pressure sensors at the outlet of the natural gas pipeline and use the pressure sensors to monitor in real time whether there is a leakage of natural gas. However, when the pressure sensor fails, this monitoring method cannot accurately and effectively monitor whether there is a leakage of natural gas, thus there are certain safety hazards and it is not conducive to the large-scale application of natural gas. Summary of the Invention

[0005] Based on this, the purpose of the present invention is to provide a gas monitoring method and system to solve the problem that when the pressure sensor fails in the prior art, it cannot accurately and effectively monitor whether there is a leakage of natural gas.

[0006] The first aspect of the embodiment of the present invention proposes: A gas monitoring method, wherein the method includes: When it is detected in real time that the pressure sensor fails, according to the pressure sensor, the corresponding failure location is detected in real time, and a preset collection device is provided in the failure location; The preset collection device is used to collect in real time the air samples generated corresponding to the failure location, and based on a preset rule, the air samples are subjected to component analysis processing to output a corresponding component change curve in real time; The component change curve is subjected to analysis processing to judge in real time whether a target gas appears in the failure location; If it is judged in real time that the target gas appears corresponding to the failure location, it is correspondingly determined that there is a leakage of natural gas in the failure location, and a corresponding warning message is immediately sent out. The component change curve is a dynamically changing curve.

[0007] The beneficial effects of the present invention are as follows: By detecting in real time whether the pressure sensor fails, it is decided whether to execute the subsequent processes. Specifically, when it is detected in real time that a certain pressure sensor fails, the corresponding failure location can be immediately detected at this time, and the preset acquisition device pre-set inside the failure location can be immediately enabled. Based on this, the air sample generated correspondingly inside the current failure location is collected in real time and corresponding analysis and processing are carried out. At the same time, the corresponding composition change curve can be output in real time, and finally, it can be judged in real time whether there is a gas present in the natural gas according to this curve. Specifically, if so, a corresponding warning message will be immediately issued, so that when the pressure sensor fails, it can accurately detect whether the natural gas leaks, eliminating potential safety hazards.

[0008] Further, the step of performing composition analysis and processing on the air sample based on a preset rule to output the corresponding composition change curve in real time includes: When the air sample is obtained in real time, the gas composition of the air sample is analyzed and processed by the preset acquisition device to detect in real time several gas types contained correspondingly inside the air sample, and an initial time axis adapted to the preset acquisition device is created in real time. The creation time of the initial time axis is the same as the activation time of the preset acquisition device; The composition change curve is generated in real time according to the initial time axis and several gas types.

[0009] Further, the step of generating the composition change curve in real time according to the initial time axis and several gas types includes: When the initial time axis is obtained in real time, the target acquisition moment corresponding to the air sample is detected in real time; The mapping relationship between the target acquisition moment and several gas types is constructed in real time, and the target acquisition moment and several gas types are mapped to the initial time axis according to the mapping relationship to generate a corresponding target time axis in real time; The composition change curve is generated according to the target time axis.

[0010] Further, the step of generating the composition change curve according to the target time axis includes: When the target time axis is obtained in real time, at the target acquisition moment, the real-time proportion of each gas type in the air sample is calculated in real time; A target two-dimensional coordinate system adapted to several gas types is created in real time according to the target time axis, and the real-time proportion corresponding to each gas type is mapped into the target two-dimensional coordinate system; In the target two-dimensional coordinate system, the real-time proportions corresponding to each gas type are sequentially connected to correspondingly generate a composition change curve corresponding to each gas type, wherein, at the same acquisition moment, the sum of the real-time proportions among several gas types is 1.

[0011] Further, the step of analyzing and processing the composition change curve to determine in real time whether the target gas appears at the failure location includes: When the composition change curves corresponding to each gas type are obtained in real time, several maximum points and several minimum points that appear in sequence inside the composition change curves are sequentially detected; The target difference between adjacent maximum points and minimum points is calculated in real time, and it is determined in real time whether the target gas appears according to the target difference.

[0012] Further, the step of determining in real time whether the target gas appears according to the target difference includes: When the target difference is obtained in real time, it is determined in real time whether the target difference is within the range of a preset difference threshold; If it is determined in real time that the target difference is not within the range of the preset difference threshold, it is correspondingly determined that the real-time proportion of the gas type corresponding to the current target difference is lower than the normal value, and it is correspondingly determined that a new gas appears in the collected air sample; Based on a preset database, it is determined in real time whether the new gas is the target gas.

[0013] Further, the step of determining in real time whether the new gas is the target gas based on a preset database includes: When the new gas is obtained in real time, it is determined in real time whether the new gas is in the preset gas list; If it is determined in real time that the new gas is in the preset gas list, the new gas is correspondingly set as the target gas.

[0014] A second aspect of the embodiments of the present invention proposes: A gas monitoring system, wherein the system includes: A detection module, configured to, when it is detected in real time that the pressure sensor fails, detect the corresponding failure location according to the pressure sensor, and a preset collection device is provided inside the failure location; An analysis module, configured to collect in real time the air sample generated correspondingly inside the failure location through the preset collection device, and perform composition analysis processing on the air sample based on a preset rule to output a corresponding composition change curve in real time; A judgment module, configured to analyze and process the component change curve to determine in real time whether a target gas appears in the failure location; An early warning module, configured to, if it is determined in real time that the target gas appears correspondingly in the failure location, determine correspondingly that natural gas leakage has occurred in the failure location, and immediately send out corresponding early warning information. The component change curve is a dynamically changing curve.

[0015] Further, the analysis module is specifically configured to: When the air sample is obtained in real time, perform gas component analysis and processing on the air sample through the preset collection device to detect in real time a plurality of the gas types contained correspondingly inside the air sample, and create in real time an initial time axis adapted to the preset collection device. The creation time of the initial time axis is the same as the activation time of the preset collection device; Generate the component change curve in real time according to the initial time axis and the plurality of gas types.

[0016] Further, the analysis module is specifically configured to: When the initial time axis is obtained in real time, detect in real time the target collection moment corresponding to the air sample; Construct in real time a mapping relationship between the target collection moment and the plurality of gas types, and map the target collection moment and the plurality of gas types correspondingly to the initial time axis according to the mapping relationship to generate a corresponding target time axis in real time; Generate the component change curve according to the target time axis.

[0017] Further, the analysis module is specifically configured to: When the target time axis is obtained in real time, calculate in real time the real-time proportion of each gas type in the air sample at the target collection moment; Create in real time a target two-dimensional coordinate system adapted to the plurality of gas types according to the target time axis, and map the real-time proportion corresponding to each gas type into the target two-dimensional coordinate system; Connect in sequence the real-time proportions corresponding to each gas type in the target two-dimensional coordinate system to generate correspondingly a component change curve corresponding to each gas type respectively, wherein, at the same collection moment, the sum of the real-time proportions between the plurality of gas types is 1.

[0018] Further, the judgment module is specifically configured to: When the component change curves corresponding to each gas type are obtained in real time, detect in sequence a plurality of maximum points and a plurality of minimum points that appear inside the component change curves; Calculate the target difference between adjacent maximum and minimum points in real time, and determine whether the target gas appears in real time according to the target difference.

[0019] Further, the judgment module is specifically configured to: When the target difference is obtained in real time, determine in real time whether the target difference is within the range of a preset difference threshold; If it is determined in real time that the target difference is not within the range of the preset difference threshold, it is correspondingly determined that the real-time proportion of the gas type corresponding to the current target difference is lower than the normal value, and it is correspondingly determined that a new gas appears in the collected air sample. Based on a preset database, determine in real time whether the new gas is the target gas.

[0020] Further, the judgment module is specifically configured to: When the new gas is obtained in real time, determine in real time whether the new gas is in a preset gas list; If it is determined in real time that the new gas is in the preset gas list, the new gas is correspondingly set as the target gas.

[0021] The third aspect of the embodiments of the present invention proposes: A computer includes a memory, a processor, and a computer program stored on the memory and executable on the processor. Wherein, when the processor executes the computer program, the gas monitoring method as described above is implemented.

[0022] The fourth aspect of the embodiments of the present invention proposes: A readable storage medium stores a computer program thereon. Wherein, when the program is executed by a processor, the gas monitoring method as described above is implemented.

[0023] The additional aspects and advantages of the present invention will be partially given in the following description, partially become obvious from the following description, or be understood through the practice of the present invention. Description of the Drawings

[0024] Figure 1 It is a flowchart of the gas monitoring method provided by the first embodiment of the present invention; Figure 2 It is a structural block diagram of the gas monitoring system provided by the third embodiment of the present invention.

[0025] The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings. Specific Embodiments

[0026] To facilitate the understanding of the present invention, the present invention will be described more comprehensively below with reference to the relevant drawings. Several embodiments of the present invention are shown in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, these embodiments are provided to make the disclosure of the present invention more thorough and comprehensive.

[0027] It should be noted that when an element is referred to as being "fixedly provided on" another element, it can be directly on the other element or there may also be an intermediate element. When an element is considered to be "connected" to another element, it can be directly connected to the other element or there may be an intermediate element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0029] Please refer to Figure 1 , which shows the gas monitoring method provided by the first embodiment of the present invention. The gas monitoring method provided by this embodiment can objectively and accurately detect whether natural gas leakage occurs at the failure location on the premise that the pressure sensor fails, corresponding to eliminating potential safety hazards.

[0030] Specifically, this embodiment provides: A gas monitoring method, specifically including the following steps: Step S10, when it is detected in real time that the pressure sensor fails, according to the pressure sensor, the corresponding failure location is detected in real time, and a preset collection device is provided in the failure location; Step S20, through the preset collection device, the air sample corresponding to the failure location is collected in real time, and the component analysis process is performed on the air sample based on a preset rule to output the corresponding component change curve in real time; Step S30, perform an analysis process on the component change curve to judge in real time whether a target gas appears in the failure location; Step S40, if it is judged in real time that the target gas appears in the failure location, it is correspondingly determined that natural gas leakage has occurred in the failure location, and a corresponding warning message is immediately issued. The component change curve is a dynamically changing curve.

[0031] Specifically, in this embodiment, it should be noted first that in order to objectively and accurately detect whether natural gas leaks after the pressure sensor fails, it is necessary to objectively and accurately obtain the information contained in the air inside the failure location. Among them, it should be noted that the existing natural gas is mainly composed of methane gas. In addition, it also includes trace amounts of ethane and other gases. Based on this, the present invention utilizes the structural characteristics of natural gas to detect the content of methane and ethane inside the failure location in real time, so as to determine whether there is a natural gas leakage phenomenon inside the current failure location. Among them, it should also be pointed out that the gas monitoring method provided by the present invention is implemented based on the existing Internet of Things and the server set in the background. Among them, the Internet of Things can connect the pressure sensors in each household in series, and the server can receive the data and information generated inside the Internet of Things in real time. In addition, for the convenience of implementing the gas monitoring method, the present invention will pre-set devices such as existing air analyzers or air samplers inside each household for subsequent processing.

[0032] Furthermore, in the actual application process, when the pressure sensor in a certain household fails, the Internet of Things can immediately locate the failure location corresponding to the current pressure sensor. Based on this, the current failure data will be transmitted to the above-mentioned server in real time. Correspondingly, the server can immediately activate the air analyzer inside the current failure location and collect the air sample inside the current failure location in real time through the air analyzer, and at the same time perform corresponding analysis. Specifically, the present invention will immediately perform component analysis processing on the current air sample according to the pre-set rules and can output the corresponding component change curve in real time. Among them, it should be noted that the existing air is mainly composed of gases such as nitrogen, oxygen, and carbon dioxide, that is, only the above-mentioned several gases will appear inside normal air. Correspondingly, when natural gas leaks, methane and ethane and other gases will immediately appear inside the current air, so as to be able to determine that natural gas leakage has occurred. Based on this, the present invention will immediately perform parsing processing on the current component change curve to determine in real time whether target gases, that is, whether the above-mentioned methane and ethane and other gases appear inside the current component change curve. Specifically, if so, it can accurately determine that natural gas leakage has occurred. Correspondingly, if not, it can accurately determine that there is no natural gas leakage, so that after the pressure sensor fails, it is still possible to objectively and accurately determine whether there is a natural gas leakage phenomenon, and corresponding warning information can be made, so as to effectively eliminate potential safety hazards and correspondingly greatly improve the user experience.

[0033] Second Embodiment Further, the step of performing component analysis processing on the air sample based on a preset rule to output a corresponding component change curve in real time includes: When the air sample is obtained in real time, the preset collection device is used to perform gas component analysis processing on the air sample to detect in real time a number of the gas types contained in the air sample, and an initial time axis adapted to the preset collection device is created in real time. The creation time of the initial time axis is the same as the activation time of the preset collection device; The component change curve is generated in real time according to the initial time axis and a number of the gas types.

[0034] Further, the step of generating the component change curve in real time according to the initial time axis and a number of the gas types includes: When the initial time axis is obtained in real time, a target collection moment corresponding to the air sample is detected in real time; A mapping relationship between the target collection moment and a number of the gas types is constructed in real time, and the target collection moment and a number of the gas types are mapped to the initial time axis according to the mapping relationship to generate a corresponding target time axis in real time; The component change curve is generated according to the target time axis.

[0035] Further, the step of generating the component change curve according to the target time axis includes: When the target time axis is obtained in real time, at the target collection moment, the real-time proportion of each gas type in the air sample is calculated in real time; A target two-dimensional coordinate system adapted to a number of the gas types is created in real time according to the target time axis, and the real-time proportion corresponding to each gas type is mapped to the target two-dimensional coordinate system; The real-time proportions corresponding to each gas type are sequentially connected in the target two-dimensional coordinate system to generate a component change curve corresponding to each gas type respectively, wherein, at the same collection moment, the sum of the real-time proportions between a number of the gas types is 1.

[0036] Further, the step of performing analysis processing on the component change curve to determine in real time whether a target gas appears at the failure location includes: When the component change curves corresponding to each gas type are obtained in real time, a number of maximum value points and a number of minimum value points that appear in sequence inside the component change curves are detected in sequence; Calculate the target difference between adjacent maximum points and minimum points in real time, and determine in real time whether the target gas appears according to the target difference.

[0037] Further, the step of determining in real time whether the target gas appears according to the target difference includes: When the target difference is obtained in real time, determine in real time whether the target difference is within the range of a preset difference threshold; If it is determined in real time that the target difference is not within the range of the preset difference threshold, then correspondingly determine that the real-time proportion of the gas type corresponding to the current target difference is lower than the normal value, and correspondingly determine that a new gas appears in the collected air sample. Based on a preset database, determine in real time whether the new gas is the target gas.

[0038] Further, the step of determining in real time whether the new gas is the target gas based on a preset database includes: When the new gas is obtained in real time, determine in real time whether the new gas is in the preset gas list; If it is determined in real time that the new gas is in the preset gas list, then set the new gas correspondingly as the target gas.

[0039] In addition, in this embodiment, it should also be noted that after the required air sample is collected in real time through the above steps, it is necessary to immediately perform corresponding component analysis on the current air sample. Specifically, several gases contained in the current air sample can be detected in real time through an existing air analyzer. It should be noted that when the air is in a normal state, only several normal gases such as nitrogen, oxygen, and carbon dioxide will appear inside the air sample. Correspondingly, when natural gas leaks, several abnormal gases such as methane and ethane will be newly added to the current air sample. Based on this, in order to facilitate the rapid generation of a component change curve, that is, the content change curve corresponding to each gas, the present invention will also synchronously create an initial time axis and detect in real time the target collection moment corresponding to the current air sample. Based on this, since one air sample only corresponds to one target collection moment, it should be noted that for each gas with the change of time, multiple target collection moments will be generated, and each target collection moment will correspond to a real-time content of a gas. Based on this, the present invention will construct in real time the mapping relationship between each current target collection moment and each current gas, and map each current target collection moment and its corresponding gas type to the current initial time axis according to this mapping relationship, and a corresponding target time axis can be formed. Based on this, an adapted target two-dimensional coordinate system can be created in real time based on the current target time axis. It should be noted that in order to objectively and accurately draw the corresponding component change curve, at each target collection moment, it is necessary to calculate in real time the real-time proportion of each current gas in its corresponding air sample. At the same time, the real-time proportion of each gas is mapped to the interior of the above target two-dimensional coordinate system, and only by sequentially connecting the several real-time proportions corresponding to each current gas inside the current target two-dimensional coordinate system, a component change curve corresponding to each current gas can be formed inside the current target two-dimensional coordinate system. It should be noted that when the air sample is in a normal state, the sum of the real-time contents of each gas in the current air sample is 1, and when the air sample is in an abnormal state, the sum of the real-time contents of each gas in the current air sample is not 1, so as to form an objective judgment basis for subsequent processing.

[0040] Further, after obtaining the required component change curve in real time through the above steps, it is necessary to further analyze and process the current component change curve. Specifically, the present invention will separately process the component change curve of each gas. Preferably, the present invention will detect in real time a number of maximum points and a number of minimum points that appear in sequence inside the component change curve of each current gas. At the same time, starting from the starting point of the current component change curve, the target difference between adjacent two maximum points and minimum points is calculated in sequence. Correspondingly, it is also necessary to judge in real time whether the current target difference is within the range of the preset difference threshold. Specifically, if so, it can correspondingly indicate that the content change of the current gas is within the normal range. Correspondingly, if not, it can correspondingly indicate that the content change of the current gas has an abnormality, that is, it can correspondingly indicate that other gases have appeared inside the current air sample, that is, new gases have appeared. Based on this, the present invention will judge in real time whether the current new gas is one of the existing gases such as methane and ethane. Specifically, if so, it can accurately determine that natural gas leakage has occurred at the current failure location. Correspondingly, if not, it can indicate that only other impurity gases have appeared in the current air sample and there is no natural gas leakage phenomenon. Thus, even if the pressure sensor fails, it can still objectively and accurately detect whether natural gas leaks, eliminating potential safety hazards and greatly improving the user experience.

[0041] Please refer to Figure 2 , the third embodiment of the present invention provides: A gas monitoring system, wherein the system includes: A detection module, configured to, when it is detected in real time that the pressure sensor fails, detect the corresponding failure location in real time according to the pressure sensor, and a preset collection device is provided in the failure location; An analysis module, configured to collect in real time the air sample generated corresponding to the failure location through the preset collection device, and perform component analysis processing on the air sample based on a preset rule to output a corresponding component change curve in real time; A judgment module, configured to analyze and process the component change curve to judge in real time whether a target gas appears in the failure location; An early warning module, configured to, if it is judged in real time that the target gas appears corresponding to the failure location, correspondingly determine that natural gas leakage has occurred in the failure location, and immediately send a corresponding early warning message, and the component change curve is a dynamically changing curve.

[0042] Further, the analysis module is specifically configured to: When the air sample is obtained in real time, the preset collection device is used to perform gas component analysis on the air sample to detect in real time several gas types contained in the air sample, and an initial time axis adapted to the preset collection device is created in real time. The creation time of the initial time axis is the same as the activation time of the preset collection device; Generate the component change curve in real time according to the initial time axis and several gas types.

[0043] Furthermore, the analysis module is specifically configured to: When the initial time axis is obtained in real time, detect in real time the target collection moment corresponding to the air sample; Construct in real time the mapping relationship between the target collection moment and several gas types, and map the target collection moment and several gas types to the initial time axis according to the mapping relationship to generate a corresponding target time axis in real time; Generate the component change curve according to the target time axis.

[0044] Furthermore, the analysis module is specifically configured to: When the target time axis is obtained in real time, calculate in real time the real-time proportion of each gas type in the air sample at the target collection moment; Create in real time a target two-dimensional coordinate system adapted to several gas types according to the target time axis, and map the real-time proportion corresponding to each gas type to the target two-dimensional coordinate system; Connect in sequence the real-time proportions corresponding to each gas type in the target two-dimensional coordinate system to generate a component change curve corresponding to each gas type respectively, where the sum of the real-time proportions between several gas types at the same collection moment is 1.

[0045] Furthermore, the judgment module is specifically configured to: When the component change curves corresponding to each gas type are obtained in real time, detect in sequence several maximum points and several minimum points that appear inside the component change curves; Calculate in real time the target difference between adjacent maximum points and minimum points, and judge in real time whether the target gas appears according to the target difference.

[0046] Furthermore, the judgment module is specifically configured to: When the target difference is obtained in real time, judge in real time whether the target difference is within the range of the preset difference threshold; If it is determined in real time that the target difference is not within the range of the preset difference threshold, it is correspondingly determined that the real-time proportion of the gas type corresponding to the current target difference is lower than the normal value, and it is correspondingly determined that a new gas has appeared in the collected air sample. Based on the preset database, it is determined in real time whether the new gas is the target gas.

[0047] Furthermore, the judgment module is specifically configured to: When the new gas is obtained in real time, it is determined in real time whether the new gas is within the preset gas list; If it is determined in real time that the new gas is within the preset gas list, the new gas is correspondingly set as the target gas.

[0048] The fourth embodiment of the present invention provides a computer, including a memory, a processor, and a computer program stored on the memory and executable on the processor. Wherein, when the processor executes the computer program, the gas monitoring method described above is implemented.

[0049] The fifth embodiment of the present invention provides a readable storage medium, on which a computer program is stored. Wherein, when the program is executed by a processor, the gas monitoring method described above is implemented.

[0050] In summary, the gas monitoring method and system provided by the above embodiments of the present invention can still objectively and accurately detect whether natural gas leakage occurs at the failure location on the premise that the pressure sensor fails, correspondingly eliminating potential safety hazards.

[0051] It should be noted that the above-mentioned each module can be a functional module or a program module, and can be implemented either by software or by hardware. For the modules implemented by hardware, the above-mentioned each module can be located in the same processor; or the above-mentioned each module can also be located in different processors in any combined form.

[0052] The logic and / or steps represented in the flowchart or described in other ways herein, for example, can be considered as a definite sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch instructions from the instruction execution system, apparatus, or device and execute the instructions), or in combination with these instruction execution systems, apparatus, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

[0053] More specific examples (a non-exhaustive list) of computer-readable media include the following: electrical connections (electronic devices) having one or more wirings, portable computer disk cartridges (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber devices, and portable compact disc read-only memory (CDROM). Additionally, the computer-readable media can even be paper or other suitable media on which the program can be printed, as the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or otherwise processing as appropriate, and then stored in a computer memory.

[0054] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application-specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

[0055] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0056] The above-described embodiments merely represent several implementation manners of the present invention, and their descriptions are relatively specific and detailed, but should not be construed as limiting the scope of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can still be made, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the appended claims.

Claims

1. A gas monitoring method, characterized in that, The method includes: When it is detected in real time that the pressure sensor fails, the corresponding failure location is detected in real time according to the pressure sensor, and a preset collection device is provided in the failure location; The preset collection device is used to collect in real time the air samples generated correspondingly in the failure location, and based on a preset rule, component analysis processing is performed on several gas types in the air samples to output a corresponding component change curve in real time, wherein the air samples are collected once every preset time through the preset collection device; The component change curve is subjected to analysis processing to judge in real time whether a target gas appears in the failure location, wherein the target gas includes methane and ethane; If it is judged in real time that the target gas appears correspondingly in the failure location, it is correspondingly determined that natural gas leakage has occurred in the failure location, and a corresponding warning message is immediately sent out. The component change curve is a dynamically changing curve.

2. The gas monitoring method according to claim 1, wherein: The step of performing component analysis processing on the air samples based on a preset rule to output a corresponding component change curve in real time includes: When the air samples are obtained in real time, the preset collection device is used to perform gas component analysis processing on the air samples to detect in real time several gas types contained correspondingly inside the air samples, and an initial time axis adapted to the preset collection device is created in real time. The creation time of the initial time axis is the same as the activation time of the preset collection device; The component change curve is generated in real time according to the initial time axis and several gas types.

3. The gas monitoring method according to claim 2, wherein: The step of generating the component change curve in real time according to the initial time axis and several gas types includes: When the initial time axis is obtained in real time, the target collection moment corresponding to the air samples is detected in real time; A mapping relationship between the target collection moment and several gas types is constructed in real time, and the target collection moment and several gas types are mapped to the initial time axis according to the mapping relationship to generate a corresponding target time axis in real time; The component change curve is generated according to the target time axis.

4. The gas monitoring method according to claim 3, characterized in that: The step of generating the component change curve according to the target time axis includes: When the target time axis is obtained in real time, at the target collection moment, the real-time proportion of each gas type in the air samples is calculated in real time; A target two-dimensional coordinate system adapted to several gas types is created in real time according to the target time axis, and the real-time proportion corresponding to each gas type is mapped into the target two-dimensional coordinate system; The real-time proportions corresponding to each gas type are connected in sequence in the target two-dimensional coordinate system to generate a component change curve corresponding to each gas type respectively, wherein at the same collection moment, the sum of the real-time proportions between several gas types is 1.

5. The gas monitoring method according to claim 4, characterized in that: The step of performing analysis processing on the component change curve to judge in real time whether a target gas appears in the failure location includes: When the component change curves respectively corresponding to each of the gas types are obtained in real time, a number of maximum points and a number of minimum points that appear in sequence inside the component change curves are detected in sequence; The target difference between adjacent maximum points and minimum points is calculated in real time, and it is determined in real time whether the target gas appears according to the target difference.

6. The gas monitoring method according to claim 5, wherein: The step of determining in real time whether the target gas appears according to the target difference includes: When the target difference is obtained in real time, it is determined in real time whether the target difference is within the range of a preset difference threshold; If it is determined in real time that the target difference is not within the range of the preset difference threshold, it is correspondingly determined that the real-time proportion of the gas type corresponding to the current target difference is lower than the normal value, and it is correspondingly determined that a new gas appears in the collected air sample corresponding thereto; Based on a preset database, it is determined in real time whether the new gas is the target gas.

7. The gas monitoring method according to claim 6, characterized in that: The step of determining in real time whether the new gas is the target gas based on a preset database includes: When the new gas is obtained in real time, it is determined in real time whether the new gas is in a preset gas list; If it is determined in real time that the new gas is in the preset gas list, the new gas is correspondingly set as the target gas.

8. A gas monitoring system, characterized in that, The system includes: A detection module, configured to, when it is detected in real time that a pressure sensor fails, detect a corresponding failure location according to the pressure sensor, and a preset collection device is provided in the failure location; An analysis module, configured to collect an air sample correspondingly generated in the failure location in real time through the preset collection device, and perform component analysis processing on the air sample based on a preset rule to output a corresponding component change curve in real time; A judgment module, configured to perform parsing processing on the component change curve to determine in real time whether a target gas appears in the failure location; An early warning module, configured to, if it is determined in real time that the target gas appears correspondingly in the failure location, determine that natural gas leakage occurs in the failure location and immediately send a corresponding early warning message, and the component change curve is a dynamically changing curve.

9. A computer, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, the gas monitoring method according to any one of claims 1 to 7 is implemented.

10. A readable storage medium, on which a computer program is stored, characterized in that, When the program is executed by the processor, the gas monitoring method according to any one of claims 1 to 7 is implemented.