A town gas leakage detection method, a natural gas detection device and an electronic device

CN117831232BActive Publication Date: 2026-09-29QINGYUAN PETROCHINA KUNLUN GAS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410009804.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-04
Publication Date
2026-09-29
Estimated Expiration
2044-01-04

AI Technical Summary

Technical Problem

[0003]本申请的目的在于提供一种城镇燃气泄漏检测方法、天然气检测装置及电子设备,旨在解决现有的城镇燃气泄漏检测方法灵敏度差的问题

Benefits of technology

[0029]本申请实施例与现有技术相比存在的有益效果是:本申请实施例提供了一种城镇燃气泄漏检测方法,应用于城镇天然气家庭用户中,所述城镇燃气泄漏检测方法包括:对城镇天然气家庭用户的室内的天然气浓度进行检测,生成天然气浓度检测值,并在所述天然气浓度检测值大于天然气浓度预设值时,生成第一报警信号。对城镇天然气家庭用户的室内的天然气声波进行检测,生成天然气声波检测值,并在所述天然气声波检测值大于天然气声波预设值时,生成第二报警信号。对城镇天然气家庭用户的室内的天然气管道内的压力进行检测,生成天然气压力检测值,并在所述天然气压力检测值满足预设压力条件时,生成第三报警信号。根据所述第一报警信号、所述第二报警信号以及所述第三报警信号生成天然气报警信号,本申请通过第一报警信号、所述第二报警信号以及所述第三报警信号生成天然气报警信号,可以使得最终的报警结果更加准确。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117831232B_ABST
    Figure CN117831232B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of gas application, and provides a town gas leakage detection method, a natural gas detection device and an electronic device. The natural gas concentration in the room of a town natural gas household user, the natural gas sound wave in the room and the pressure in the natural gas pipeline in the room are detected to generate a first alarm signal, a second alarm signal and a third alarm signal, and then a natural gas alarm signal is generated according to the first alarm signal, the second alarm signal and the third alarm signal. The natural gas alarm signal is generated through the first alarm signal, the second alarm signal and the third alarm signal, so that the final alarm result is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of gas application technology, and in particular relates to a method for detecting urban gas leaks, a natural gas detection device, and electronic equipment. Background Technology

[0002] With the development of my country's industry, natural gas has become an indispensable energy source in people's lives. The number of natural gas users is increasing, and natural gas leaks frequently occur in homes, posing significant safety hazards. Existing gas system safety designs have three main drawbacks: 1) They use indirect methods to collect gas system operating parameters, determining leaks by measuring the concentration of gas in the air, resulting in poor measurement sensitivity; 2) Most are fixed to specific gas systems, lacking versatility and portability; 3) Existing gas safety detection systems frequently experience false alarms, causing inconvenience and panic among residents. Summary of the Invention

[0003] The purpose of this application is to provide a method for detecting urban gas leaks, a natural gas detection device, and an electronic device, which aims to solve the problem of poor sensitivity in existing urban gas leak detection methods.

[0004] A first aspect of this application provides a method for detecting urban gas leaks, applied to urban natural gas residential users, the method comprising:

[0005] The concentration of natural gas in the indoor environment of urban natural gas households is detected, a natural gas concentration detection value is generated, and a first alarm signal is generated when the natural gas concentration detection value is greater than a preset natural gas concentration value.

[0006] The system detects the natural gas sound waves in the indoor environment of urban natural gas households, generates a natural gas sound wave detection value, and generates a second alarm signal when the natural gas sound wave detection value is greater than a preset value.

[0007] The pressure inside the natural gas pipeline in the home of a residential natural gas user in the city is detected, a natural gas pressure detection value is generated, and a third alarm signal is generated when the natural gas pressure detection value meets a preset pressure condition.

[0008] A natural gas alarm signal is generated based on the first alarm signal, the second alarm signal, and the third alarm signal.

[0009] In one embodiment, the step of detecting the indoor natural gas concentration of urban natural gas households, generating a natural gas concentration detection value, and generating a first alarm signal when the natural gas concentration detection value exceeds a preset natural gas concentration value, further includes:

[0010] The indoor temperature of urban natural gas households is detected, a temperature detection value is generated, and the natural gas concentration detection value is corrected based on the temperature detection value. When the corrected natural gas concentration detection value is greater than the preset natural gas concentration value, the first alarm signal is generated.

[0011] In one embodiment, generating a third alarm signal when the detected natural gas pressure value meets a preset pressure condition includes:

[0012] When the natural gas pressure detection value decreases by a gradient greater than or equal to a first preset gradient and less than or equal to a second preset gradient within a preset time range, the third alarm signal is generated.

[0013] In one embodiment, generating a third alarm signal when the natural gas pressure detection value meets a preset pressure condition further includes:

[0014] The temperature of the natural gas stove openings of urban natural gas households is detected, and stove opening temperature values ​​are generated.

[0015] The third alarm signal is generated when the natural gas pressure detection value decreases by a gradient greater than or equal to the first preset gradient and less than or equal to the second preset gradient within a preset time range, and the stove temperature value is less than the first preset temperature value.

[0016] In one embodiment, the urban gas leak detection method further includes:

[0017] An automated strategy is activated based on the natural gas alarm signal. The automated strategy includes opening the doors and windows of urban natural gas households.

[0018] In one embodiment, the urban gas leak detection method further includes:

[0019] The alarm device is activated based on the natural gas alarm signal. The alarm device includes an alarm light or an alarm buzzer.

[0020] A second aspect of this application provides a natural gas detection device for use in urban residential natural gas users, the natural gas detection device comprising:

[0021] The natural gas concentration detection module is used to detect the natural gas concentration in the indoor environment of urban residential natural gas users, generate a natural gas concentration detection value, and generate a first alarm signal when the natural gas concentration detection value is greater than a preset natural gas concentration value;

[0022] The natural gas acoustic wave detection module is used to detect the natural gas acoustic waves in the indoor environment of urban natural gas households, generate a natural gas acoustic wave detection value, and generate a second alarm signal when the natural gas acoustic wave detection value is greater than a preset value.

[0023] The natural gas pressure detection module is used to detect the pressure in the natural gas pipeline inside the house of a residential natural gas user in the city, generate a natural gas pressure detection value, and generate a third alarm signal when the natural gas pressure detection value meets a preset pressure condition.

[0024] The main control module is used to generate a natural gas alarm signal based on the first alarm signal, the second alarm signal, and the third alarm signal.

[0025] In one embodiment, the natural gas concentration detection module includes: a plurality of natural gas concentration detection sensors, wherein the plurality of natural gas concentration detection sensors are installed indoors in the urban natural gas household user's home, and the plurality of natural gas concentration detection sensors are used to detect the natural gas concentration indoors in the urban natural gas household user's home and generate the natural gas concentration detection value;

[0026] The first control chip is used to generate the first alarm signal when the detected natural gas concentration value is greater than the preset natural gas concentration value.

[0027] In one embodiment, a plurality of the natural gas concentration detection sensors are arranged at equal intervals.

[0028] A third aspect of this application provides an electronic device, including a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and, when executing the computer program, implement the urban gas leak detection method as described in any of the preceding claims.

[0029] The beneficial effects of this application embodiment compared with the prior art are as follows: This application embodiment provides a method for detecting urban gas leaks, applied to urban natural gas household users. The method includes: detecting the concentration of natural gas in the indoor environment of the urban natural gas household user, generating a natural gas concentration detection value, and generating a first alarm signal when the natural gas concentration detection value is greater than a preset natural gas concentration value; detecting the sound waves of natural gas in the indoor environment of the urban natural gas household user, generating a natural gas sound wave detection value, and generating a second alarm signal when the natural gas sound wave detection value is greater than a preset natural gas sound wave value; and detecting the pressure in the natural gas pipeline in the indoor environment of the urban natural gas household user, generating a natural gas pressure detection value, and generating a third alarm signal when the natural gas pressure detection value meets a preset pressure condition. By generating a natural gas alarm signal based on the first alarm signal, the second alarm signal, and the third alarm signal, this application can make the final alarm result more accurate. Attached Figure Description

[0030] Figure 1 A schematic flowchart of a method for detecting urban gas leaks according to an embodiment of this application;

[0031] Figure 2 This is an application scenario diagram of a natural gas detection method provided in one embodiment of this application;

[0032] Figure 3 This is a schematic diagram of the structure of a natural gas detection device provided in one embodiment of this application;

[0033] Figure 4 An error diagram comparing the patented method provided in one embodiment of this application with existing methods;

[0034] Figure 5 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation

[0035] To make the technical problems, technical solutions, and beneficial effects to be solved by this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and are not intended to limit the scope of this application.

[0036] It should be noted that when a component is referred to as being "fixed to" or "set on" another component, it can be directly on or indirectly on that other component. When a component is referred to as being "connected to" another component, it can be directly connected to or indirectly connected to that other component.

[0037] It should be understood that the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.

[0038] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0039] Gas fuels are a general term for gaseous fuels that can burn and release heat for use by residents and industrial enterprises. There are many types of gas fuels, mainly including natural gas, manufactured gas, liquefied petroleum gas, biogas, and coal gas. In recent years, with the promotion and development of urban gas supply, the safety, energy saving, environmental protection, and convenience of urban piped gas have been widely recognized by the public. Therefore, various regions are accelerating the construction and layout of urban gas pipeline networks.

[0040] With the development of my country's industry, natural gas has become an indispensable energy source in people's lives. The number of natural gas users is increasing, and both young and old often forget to turn off the valves, causing significant safety hazards. Existing gas system safety designs have two main drawbacks: 1) They use indirect methods to collect gas system operating parameters, judging gas leaks by measuring the gas concentration in the air, resulting in poor measurement sensitivity; 2) Most are fixed to specific gas systems, lacking versatility and portability; 3) Existing gas safety detection systems frequently experience false alarms, causing inconvenience and panic among residents.

[0041] Therefore, there is currently no household natural gas detection system that can be universally used by home users and can accurately and automatically detect whether natural gas is leaking, activate the protection system and determine whether there is an abnormality, and then actively shut off the natural gas supply.

[0042] To solve the above technical problems, refer to Figure 1 , Figure 2 As shown, this application provides a method for detecting urban gas leaks, which is applied to urban natural gas household users. The method for detecting urban gas leaks includes steps S10-S40.

[0043] Step S10: Detect the natural gas concentration in the indoor environment of urban natural gas households, generate a natural gas concentration detection value, and generate a first alarm signal when the natural gas concentration detection value is greater than the preset natural gas concentration value.

[0044] Step S20: Detect the natural gas sound wave in the indoor environment of urban natural gas households, generate a natural gas sound wave detection value, and generate a second alarm signal when the natural gas sound wave detection value is greater than the preset value.

[0045] Step S30: Detect the pressure in the natural gas pipeline inside the house of the urban natural gas user, generate a natural gas pressure detection value, and generate a third alarm signal when the natural gas pressure detection value meets the preset pressure condition.

[0046] Step S40: Generate a natural gas alarm signal based on the first alarm signal, the second alarm signal, and the third alarm signal.

[0047] In step S10, refer to Figure 1 , Figure 2 As shown, the indoor natural gas concentration of urban residential users is detected, and a natural gas concentration detection value is generated. For example, corresponding natural gas concentration detection locations can be set indoors according to the density of different batches of natural gas. Natural gas concentration can be detected by setting natural gas concentration detection sensors 10. For example, the density of natural gas is generally less than that of air, so the natural gas concentration detection location is generally set at two-thirds of the indoor height. For example, if the total indoor height is three meters, the indoor natural gas concentration detection location is set at 2 meters. Natural gas concentration can be detected by setting multiple natural gas concentration detection sensors 10. Then, the concentration values ​​detected by multiple natural gas concentration detection sensors 10 are weighted and processed to generate a total natural gas concentration detection value. When the natural gas concentration detection value is greater than the preset natural gas concentration value, it indicates that the indoor natural gas concentration has exceeded the dangerous threshold. At this time, a first alarm signal is generated, that is, the first alarm signal indicates that the indoor natural gas concentration detection value has exceeded the dangerous threshold, and there is a possibility of danger. It is understandable that when the detected natural gas concentration is greater than the preset natural gas concentration value, a first alarm signal is generated. Although a first alarm signal will be generated in all cases, the intensity of the first alarm signal will vary depending on the detected natural gas concentration value. For example, the intensity of the first alarm signal generated when the detected natural gas concentration is slightly greater than the preset natural gas concentration value is less than the intensity of the first alarm signal generated when the detected natural gas concentration is much greater than the preset natural gas concentration value. The intensity of the first alarm signal can be determined based on the proportion of the natural gas concentration exceeding the preset natural gas concentration value.

[0048] In one embodiment, because the stove 100 does not burn completely when it is first turned on, the natural gas concentration often exceeds the preset value. At this time, there should be no alarm, but many alarms will still sound. To avoid this situation, it is necessary to handle it. The specific method is as follows:

[0049] The collected natural gas concentration data Den={den num_den_1 ,den num_den_2 ,L,den num_den_k ,L,den num_den_total If the concentration at a certain point meets the following conditions, a first alarm signal will be generated:

[0050]

[0051] In the formula, den num_den_cai For any value in the collected natural gas concentration data, such as den num_den_cai can be den num_den_1 den num_den_cai can be den num_den_2 denθ is the preset value for natural gas concentration; den num_den_(cai+Δt) for den num_den_cai The natural gas concentration value is collected after a delay of Δt; if the above conditions are met, it indicates that the natural gas concentration is continuously increasing, and then the first alarm signal can be generated.

[0052] In step S20, the acoustic wave of natural gas in the indoor environment of a residential natural gas user is detected, a detection value is generated, and a second alarm signal is generated when the detection value exceeds a preset value. For details, refer to... Figure 2 As shown, an acoustic sensor 20 is installed on the natural gas pipeline of a residential user. A leaking acoustic signal is generated at the point of natural gas leakage. This acoustic signal is received by the acoustic sensors 20 installed at both ends of the pipeline, thus detecting the leak. For example, when the detected natural gas acoustic signal value is greater than a preset value, a second alarm signal is generated, confirming a natural gas leak in the pipeline. This achieves the detection of natural gas leaks through acoustic waves. It is understandable that while a second alarm signal is generated when the detected natural gas acoustic signal value is greater than the preset value, the intensity of the generated second alarm signal varies depending on the detected value. For example, the intensity of the second alarm signal generated when the detected natural gas acoustic signal value is slightly greater than the preset value is less than the intensity of the second alarm signal generated when the detected natural gas acoustic signal value is significantly greater than the preset value.

[0053] In one embodiment, the flow of natural gas in the pipeline also generates noise, with a frequency between 20Hz and 200Hz. This noise is relatively weak and difficult for the acoustic sensor 20 to detect. When a leak occurs, the acoustic sensor 20 will detect it, and the noise frequency will change, as will the amplitude of the signal received by the sensor. The amplitude and frequency of the leaking gas noise signal are related, which can be used to filter out external noise interference. Although there is a certain relationship between the amplitude and frequency of the leaking gas noise signal, the regularity is not strong; therefore, predicting the relationship between the amplitude and frequency of the noise signal is crucial.

[0054] For example, Vs = {Vs num_vs_1 Vs num_vs_2 ,L,Vs num_vs_k ,L,Vs num_vs_total} represents the amplitude value of the existing acquired sound signal, Vf = {Vf num_vs_1 ,Vf num_vs_2 ,L,Vf num_vs_k ,L,Vf num_vs_total Let} represent the frequency values ​​of the existing acquired sound signals, and num_vs_k be the index of the k-th acquired sound signal. Using the non-equal-interval grey system theory, the predicted frequency of the noise signal at point num_vs_k can be obtained from Vs and Vf. for:

[0055]

[0056] In the formula, a is the development coefficient; b is the gray action amount;

[0057] The amplitude of a signal collected in a certain instance is Vs num_vs_cai The signal frequency is Vf num_vs_cai The signal amplitude is Vs num_vs_cai The corresponding prediction frequency is If the signal is a leakage signal, then Vf num_vs_cai and The difference is not significant.

[0058] But only based on Vf num_vs_cai and If the difference in noise level is small, the signal is considered a leakage signal. However, if external noise happens to meet this criterion, a false positive will occur. To prevent this, considering that external noise usually appears randomly and does not last for a long time, the following criterion is added:

[0059]

[0060] In the formula, Vfθ low Vfθ is the minimum threshold for the leakage signal. upVf is the maximum threshold for the leakage signal. num_vs_(cai+Δt) For Vf num_vs_cai The signal frequency after a delay of Δt;

[0061] Therefore, the alarm model for the second alarm signal is as follows:

[0062]

[0063] in, Predict the minimum threshold corresponding to the leakage signal; Vsθ is the maximum threshold corresponding to the leakage signal prediction. low Vsθ is the minimum threshold value for the amplitude of the sound signal. up The maximum threshold value for the amplitude of the sound signal is defined by three formulas, all of which must be satisfied simultaneously to generate the second alarm signal.

[0064] In one embodiment, the location of a leak can be determined by the time difference between the signals received by the acoustic wave sensors 20 at both ends of the pipe.

[0065] In step S30, refer to Figure 1 , Figure 2 As shown, the pressure inside the natural gas pipeline of a residential natural gas user in a town is detected, generating a natural gas pressure detection value. When the detected natural gas pressure value meets a preset pressure condition, a third alarm signal is generated. Specifically, when a natural gas leak occurs, the pressure inside the natural gas pipeline will decrease. A pressure sensor 30 can be used to detect the natural gas pressure value inside the pipeline. The leak is determined based on the natural gas pressure value and the preset pressure condition. For example, when a decrease in natural gas pressure is detected, the temperature at the outlet of the natural gas appliance 100 (one of the preset pressure conditions) can be detected to determine if the decrease in natural gas pressure is due to the appliance being turned on. If the outlet temperature is low, it is determined that the natural gas appliance is not turned on, and a leak may be possible. Alternatively, the rate of decrease in natural gas pressure can be used to determine if a leak has occurred (one of the preset pressure conditions). Because indoor natural gas leaks are generally not large-scale and the leak point is relatively small, the rate of pressure decrease is also slow. When the detected natural gas pressure value meets the preset pressure condition, a third alarm signal is generated. It is understandable that when the natural gas pressure detection value meets the preset pressure condition and a third alarm signal is generated, although a third alarm signal will be generated in all cases, the intensity of the generated third alarm signal will also be different when the natural gas pressure detection value is different. For example, when the natural gas pressure detection value is slightly higher than the preset pressure condition, the intensity of the generated third alarm signal is less than the intensity of the third alarm signal generated when the natural gas pressure detection value is much higher than the preset pressure condition.

[0066] Adjustments to the natural gas supply valve can cause a slow pressure drop in the indoor natural gas pipeline, which can easily trigger false alarms. This pressure drop caused by valve adjustment differs from the pressure drop caused by a natural gas pipeline leak. While the pressure drop from a leak continues to decrease, the pressure drop caused by valve adjustment stabilizes quickly. Therefore, a natural gas leak alarm model can be established.

[0067] PR num_pr_cai PR num_pr_(cai+1) PR num_pr_(cai+2) The three measured pressure values ​​can be obtained from the GM(1,1) model. If PR num_pr_(cai+3) and The difference is not significant, indicating that the pressure drop is caused by the adjustment of the on / off valve on the supply side. If PR num_pr_(cai+3) and A significant difference indicates that the pressure drop is caused by leakage. Therefore, the third alarm signal can be generated after satisfying the following expression, specifically:

[0068]

[0069] In the formula, prθ is the minimum threshold of the measured pressure value; This is the fourth pressure value predicted by the GM(1,1) model; PR num_pr_(cai+3) This is the fourth pressure value obtained from actual measurement; λ pr This is a correction factor. A third alarm signal is generated after all four conditions above are met.

[0070] In step S40, a natural gas alarm signal is generated based on the first alarm signal, the second alarm signal, and the third alarm signal. Specifically, the first, second, and third alarm signals can be weighted. For example, different weights can be assigned to the first, second, and third alarm signals based on their respective proportions. Then, a comprehensive calculation is performed based on the first, second, and third alarm signals to determine if the alarm range value has been exceeded. If the alarm range value has been exceeded, a natural gas alarm signal is generated. The natural gas alarm signal indicates that a natural gas leak has been confirmed indoors.

[0071] In one embodiment, the method for weighting the first alarm signal, the second alarm signal, and the third alarm signal is as follows:

[0072] First, construct mathematical models with different weights for the first alarm signal, the second alarm signal, and the third alarm signal:

[0073] F = αf1 + βf2 + λf3; where 1 = α + β + λ, f1 is the strength of the first alarm signal, f2 is the strength of the second alarm signal, f3 is the strength of the third alarm signal, α is the weight value of the first alarm signal, β is the weight value of the second alarm signal, λ is the weight value of the third alarm signal, and F is the alarm strength value calculated based on the first, second, and third alarm signals. A natural gas alarm signal is generated when F exceeds the alarm range value.

[0074] Specifically, the method for determining α, β, and λ is as follows:

[0075] First, an array is constructed using several sets of data (e.g., nine sets) from the first alarm signal, the second alarm signal, and the third alarm:

[0076]

[0077] Where, x 11 x is the first data of the first alarm signal. 21 The second data point of the first alarm signal; x 12 The first data of the second alarm signal, x 13 This is the first data point of the third alarm signal, and so on.

[0078] Then, each data point is standardized:

[0079]

[0080] Where, x ij ′ represents the standardized data, x ij Let i be the data in the array above, i = 1, 2, 3, ..., 9, j = 1, 2, 3.

[0081] Furthermore, the mean value of each alarm signal is calculated:

[0082] Among them, A j The average value for each alarm signal.

[0083] Furthermore, calculate the variance of each mean:

[0084] Among them, S j The variance of each mean.

[0085] Furthermore, the coefficient of variation for different alarm signals is calculated:

[0086] Among them, V j denoted as the coefficient of variation for different alarm signals.

[0087] Finally, calculate the proportion of different weights:

[0088] W j By assigning different weights to the first, second, and third alarm signals, for example, W1 = α; W2 = β; W3 = λ, the values ​​of α, β, and λ can be determined. Different weights are then assigned to these three alarm signals. Finally, a comprehensive calculation is performed based on these signals to determine if the alarm range has been exceeded. If the alarm range has been exceeded, a natural gas alarm signal is generated, making the final natural gas alarm signal more accurate.

[0089] In one embodiment, false alarms often occur when urban residential natural gas users first start using natural gas, immediately stop using natural gas, or when natural gas flow fluctuates. Therefore, it is necessary to improve the mathematical model for natural gas alarms.

[0090]

[0091] In the formula, F time This indicates the alarm intensity at time 'time', where 'time' represents the timing point, and f1 time Jumpθ represents the strength of the first alarm signal at time t. L Jumpθ is the left jump threshold for alarms. R The alarm right jump threshold is set, and a natural gas alarm signal is generated after the above conditions are met, which can make the final natural gas alarm signal more accurate.

[0092] In one embodiment, the method includes detecting the indoor natural gas concentration of a residential natural gas user, generating a natural gas concentration detection value, and generating a first alarm signal when the natural gas concentration detection value exceeds a preset natural gas concentration value. The method further includes detecting the indoor temperature of the residential natural gas user, generating a temperature detection value, correcting the natural gas concentration detection value based on the temperature detection value, and generating a first alarm signal when the corrected natural gas concentration detection value exceeds the preset natural gas concentration value.

[0093] In this embodiment, the diffusion rate of natural gas varies across different temperature ranges. Therefore, for the same amount of natural gas leakage, the detected natural gas concentration will also differ at different temperatures. This application generates a temperature detection value by detecting the indoor temperature of urban natural gas households and then corrects the natural gas concentration detection value based on this value. This allows for correction based on different temperature readings. For example, in summer when temperatures are higher and natural gas diffuses faster, the detected natural gas concentration can be appropriately reduced. In winter when temperatures are lower and natural gas diffuses slower, the detected natural gas concentration can be appropriately increased. A preset natural gas concentration value can be used as a standard. When the corrected natural gas concentration detection value exceeds the preset value, a first alarm signal is generated. This first alarm signal indicates that the indoor natural gas concentration has exceeded a dangerous threshold, suggesting a potential hazard.

[0094] In one embodiment, the specific method for correcting the natural gas concentration detection value based on the temperature detection value is to construct a mathematical model T′ of the influence coefficient of the temperature detection value on the natural gas concentration detection value:

[0095]

[0096] Where T is the temperature detection value, b1 is the sine coefficient, b2 is the temperature linkage coefficient, b3 is the temperature coefficient, and c1 is the correction coefficient. The sine coefficient b1 is 22.1, the temperature linkage coefficient b2 is 0.21, the temperature coefficient b3 is 0.32, and c1 is 1.12. Then, the influence coefficient of the temperature value on the natural gas concentration detection value is added to the detected natural gas concentration value to obtain the corrected natural gas concentration detection value. When the corrected natural gas concentration detection value is greater than the preset natural gas concentration value, a first alarm signal is generated.

[0097] In one embodiment, generating a third alarm signal when the natural gas pressure detection value meets a preset pressure condition includes: generating a third alarm signal when the natural gas pressure detection value decreases by a gradient greater than or equal to a first preset gradient and less than or equal to a second preset gradient within a preset time range.

[0098] In this embodiment, the natural gas pressure in the user's household pipeline can be detected in real time. When a change in the natural gas pressure is detected, and the decrease in the natural gas pressure between the first and second time periods is greater than or equal to a first preset gradient but less than or equal to a second preset gradient, a third alarm signal is generated. That is, when the decrease in the natural gas pressure between the first and second time periods is within the range of the first and second preset gradients, a third alarm signal is generated. The gradient being greater than or equal to the first preset gradient can prevent the influence of other users' use of the natural gas pipeline on its pressure, and the gradient being less than or equal to the second preset gradient can prevent the influence of pressure drop caused by normal user use, because indoor natural gas generally does not leak on a large scale, the leak point is relatively small, and the rate of pressure decrease is also relatively slow. When the natural gas pressure meets the preset pressure conditions, a third alarm signal is generated. The generation of the third alarm signal requires satisfying the following equation:

[0099]

[0100] In the formula, GradPθ F The first preset gradient value; GradP is the gradient value of the natural gas pressure detection value; P time P represents the detected natural gas pressure value during the first time period. time-Δt GradPθ is the natural gas pressure detected in the second time period after a time interval Δt. S This is the second preset gradient value.

[0101] In one embodiment, the urban gas leak detection method further includes: activating an automation strategy based on a natural gas alarm signal, the automation strategy including: opening doors and windows of urban natural gas households.

[0102] In this embodiment, when a natural gas alarm signal is generated, it indicates that a natural gas leak has been confirmed to have occurred indoors. At this time, it is necessary to activate the corresponding automated strategy, such as opening the doors and windows of urban natural gas households. This allows the leaked natural gas indoors to be released outdoors, preventing the indoor natural gas concentration from becoming too high and causing further danger.

[0103] In one embodiment, the urban gas leak detection method further includes: activating an alarm device based on a natural gas alarm signal, the alarm device including an alarm light or an alarm buzzer.

[0104] In this embodiment, when a natural gas alarm signal is generated, it indicates that a natural gas leak has been confirmed in the user's room. At this time, it is necessary to activate the corresponding automation strategy, such as activating the alarm device, turning on the alarm light or alarm buzzer. This can remind the user that a natural gas leak has occurred in the room, attract the user's attention, and enable the user to take appropriate measures to avoid further danger caused by excessively high concentrations of natural gas in the room.

[0105] This application also provides a natural gas detection device, see reference. Figure 3 As shown, the natural gas detection device, applied to urban residential natural gas users, includes: a natural gas concentration detection module, a natural gas acoustic wave detection module, a natural gas pressure detection module, and a main control module.

[0106] Specifically, the natural gas concentration detection module detects the concentration of natural gas in the indoor environment of urban natural gas households, generates a natural gas concentration detection value, and generates a first alarm signal when the detected value exceeds a preset value. The natural gas acoustic wave detection module detects the acoustic waves emitted by natural gas in the indoor environment of urban natural gas households, generates a natural gas acoustic wave detection value, and generates a second alarm signal when the detected value exceeds a preset value. The natural gas pressure detection module detects the pressure within the natural gas pipeline in the indoor environment of urban natural gas households, generates a natural gas pressure detection value, and generates a third alarm signal when the detected pressure meets a preset pressure condition. The main control module generates a natural gas alarm signal based on the first, second, and third alarm signals.

[0107] In this embodiment, the natural gas concentration detection module is located indoors in the user's home. For example, the natural gas concentration detection module can be installed at two-thirds of the room's height. The natural gas acoustic wave detection module and the natural gas pressure detection module are located inside the natural gas pipeline within the user's home. The main control module communicates with the natural gas concentration detection module, the natural gas acoustic wave detection module, and the natural gas pressure detection module wirelessly. The specific functions performed by the natural gas concentration detection module, the natural gas acoustic wave detection module, the natural gas pressure detection module, and the main control module are described in the above embodiment and will not be repeated here.

[0108] In one embodiment, the natural gas concentration detection module includes: a plurality of natural gas concentration detection sensors 10 and a first control chip. The plurality of natural gas concentration detection sensors 10 are installed indoors in urban natural gas households and are used to detect the natural gas concentration indoors in urban natural gas households and generate a natural gas concentration detection value. The first control chip is used to generate a first alarm signal when the natural gas concentration detection value is greater than a preset natural gas concentration value.

[0109] In this embodiment, the density of natural gas is generally less than that of air. Therefore, the positions of multiple natural gas concentration detection sensors 10 are generally set at two-thirds of the indoor height. For example, if the total indoor height is three meters, the natural gas concentration detection position is set at 2 meters. The natural gas concentration can be achieved by setting multiple natural gas concentration detection sensors 10. Then, the concentration values ​​detected by each of the multiple natural gas concentration detection sensors 10 are weighted or averaged to generate a total natural gas concentration detection value. When the natural gas concentration detection value is greater than the preset natural gas concentration value, it indicates that the indoor natural gas concentration has exceeded the dangerous threshold. At this time, a first alarm signal is generated, that is, the first alarm signal indicates that the indoor natural gas concentration detection value has exceeded the dangerous threshold and there is a possibility of danger.

[0110] In one embodiment, multiple natural gas concentration detection sensors 10 are arranged at equal intervals. Specifically, the multiple natural gas concentration detection sensors 10 arranged at intervals can detect the natural gas concentration at different locations. Then, based on the interval arrangement of the multiple natural gas concentration detection sensors 10, a weighted average can be performed, so that each natural gas concentration detection sensor 10 has a different weight. This makes the final calculated natural gas concentration detection value closer to the true value. Furthermore, the equal interval arrangement of multiple natural gas concentration detection sensors 10 can more evenly detect the natural gas concentration in the room, further making the final calculated natural gas concentration detection value closer to the true value.

[0111] In one embodiment, reference Figure 4 As shown, existing methods for detecting urban gas leaks have significant errors, generally around 10%, with some reaching as high as 16%, which greatly impacts the user experience. This patented method, after testing in 20 user homes, showed an error of 0%, significantly improving the accuracy of urban gas leak detection and greatly enhancing the user experience.

[0112] This application also provides an electronic device, as shown in the embodiments of the present application. Figure 5 As shown, it includes a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and, when executing the computer program, implement the urban gas leak detection method as described above.

[0113] The processor referred to can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0114] Memory can be an internal storage unit of the terminal, such as the terminal's hard drive or RAM. Memory can also be an external storage device of the terminal, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, memory can include both internal and external storage units. Memory is used to store computer programs and other programs and data required by the terminal device. Memory can also be used to temporarily store data that has been output or will be output.

[0115] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0116] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0117] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0118] In the embodiments provided in this application, it should be understood that the disclosed apparatus / terminal devices and methods can be implemented in other ways. For example, the apparatus / terminal device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0119] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0120] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0121] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for detecting urban gas leaks, characterized in that, The urban gas leak detection method, applied to urban residential natural gas users, includes: The concentration of natural gas in the indoor environment of urban natural gas households is detected, a natural gas concentration detection value is generated, and a first alarm signal is generated when the natural gas concentration detection value is greater than a preset natural gas concentration value. The system detects the natural gas sound waves inside the homes of urban natural gas households, generates a natural gas sound wave detection value, and generates a second alarm signal when the natural gas sound wave detection value is greater than a preset value. The pressure inside the natural gas pipeline of urban residential natural gas users is detected, a natural gas pressure detection value is generated, and a third alarm signal is generated when the natural gas pressure detection value meets a preset pressure condition; wherein, three pressure values ​​inside the pipeline are measured: , , From the GM(1,1) model, we can obtain The third alarm signal can be generated after the following expression is satisfied: In the formula, The minimum threshold value for the measured pressure; This is the fourth pressure value predicted by the GM(1,1) model; This is the fourth pressure value obtained from actual measurement; The correction coefficient is used; when the above expressions are true simultaneously, the natural gas pressure detection value is determined to meet the preset pressure condition, and the third alarm signal is generated. A natural gas alarm signal is generated based on the first alarm signal, the second alarm signal, and the third alarm signal.

2. The urban gas leak detection method as described in claim 1, characterized in that, The process of detecting the indoor natural gas concentration of urban residential users, generating a natural gas concentration detection value, and generating a first alarm signal when the natural gas concentration detection value exceeds a preset natural gas concentration value includes: The indoor temperature of urban natural gas households is detected, a temperature detection value is generated, and the natural gas concentration detection value is corrected based on the temperature detection value. When the corrected natural gas concentration detection value is greater than the preset natural gas concentration value, the first alarm signal is generated.

3. The urban gas leak detection method as described in claim 1, characterized in that, When the detected natural gas pressure value meets a preset pressure condition, a third alarm signal is generated, including: When the natural gas pressure detection value decreases by a gradient greater than or equal to a first preset gradient and less than or equal to a second preset gradient within a preset time range, the third alarm signal is generated.

4. The urban gas leak detection method as described in claim 3, characterized in that, The step of generating a third alarm signal when the detected natural gas pressure value meets a preset pressure condition also includes: The temperature of the natural gas stove openings of urban natural gas households is detected, and stove opening temperature values ​​are generated. The third alarm signal is generated when the natural gas pressure detection value decreases by a gradient greater than or equal to the first preset gradient and less than or equal to the second preset gradient within a preset time range, and the stove temperature value is less than the first preset temperature value.

5. The urban gas leak detection method as described in claim 1, characterized in that, The method for detecting gas leaks in urban areas also includes: An automated strategy is activated based on the natural gas alarm signal. The automated strategy includes opening the doors and windows of urban natural gas households.

6. The urban gas leak detection method as described in claim 1, characterized in that, The method for detecting gas leaks in urban areas also includes: The alarm device is activated based on the natural gas alarm signal. The alarm device includes an alarm light or an alarm buzzer.

7. A natural gas detection device, characterized in that, The natural gas detection device, used in urban residential natural gas users, includes: The natural gas concentration detection module is used to detect the natural gas concentration in the indoor environment of urban natural gas households, generate a natural gas concentration detection value, and generate a first alarm signal when the natural gas concentration detection value is greater than a preset natural gas concentration value. The natural gas acoustic wave detection module is used to detect the natural gas acoustic waves in the indoor environment of urban natural gas households, generate a natural gas acoustic wave detection value, and generate a second alarm signal when the natural gas acoustic wave detection value is greater than a preset value. The natural gas pressure detection module is used to detect the pressure in the natural gas pipeline inside the house of a residential natural gas user in the city, generate a natural gas pressure detection value, and generate a third alarm signal when the natural gas pressure detection value meets a preset pressure condition. The main control module is used to generate a natural gas alarm signal based on the first alarm signal, the second alarm signal, and the third alarm signal.

8. The natural gas detection device as described in claim 7, characterized in that, The natural gas concentration detection module includes: multiple natural gas concentration detection sensors, which are installed indoors in the urban natural gas household user's home, and are used to detect the natural gas concentration indoors in the urban natural gas household user's home and generate the natural gas concentration detection value; The first control chip is used to generate the first alarm signal when the detected natural gas concentration value is greater than the preset natural gas concentration value.

9. The natural gas detection device as described in claim 8, characterized in that, Multiple natural gas concentration detection sensors are arranged at equal intervals.

10. An electronic device, characterized in that, It includes a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and, when executing the computer program, implement the urban gas leak detection method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Online detection pipeline safety early warning system and method thereof

    CN116453307A