Gas micro-leakage detection method, device, equipment, medium and program product

By determining the sampling information and micro-leakage standard deviation at multiple sampling points of the gas meter, it is judged whether the gas meter has micro-leakage, which solves the problem of inability to effectively detect gas micro-leakage in the existing technology and improves the safety of gas use.

CN120609520AActive Publication Date: 2025-09-09GOLDCARD HIGH TECH +1

Patent Information

Application Number
CN202511121627.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-12
Publication Date
2025-09-09
Estimated Expiration
2045-08-12

AI Technical Summary

Technical Problem

Existing technologies are unable to effectively detect micro-leakages when the gas meter front valve and gas-using equipment are closed, resulting in lower safety in gas use.

Method used

By determining the sampling information of multiple sampling points of the gas meter within a preset time period, and based on the cavity volume of the gas meter, determining the micro-leakage standard deviation of the gas meter from the micro-leakage standard deviations corresponding to multiple preset volumes, it is judged whether the sampling points meet the micro-leakage conditions. If multiple sampling points all meet the conditions, it is determined that the gas meter has a micro-leak.

Benefits of technology

It realizes accurate detection of gas micro-leakage and improves the safety of gas use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120609520A_ABST
    Figure CN120609520A_ABST
Patent Text Reader

Abstract

The invention provides a gas micro-leakage detection method, device and equipment, a medium and a program product, and the method comprises the steps: determining the sampling information of each sampling point in a plurality of sampling points of a gas meter in a preset time period, and enabling the sampling information of the sampling points to comprise the measured pressure values of the sampling points and the predicted pressure values of the sampling points under a leakage-free working condition; according to the cavity volume of the gas meter, the micro-leakage standard deviation of the gas meter is determined from the micro-leakage standard deviations corresponding to the multiple preset volumes, and the sampling information of the sampling points comprises the measured pressure values of the sampling points and the predicted pressure values of the sampling points under the non-leakage working condition; and for any sampling point in the multiple sampling points, whether the sampling point meets the micro-leakage condition or not is judged according to the micro-leakage standard deviation of the gas meter and the sampling information of the sampling point, and if the multiple sampling points meet the micro-leakage condition, it is determined that gas micro-leakage exists in the gas meter, so that gas micro-leakage detection is achieved, and gas use safety is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of gas leak detection, and in particular to a method, device, equipment, medium and program product for detecting micro-gas leaks. Background Art

[0002] Gas leaks not only waste energy but can also cause major safety incidents such as explosions and fires. Monitoring gas leaks can help identify potential hazards and prevent accidents.

[0003] Existing technologies use gas meter flow rate changes to detect gas leaks. Specifically, the gas meter monitors the gas flow rate in the pipeline in real time and compares the real-time gas flow rate changes with the normal flow rate changes in the absence of leaks. If a deviation exceeds a set range, a gas leak is determined.

[0004] However, when the gas meter's front valve and gas-using equipment are closed, if a micro-gas leak occurs in the enclosed space from the front valve to the gas-using equipment, the gas meter will not detect the tiny airflow change, that is, it cannot detect the micro-gas leak, resulting in lower gas use safety. Summary of the Invention

[0005] The present application provides a gas micro-leak detection method, device, equipment, medium and program product for detecting gas micro-leakage and improving the safety of gas use.

[0006] In a first aspect, the present application provides a method for detecting micro-leakage of gas, comprising:

[0007] Determine sampling information of each of a plurality of sampling points of the gas meter within a preset time period, and determine a micro-leakage standard deviation of the gas meter from micro-leakage standard deviations corresponding to a plurality of preset volumes according to a cavity volume of the gas meter;

[0008] For any sampling point among the multiple sampling points, judging whether the sampling point meets a micro-leakage condition according to the micro-leakage standard deviation of the gas meter and the sampling information of the sampling point; if all the multiple sampling points meet the micro-leakage condition, determining that there is a gas micro-leakage in the gas meter;

[0009] Among them, the cavity volume is determined based on the cavity shape of the gas meter, the upper limit of the measurement range and the size information of the gas meter. The micro-leakage standard deviation of the gas meter is used to measure the fluctuation degree of the residual between the predicted pressure value and the measured pressure value of the gas meter under micro-leakage conditions. The sampling information of the sampling point includes the measured pressure value of the sampling point and the predicted pressure value of the sampling point under no-leakage conditions.

[0010] In a second aspect, the present application provides a gas micro-leakage detection device, comprising:

[0011] a micro-leakage standard deviation determination module, configured to determine sampling information of each of a plurality of sampling points of a gas meter within a preset time period, and determine the micro-leakage standard deviation of the gas meter from the micro-leakage standard deviations corresponding to the plurality of preset volumes according to the cavity volume of the gas meter;

[0012] a gas micro-leakage determination module, configured to determine, for any one of the multiple sampling points, whether the sampling point meets a micro-leakage condition based on the micro-leakage standard deviation and the sampling information of the sampling point; and if all of the multiple sampling points meet the micro-leakage condition, determine that a gas micro-leakage exists in the gas meter;

[0013] Among them, the cavity volume is determined based on the cavity shape of the gas meter, the upper limit of the measurement range and the size information of the gas meter. The micro-leakage standard deviation of the gas meter is used to measure the fluctuation degree of the residual between the predicted pressure value and the measured pressure value of the gas meter under micro-leakage conditions. The sampling information of the sampling point includes the measured pressure value of the sampling point and the predicted pressure value of the sampling point under no-leakage conditions.

[0014] In a third aspect, the present application provides an electronic device, comprising: a memory and a processor;

[0015] The memory stores computer-executable instructions;

[0016] The processor executes the computer-executable instructions stored in the memory to implement the method according to the first aspect.

[0017] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.

[0018] In a fifth aspect, the present application provides a computer program product, comprising a computer program, which implements the method described in the first aspect when executed by a processor.

[0019] The present application provides a method, apparatus, device, medium and program product for detecting micro-leakage of gas. The method determines the sampling information of each sampling point among multiple sampling points of a gas meter within a preset time period, wherein the sampling information of the sampling point includes the measured pressure value of the sampling point and the predicted pressure value of the sampling point under a no-leakage condition; according to the cavity volume of the gas meter, the micro-leakage standard deviation of the gas meter is determined from the micro-leakage standard deviations corresponding to multiple preset volumes, wherein the cavity volume is determined according to the cavity shape of the gas meter, the upper limit of the measurement range and the size information of the gas meter, the sampling information of the sampling point includes the measured pressure value of the sampling point and the predicted pressure value of the sampling point under a no-leakage condition, the gas meter is detected by the micro-leakage standard deviation of the gas meter, and the cavity volume is determined according to the cavity shape of the gas meter, the upper limit of the measurement range and the size information of the gas meter, and the sampling information of the sampling point includes the measured pressure value of the sampling point and the predicted pressure value of the sampling point under a no-leakage condition. The micro-leakage standard deviation of the gas meter is used to measure the degree of fluctuation of the residual between the predicted pressure value and the measured pressure value of the gas meter under micro-leakage conditions; for any sampling point among multiple sampling points, whether the sampling point meets the micro-leakage condition is judged according to the micro-leakage standard deviation of the gas meter and the sampling information of the sampling point, and whether the measured pressure value of the sampling point deviates from the allowable range of the predicted pressure value under the no-leakage condition can be accurately judged. If multiple sampling points all meet the micro-leakage condition, it means that each sampling point within the preset time period deviates from the allowable range of the corresponding predicted pressure value under the no-leakage condition, and it is determined that there is a gas micro-leak in the gas meter, thereby realizing the detection of gas micro-leakage and improving the safety of gas use. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0021] Figure 1 A trend chart showing changes in pressure and temperature over time in the measurement chamber under different conditions provided in the embodiments of the present application;

[0022] Figure 2 A flow chart of a method for detecting micro-leakage of gas provided in an embodiment of the present application;

[0023] Figure 3 A schematic flow chart of a process for determining a cavity volume proposed in an embodiment of the present application;

[0024] Figure 4 A schematic flow chart of a process for constructing a linear model corresponding to a preset shape provided in an embodiment of the present application;

[0025] Figure 5 A schematic flow chart of a process for determining a micro-leakage standard deviation corresponding to a preset volume provided in an embodiment of the present application;

[0026] Figure 6 A flow chart of a method for determining whether a gas meter has a micro-leakage of gas provided in an embodiment of the present application;

[0027] Figure 7 A flowchart of a method for determining a preset duration provided in an embodiment of the present application;

[0028] Figure 8 A schematic structural diagram of a gas micro-leakage detection device provided in an embodiment of the present application;

[0029] Figure 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0031] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned. They should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0032] First, the terms involved in the embodiments of this application are explained:

[0033] Gas meter pre-valve: A valve installed before the gas meter's inlet port, used to control the flow of gas. When installing or replacing a gas meter, or in other emergencies, the pre-valve is shut off to cut off the gas supply and ensure safety.

[0034] Diaphragm gas meters utilize the pressure differential during gas flow within the meter body as a driving force, controlling gas flow distribution through the relative positions of the valve seat and valve cover. The diaphragm box consists of two identical gas measurement chambers on the left and right, each divided into two smaller chambers by a diaphragm. Gas entering the smaller chamber pushes the diaphragm to oscillate, driving a linkage mechanism that rotates the valve cover, controlling the sequential filling and exhaust of each chamber. Simultaneously, the linkage drives a mechanical one-way counter to count and display the exhaust volume.

[0035] Ultrasonic gas meter: It uses the time difference method to reflect the flow rate of the fluid by measuring the difference in the speed of the ultrasonic signal when it propagates downstream and upstream in the fluid, thereby calculating the gas flow rate.

[0036] A micro-leak is a slow, minute leakage of gas from a gas system. Due to its small flow rate and slow velocity, it is often difficult to detect with conventional flow meters or pressure sensors, and it does not immediately significantly affect the pressure or flow of the gas system. Despite the slow rate and small volume, if such a micro-leak persists and accumulates to a sufficient concentration over time, it can pose a serious safety hazard, such as fire or explosion.

[0037] If a micro-leak occurs in the enclosed space between the gas meter's front valve and the gas-consuming device when the front valve is closed, the gas meter will be unable to detect the micro-leak because the gas system's airflow is interrupted in this closed state. Therefore, the gas meter will not be able to detect the change in airflow.

[0038] In order to solve the above technical problems, an embodiment of the present application proposes a method for detecting micro-leakage of gas, which determines the sampling information of each sampling point among multiple sampling points of a gas meter within a preset time period, wherein the sampling information of the sampling point includes the measured pressure value of the sampling point and the predicted pressure value of the sampling point under a no-leakage condition; according to the cavity volume of the gas meter, the micro-leakage standard deviation of the gas meter is determined from the micro-leakage standard deviations corresponding to multiple preset volumes, wherein the cavity volume is determined according to the cavity shape of the gas meter, the upper limit of the measurement range and the size information of the gas meter, the sampling information of the sampling point includes the measured pressure value of the sampling point and the predicted pressure value of the sampling point under a no-leakage condition, the gas meter The micro-leakage standard deviation of the gas meter is used to measure the degree of fluctuation of the residual between the predicted pressure value and the measured pressure value of the gas meter under micro-leakage conditions; for any sampling point among multiple sampling points, whether the sampling point meets the micro-leakage condition is judged according to the micro-leakage standard deviation of the gas meter and the sampling information of the sampling point, and whether the measured pressure value of the sampling point deviates from the allowable range of the predicted pressure value under the no-leakage condition can be accurately judged. If multiple sampling points all meet the micro-leakage condition, it means that each sampling point within the preset time period deviates from the allowable range of the corresponding predicted pressure value under the no-leakage condition, and it is determined that there is a gas micro-leak in the gas meter, thereby realizing the detection of gas micro-leakage and improving the safety of gas use.

[0039] In this embodiment, a pressure sensor and a temperature sensor are provided in the gas meter, wherein the pressure sensor is used to measure the gas pressure in the cavity of the gas meter, and the temperature sensor is used to measure the gas temperature in the cavity of the gas meter.

[0040] In this embodiment, when the gas meter front valve and the gas-consuming equipment are closed, under no-leakage conditions, the combined space of the gas meter cavity, the hose from the gas meter front valve to the gas meter, and the hose from the gas meter to the gas-consuming equipment can be considered to be in a closed state, and thus the gas meter cavity can be considered to be in a closed state.

[0041] The pressure of the gas in the cavity of the gas meter satisfies the ideal gas equation. The ideal gas equation is shown in the following formula (1):

[0042] (1)

[0043] Wherein, P represents the pressure of the gas in the cavity, V represents the volume of the cavity, n represents the amount of substance in the gas in the cavity, R represents the gas constant, and T represents the temperature of the gas in the cavity.

[0044] Since the cavity of the gas meter is in a sealed state, the amount of gas in the cavity is constant. When the temperature of the gas in the cavity changes, the pressure of the gas in the cavity will change with the temperature.

[0045] Specifically, if within a certain time period, the gas temperature corresponding to the start time of the time period is T0 and the gas pressure is P0, and the gas temperature corresponding to the end time of the time period is T1, then according to formula (1), the calculation formula for the gas pressure corresponding to the end time of the time period can be obtained, which is shown in the following formula (2):

[0046] (2)

[0047] Wherein, P1 represents the gas pressure corresponding to the end time of the period.

[0048] Under micro-leakage conditions, the gas in the cavity leaks through the leak hole (i.e., a tiny pore. When the gas leaks through the leak hole, it cannot be detected by conventional flow meters or pressure sensors). Assuming that the area of ​​the leak hole is A, the mass leakage rate of the gas in the cavity conforms to the following formula (3):

[0049] (3)

[0050] Where m represents the mass of the gas in the cavity, t represents the time, represents the flow coefficient, represents the density of the gas in the cavity, Indicates standard atmospheric pressure. Specifically, , where M represents the molar mass of the gas in the cavity.

[0051] Under the condition of slight leakage, Therefore, according to formula (1) and formula (3), the rate of change model of the gas pressure in the cavity under micro-leakage conditions can be obtained. The rate of change model of the gas pressure in the cavity is shown in the following formula (4):

[0052] (4)

[0053] It can be seen from formula (4) that under the condition of micro-leakage, the relationship between the gas pressure in the cavity and the cavity volume is inversely proportional.

[0054] That is to say, under micro-leakage conditions, the larger the cavity volume of the gas meter, the smaller the rate of change of the gas pressure in the cavity of the gas meter, that is, the slower the gas leakage in the cavity; the smaller the cavity volume of the gas meter, the larger the rate of change of the gas pressure in the cavity of the gas meter, that is, the faster the gas leakage in the cavity.

[0055] In this embodiment, for a gas meter, the cavity volume is fixed. When the temperature change within the cavity is small, the result of formula (4) can be considered a constant. In this embodiment, the negative of this constant is defined as the microleakage constant, which can be used to measure the magnitude of the microleakage rate. Therefore, gas meters with different cavity volumes have different corresponding microleakage constants, and the microleakage constant is inversely proportional to the cavity volume.

[0056] According to formulas (1) to (4), the pressure prediction model under the no-leakage condition can be determined as follows:

[0057] (5)

[0058] in, represents the predicted pressure value at time t under no leakage conditions, Represents the measured pressure value at time t-1 (i.e., the actual pressure value measured by the pressure sensor in the gas meter), Represents the measured temperature value at time t (i.e. the actual temperature value measured by the temperature sensor in the gas meter), Indicates the measured temperature value at time t-1.

[0059] The pressure prediction model under micro-leakage conditions is as follows (6):

[0060] (6)

[0061] in, represents the predicted pressure value at time t under micro-leakage conditions, is the micro leakage constant.

[0062] Figure 1 This is a trend chart showing the changes in pressure and temperature over time in the measurement chamber under different conditions provided in the embodiments of the present application. Figure 1 In the chart, the horizontal axis represents time (unit: minute, abbreviated as m), and the vertical axis represents temperature or pressure. When representing pressure, the unit is Pascal, and when representing temperature, the unit is Celsius. Figure 1As shown, the curve corresponding to "Pressure (normal)" represents the trend of pressure change in the cavity over time under no-leakage conditions, the curve corresponding to "Temperature (normal)" represents the trend of temperature change in the cavity over time under no-leakage conditions, the curve corresponding to "Pressure (micro-leakage)" represents the trend of pressure change in the cavity over time under micro-leakage conditions, and the curve corresponding to "Temperature (micro-leakage)" represents the trend of temperature change in the cavity over time under micro-leakage conditions.

[0063] It should be noted that, since the gas leakage has no effect on the temperature, Figure 1 In the figure, the curve corresponding to "Temperature (normal)" (marked in yellow) coincides with the curve corresponding to "Temperature (micro leakage)".

[0064] It can be seen that the temperature change trends under the no-leakage condition and the micro-leakage condition are consistent, while the pressure change trend under the micro-leakage condition is inconsistent with the pressure change trend under the no-leakage condition. Moreover, as time goes by and micro-leakage occurs, at the same moment, the pressure under the micro-leakage condition is lower than the pressure under the no-leakage condition.

[0065] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0066] Figure 2 This is a flow chart of a method for detecting micro-gas leaks provided in an embodiment of the present application. The method may be performed by an electronic device that implements the method, implemented through software and hardware, and specifically may be a server deployed locally or in the cloud. The method comprises the following steps:

[0067] S201. Determine sampling information of each of multiple sampling points of the gas meter within a preset time period, and determine the micro-leakage standard deviation of the gas meter from the micro-leakage standard deviations corresponding to the multiple preset volumes based on the cavity volume of the gas meter; wherein the cavity volume is determined based on the cavity shape of the gas meter, the upper limit of the measurement range, and the size information of the gas meter, the sampling information of the sampling point includes the measured pressure value of the sampling point and the predicted pressure value of the sampling point under a no-leakage condition, and the micro-leakage standard deviation of the gas meter is used to measure the degree of fluctuation of the residual between the predicted pressure value and the measured pressure value of the gas meter under a micro-leakage condition.

[0068] The preset time can be set according to actual application needs and is not limited in this embodiment. For example, the preset time can be set according to the micro-leakage constant corresponding to the cavity volume of the gas meter. The smaller the micro-leakage constant, the longer the preset time is set.

[0069] In this step, the pressure sensor and temperature sensor in the gas meter are used to obtain the measured pressure value and the measured temperature value of each of the multiple sampling points within a preset time period; for any of the multiple sampling points, the predicted pressure value of the sampling point under the no-leakage condition is calculated according to the above formula (5).

[0070] Specifically, the process of determining the predicted pressure value of any sampling point among the multiple sampling points under the no-leakage working condition can be implemented in the following manner:

[0071] A predicted pressure value of the sampling point under a no-leakage condition is determined based on the measured temperature value of the sampling point and the measured pressure value and the measured temperature value of the first sampling point among the multiple sampling points.

[0072] Among them, multiple sampling points are sorted in the order of sampling time.

[0073] Specifically, the sampling point is taken as the sampling point corresponding to time t in formula (5), and the first sampling point is taken as the sampling point corresponding to time t-1 in formula (5). That is, the measured temperature value of the sampling point is taken as , the measured pressure value of the first sampling point is taken as , the measured temperature value of the first sampling point is taken as , and substituting it into formula (5), the predicted pressure value of the sampling point under the no-leakage condition can be calculated.

[0074] In this embodiment, the predicted pressure value of the sampling point under the no-leakage condition is predicted based on the temperature change of the sampling point relative to the first sampling point, thereby ensuring the accuracy of the predicted pressure value of the sampling point under the no-leakage condition.

[0075] Among them, for any preset volume among the multiple preset volumes, the preset volume can be a certain value or a range, and can be set according to the needs of actual application. This embodiment does not limit this.

[0076] In this step, when the preset volume is a certain value, if the cavity volume of the gas meter is equal to the preset volume, the micro-leakage standard deviation corresponding to the preset volume is used as the micro-leakage standard deviation of the gas meter.

[0077] When the preset volume is a range, if the cavity volume of the gas meter is greater than or equal to the lower limit of this range and less than or equal to the upper limit of this range, the micro-leakage standard deviation corresponding to the preset volume is used as the micro-leakage standard deviation of the gas meter.

[0078] S202. For any sampling point among the multiple sampling points, determine whether the sampling point meets the micro-leakage condition based on the micro-leakage standard deviation of the gas meter and the sampling information of the sampling point. If multiple sampling points all meet the micro-leakage condition, it is determined that the gas meter has a gas micro-leakage.

[0079] The micro-leakage condition is used to determine whether the measured pressure value of the sampling point is less than the pressure threshold, and whether the change rate of the measured pressure value of the sampling point compared with at least one sampling point before the sampling point is less than 0.

[0080] In this step, if each of the multiple sampling points within the preset time period meets the micro-leakage condition, it means that within the preset time period, the measured pressure value of the gas meter is less than the pressure threshold and the measured pressure value is in a decreasing trend, then it can be determined that there is a micro-leak of gas in the gas meter.

[0081] The micro-leakage condition can be set according to the needs of the actual application and is not limited in this embodiment. For example, the micro-leakage condition can be: the measured pressure value of the sampling point is less than the pressure threshold, and the measured pressure value of the sampling point is less than the measured pressure value of the previous sampling point.

[0082] The micro-leakage condition may also be: the measured pressure value of the sampling point is less than the pressure threshold, and the measured pressure value of the sampling point is less than the measured pressure value of the first sampling point among the multiple sampling points, wherein the multiple sampling points are sorted in order of sampling time.

[0083] The micro-leakage condition may also be: the measured pressure value of the sampling point is less than the pressure threshold, and the measured pressure value of the sampling point is less than the average value of the measured pressure values ​​of multiple sampling points.

[0084] The specific value of the pressure threshold is determined according to the micro-leakage standard deviation of the gas meter and the predicted pressure value of the sampling point under no-leakage conditions.

[0085] In the embodiment of the present application, the sampling information of each sampling point of the gas meter in a preset time period is determined, wherein the sampling information of the sampling point includes the measured pressure value of the sampling point and the predicted pressure value of the sampling point under a no-leakage condition; according to the cavity volume of the gas meter, the micro-leakage standard deviation of the gas meter is determined from the micro-leakage standard deviations corresponding to the multiple preset volumes, wherein the cavity volume is determined according to the cavity shape of the gas meter, the upper limit of the measurement range and the size information of the gas meter, the sampling information of the sampling point includes the measured pressure value of the sampling point and the predicted pressure value of the sampling point under a no-leakage condition, and the micro-leakage standard deviation of the gas meter is used to measure The degree of fluctuation of the residual between the predicted pressure value and the measured pressure value of the gas meter under micro-leakage conditions; for any sampling point among multiple sampling points, whether the sampling point meets the micro-leakage condition is judged according to the micro-leakage standard deviation of the gas meter and the sampling information of the sampling point, and whether the measured pressure value of the sampling point deviates from the allowable range of the predicted pressure value under the no-leakage condition can be accurately judged. If multiple sampling points all meet the micro-leakage condition, it means that each sampling point within the preset time length deviates from the allowable range of the corresponding predicted pressure value under the no-leakage condition, and it is determined that there is a gas micro-leak in the gas meter, thereby realizing the detection of gas micro-leakage and improving the safety of gas use.

[0086] Figure 3 This is a flow chart of a process for determining the cavity volume proposed in an embodiment of the present application. In an optional implementation, in the aforementioned S201, the process for determining the cavity volume of the gas meter can be implemented in the following manner:

[0087] S301 : According to the cavity shape of the gas meter, determine a target linear model corresponding to the cavity shape from linear models corresponding to multiple preset shapes.

[0088] In this embodiment, different cavity shapes correspond to different linear models. Preset shapes may include, but are not limited to, rectangular cubes and cylinders. Preset shapes and their corresponding linear models can be set based on actual application needs and are not limited in this embodiment.

[0089] In this step, if the cavity shape of the gas meter is a preset shape, the linear model corresponding to the preset shape is used as the target linear model corresponding to the cavity shape.

[0090] S302: Determine a volume conversion coefficient corresponding to the gas meter based on the target linear model according to the upper limit of the measurement range and size information of the gas meter.

[0091] The size information of the gas meter includes the length, width and height of the gas meter.

[0092] It should be noted that although the gas meter has length, width and height, it does not mean that the appearance of the gas meter is a rectangular parallelepiped. The length, width and height here can be obtained from the factory information of the gas meter.

[0093] In practice, different gas meters typically have different measurement ranges. If a gas meter's measurement range is [a cubic meters / hour, b cubic meters / hour], the upper limit of the gas meter's measurement range is b cubic meters / hour.

[0094] In this step, the upper limit of the measurement range of the gas meter, as well as the length, width, and height of the gas meter are input into the target linear model. After calculation by the target linear model, the volume conversion coefficient corresponding to the gas meter is obtained.

[0095] S303: Determine the cavity volume of the gas meter according to the cavity shape, upper limit of the measurement range, size information, and volume conversion coefficient of the gas meter.

[0096] In this step, different cavity shapes may correspond to different volume calculation formulas.

[0097] Optionally, if the shape of the cavity is a rectangular cube, the product of the upper limit of the measurement range, the length, width, height in the size information and the volume conversion coefficient is used as the cavity volume.

[0098] Specifically, if the cavity shape is a rectangular cube, the cavity volume of the gas meter can be calculated using the following formula (7):

[0099] (7)

[0100] in, Indicates the cavity volume of a gas meter whose cavity shape is a rectangular cube, Indicates the volume conversion factor for a gas meter with a rectangular cube cavity shape. Indicates the upper limit of the gas meter's measuring range. Indicates the volume of the gas meter.

[0101] It should be noted that the volume of the gas meter It is the product of the length, width and height of the gas meter.

[0102] In practical applications, the cavity shape of a diaphragm gas meter is usually approximately a rectangular cube. Here, the cavity shape that is approximately a rectangular cube can be regarded as a rectangular cube, so the cavity volume of the diaphragm gas meter with a cavity shape that is approximately a rectangular cube can be calculated using the above formula (7).

[0103] Optionally, if the shape of the cavity is cylindrical, the product of the upper limit of the measurement range, pi, the length, width, height in the size information, and the volume conversion coefficient is used as the cavity volume.

[0104] Specifically, if the cavity shape is cylindrical, the cavity volume of the gas meter can be calculated using the following formula (8):

[0105] (8)

[0106] in, Indicates the cavity volume of a gas meter with a cylindrical cavity shape, Indicates the volume conversion factor for a gas meter with a cylindrical cavity shape. represents pi, Indicates the upper limit of the gas meter's measuring range. Indicates the volume of the gas meter.

[0107] It should be noted that the volume of the gas meter It is the product of the length, width and height of the gas meter.

[0108] In practical applications, the cavity shape of an ultrasonic gas meter is usually approximately cylindrical. Here, the cavity shape that is approximately cylindrical can be regarded as a cylinder. Therefore, the cavity volume of an ultrasonic gas meter with a cavity shape that is approximately cylindrical can be calculated using the above formula (8).

[0109] In this embodiment, different volume calculation formulas are used to calculate the cavity volume for gas meters with different cavity shapes, so that the calculation of the cavity volume is more targeted and the accuracy of the cavity volume is improved.

[0110] In this embodiment, different linear models are used to calculate the volume conversion coefficient of the gas meter for gas meters with different cavity shapes, so that the calculation of the volume conversion coefficient is more targeted, the accuracy of the volume conversion coefficient is improved, and thus the accuracy of the cavity volume is improved.

[0111] Figure 4 A schematic diagram of a process for constructing a linear model corresponding to a preset shape provided in an embodiment of the present application. In an optional implementation, in the aforementioned S301, the process for constructing a linear model corresponding to any preset shape can be implemented in the following manner:

[0112] S401: Determine an initial linear model corresponding to a preset shape according to the preset shape.

[0113] In this step, different preset shapes may correspond to different initial linear models.

[0114] Alternatively, if the preset shape is a rectangular cube, the initial linear model corresponding to the rectangular cube can be expressed as the following formula (9):

[0115] (9)

[0116] in, 、 and These are the parameters of the initial linear model corresponding to the rectangular cube. In the subsequent steps, these three parameters are optimized to obtain the linear model corresponding to the rectangular cube.

[0117] Alternatively, if the preset shape is a cylinder, the initial linear model corresponding to the cylinder can be expressed as the following formula (10):

[0118] (10)

[0119] in, 、 and These are the parameters of the initial linear model corresponding to the cylinder. In the subsequent steps, these three parameters are optimized to obtain the linear model corresponding to the cylinder.

[0120] S402. For any target gas meter among multiple target gas meters having a preset cavity shape, determine the predicted volume conversion coefficient of the target gas meter based on the upper limit of the measurement range and size information of the target gas meter and the initial linear model corresponding to the preset shape, and determine the actual volume conversion coefficient of the target gas meter based on the measurement cavity volume, upper limit of the measurement range and size information of the target gas meter.

[0121] The measurement cavity volume of the target gas meter refers to the real cavity volume of the target gas meter obtained by actual measurement.

[0122] In this step, for any target gas meter among multiple target gas meters with a preset cavity shape, the target gas meter's volume is calculated using the target gas meter's dimensional information. The target gas meter's volume and the upper limit of its measurement range are input into an initial linear model corresponding to the preset shape, and the target gas meter's volume conversion factor is predicted to obtain the predicted volume conversion factor. Based on the target gas meter's measurement cavity volume, the upper limit of its measurement range, and the meter's volume, and using the cavity volume calculation formula corresponding to the target gas meter, the target gas meter's actual volume conversion factor can be inferred.

[0123] Alternatively, if the preset shape is a rectangular cube, the volume of the target gas meter and the upper limit of the measurement range are substituted into the aforementioned formula (9) to calculate the predicted volume conversion coefficient of the target gas meter; the measurement cavity volume, the upper limit of the measurement range, and the volume of the gas meter are substituted into the aforementioned formula (7) to calculate the actual volume conversion coefficient of the gas meter.

[0124] Alternatively, if the preset shape is a cylinder, the volume of the target gas meter and the upper limit of the measurement range are substituted into the aforementioned formula (10) to calculate the predicted volume conversion coefficient of the target gas meter; the measurement cavity volume, the upper limit of the measurement range, and the volume of the gas meter are substituted into the aforementioned formula (8) to calculate the actual volume conversion coefficient of the gas meter.

[0125] S403 , optimizing the initial linear model corresponding to the preset shape based on the least squares method according to the predicted volume conversion coefficient and the actual volume conversion coefficient of each target gas meter among the multiple target gas meters, to obtain a linear model corresponding to the preset shape.

[0126] Specifically, for any target gas meter, the sum of squared errors between the predicted volume conversion coefficient and the actual volume conversion coefficient is calculated to obtain the corresponding sum of squared errors. The sum of squared errors for each target gas meter is summed up to obtain the total sum of squared errors. Using the least squares method, this sum of squared errors is minimized to find a set of model parameters that minimizes the sum of squared errors, resulting in a linear model corresponding to the preset shape.

[0127] Alternatively, if the preset shape is a rectangular cube, the sum of the squared errors can be expressed as follows (11):

[0128] (11)

[0129] in, represents the sum of the squared errors corresponding to the target gas meter, Indicates the predicted volume conversion coefficient corresponding to the i-th target gas meter, represents the actual volume conversion coefficient corresponding to the i-th target gas meter, and N represents the total number of target gas meters.

[0130] in, .in, represents the upper limit of the measurement range of the i-th target gas meter, Represents the volume of the i-th target gas meter.

[0131] Based on the least squares method, the sum of the squares of the errors By minimizing, we can get the parameter solution of the model parameters, which is shown in the following formula (12):

[0132] (12)

[0133] in, 、 and are the model parameters of the linear model corresponding to the rectangular cube.

[0134] in, for 、 and The matrix composed of the coefficients of these three model parameters corresponding to each target gas meter is: It can be expressed as the following formula (13):

[0135] (13)

[0136] is a vector formed by the actual volume conversion coefficients of each target gas meter, It can be expressed as the following formula (14):

[0137] (14)

[0138] Alternatively, if the preset shape is a cylinder, the sum of the squared errors can be expressed as follows (15):

[0139] (15)

[0140] in, represents the sum of the squared errors corresponding to the target gas meter, Indicates the predicted volume conversion coefficient corresponding to the i-th target gas meter, represents the actual volume conversion coefficient corresponding to the i-th target gas meter, and N represents the total number of target gas meters.

[0141] in, .in, represents the upper limit of the measurement range of the i-th target gas meter, Represents the volume of the i-th target gas meter.

[0142] Based on the least squares method, the sum of the squares of the errors By minimizing, we can get the parameter solution of the model parameters, which is shown in the following formula (16):

[0143] (16)

[0144] in, 、 and are the model parameters of the linear model corresponding to the cylinder.

[0145] in, for 、 and The matrix composed of the coefficients of these three model parameters corresponding to each target gas meter is: It can be expressed as the following formula (17):

[0146] (17)

[0147] is a vector formed by the actual volume conversion coefficients of each target gas meter, It can be expressed as the following formula (18):

[0148] (18)

[0149] In this embodiment, different initial linear models are defined for different preset shapes, and the predicted volume conversion coefficient and actual volume conversion coefficient of the target gas meter with a cavity shape as the preset shape are used to optimize the initial linear model corresponding to the preset shape to obtain a linear model corresponding to the preset shape, thereby improving the accuracy of the linear model corresponding to the preset shape.

[0150] Figure 5 A flowchart of a process for determining a micro-leakage standard deviation corresponding to a preset volume provided in an embodiment of the present application. In an optional implementation, in the aforementioned S201, the process for determining a micro-leakage standard deviation corresponding to any preset volume can be specifically implemented as follows:

[0151] S501. Determine a pressure prediction model under micro-leakage conditions; wherein the pressure prediction model under micro-leakage conditions is used to predict the pressure value of the sampling point at the second moment based on the measured pressure value and measured temperature value of the sampling point at the first moment, and the first moment is smaller than the second moment.

[0152] Specifically, the pressure prediction model under micro-leakage conditions can be expressed as the aforementioned formula (6).

[0153] Among them, time t-1 is the first moment, and time t is the second moment.

[0154] S502. For a gas meter whose cavity volume is a preset volume in a historical period and under a micro-leakage condition, use a pressure prediction model to predict the pressure value at the target sampling point to obtain a predicted pressure value of the target sampling point. Based on the predicted pressure value of the target sampling point and the measured pressure value of the target sampling point, an optimized predicted pressure value corresponding to the target sampling point is obtained based on a Kalman filter algorithm.

[0155] The historical period can be set according to actual application needs and is not limited in this embodiment. The measured pressure value of the target sampling point refers to the actual pressure value obtained by measuring the gas pressure in the cavity of the gas meter at the sampling point by the pressure sensor of the gas meter.

[0156] In this step, for any target sampling point, the sampling point preceding the target sampling point (e.g., the first sampling point) is used as the sampling point at time t-1, and the target sampling point is used as the sampling point at time t. The measured pressure and temperature values ​​at the sampling point at time t-1, as well as the measured temperature value at the sampling point at time t, are input into the pressure prediction model under micro-leakage conditions. The pressure value at the sampling point at time t is predicted to obtain the predicted pressure value of the target sampling point.

[0157] Furthermore, based on the predicted pressure value and measured pressure value of the target sampling point, the predicted pressure value of the target sampling point is optimized based on the Kalman filter to obtain the optimized predicted pressure value corresponding to the target sampling point. Specifically, the predicted pressure value of the target sampling point is optimized using the following formula (19):

[0158] (19)

[0159] in, Indicates the optimized predicted pressure value corresponding to the target sampling point, is the predicted pressure value of the target sampling point, represents the Kalman gain, Indicates the measured pressure value of the target sampling point, represents the observation matrix.

[0160] S503 : Determine a micro-leakage standard deviation corresponding to a preset volume according to a measured pressure value of each target sampling point among the multiple target sampling points and a corresponding optimized predicted pressure value.

[0161] Specifically, for any target sampling point among the multiple target sampling points, the difference between the measured pressure value of the target sampling point and the corresponding optimized predicted pressure value is used as the micro-leakage residual corresponding to the target sampling point.

[0162] Among them, the micro-leakage residual is used to measure the difference between the measured pressure value of the target sampling point and the optimized predicted pressure value.

[0163] Specifically, for any target sampling point, the difference between the measured pressure value of the target sampling point and the corresponding optimized predicted pressure value is the microleakage residual corresponding to the target sampling point. In this way, the microleakage residual corresponding to each target sampling point among multiple target sampling points can be obtained.

[0164] Optionally, the micro-leakage residual may also be a difference obtained by subtracting the measured pressure value of the target sampling point from the optimized predicted pressure value of the target sampling point.

[0165] The micro-leakage standard deviation corresponding to the preset volume is determined according to the micro-leakage residual corresponding to each target sampling point among the multiple target sampling points.

[0166] Specifically, the following formula (20) is used to calculate the microleakage standard deviation corresponding to the preset volume:

[0167] (20)

[0168] in, represents the standard deviation of micro-leakage corresponding to the preset volume, n represents the total number of target sampling points, represents the micro-leakage residual corresponding to the i-th target sampling point, Represents the average value of the micro-leakage residuals corresponding to n target sampling points.

[0169] In this embodiment, the measured pressure value of the target sampling point is subtracted from the corresponding optimized predicted pressure value to obtain a micro-leakage residual; based on the micro-leakage residual corresponding to each target sampling point, the micro-leakage standard deviation corresponding to the micro-leakage residual is calculated, so that the micro-leakage standard deviation can accurately measure the degree of fluctuation of the residual between the measured pressure value of the target sampling point and the corresponding optimized predicted pressure value.

[0170] In this embodiment, after using the pressure prediction model under micro-leakage conditions to predict the pressure value of the target sampling point and obtaining the predicted pressure value, the measured pressure value of the target sampling point is used to optimize the predicted pressure value based on the Kalman filter algorithm to obtain the optimized predicted pressure value, thereby improving the accuracy of the predicted pressure value.

[0171] Optionally, the micro-leakage standard deviation corresponding to the preset volume can also be determined directly based on the measured pressure value of each sampling point among the multiple target sampling points and the predicted pressure value predicted by the pressure prediction model under the micro-leakage working condition. For any target sampling point among the multiple target sampling points, the difference between the measured pressure value and the predicted pressure value of the target sampling point is used as the micro-leakage residual corresponding to the target sampling point. In this way, the micro-leakage residual corresponding to each target sampling point among the multiple target sampling points can be obtained. Based on the micro-leakage residual corresponding to each target sampling point among the multiple target sampling points, the micro-leakage standard deviation corresponding to the preset volume is determined. The implementation principle is the same as that of the aforementioned S503 and will not be repeated here.

[0172] Figure 6A flow chart of a method for determining whether a gas meter has a gas micro-leak is provided in an embodiment of the present application. In an optional implementation, in the aforementioned S202, for any of the multiple sampling points, based on the micro-leak standard deviation and the sampling information of the sampling point, it is determined whether the sampling point meets the micro-leak condition. If the multiple sampling points all meet the micro-leak condition, then it is determined that the gas meter has a gas micro-leak. Specifically, the following implementation can be used:

[0173] S601. For any sampling point among the multiple sampling points, determine a pressure threshold of the sampling point according to a micro-leakage standard deviation of the gas meter and a predicted pressure value of the sampling point under a no-leakage condition.

[0174] Specifically, the product of the preset confidence coefficient and the micro-leakage standard deviation of the gas meter is used as the error tolerance, and the difference obtained by subtracting the error tolerance from the predicted pressure value of the sampling point under no-leakage conditions is used as the pressure threshold of the sampling point.

[0175] The pressure threshold of the sampling point can be calculated using the following formula (21):

[0176] (twenty one)

[0177] in, Indicates the pressure threshold of the sampling point, Indicates the predicted pressure value of the sampling point under no-leakage conditions. represents the preset reliability coefficient, represents the standard deviation of micro-leakage of the gas meter, Indicates the error tolerance.

[0178] The preset confidence factor can be set according to actual application needs, which is not limited in this embodiment. For example, the preset confidence factor can be 1, 2, or 3.

[0179] S602: If the measured pressure value of the sampling point is less than the pressure threshold of the sampling point, and the measured pressure value of the sampling point is less than the measured pressure value of the previous sampling point, it is determined that the sampling point meets the micro-leakage condition.

[0180] Specifically, if the measured pressure value of the sampling point is less than the pressure threshold of the sampling point, and the measured pressure value of the sampling point is less than the measured pressure value of the previous sampling point, it means that the measured pressure value of the sampling point exceeds the fluctuation range of the predicted pressure value under the no-leakage condition, and has decreased compared with the measured pressure value of the previous sampling point. In this case, it can be determined that the sampling point meets the micro-leakage condition.

[0181] S603: If multiple sampling points meet the micro-leakage condition, it is determined that there is a micro-leakage of gas in the gas meter.

[0182] Specifically, if multiple sampling points meet the micro-leakage conditions, it means that within the preset time period, the change in gas pressure in the cavity of the gas meter exceeds the range of gas pressure fluctuation under no-leakage conditions, and the gas pressure in the cavity is on a decreasing trend (that is, the pressure change rate of the sampling point is less than 0), then it can be determined that there is a micro-leakage of gas in the gas meter.

[0183] It should be noted that when determining whether the first sampling point among multiple sampling points meets the micro-leakage condition, since there is no measured pressure value of the sampling point before the first sampling point, it is impossible to determine whether the first sampling point meets the micro-leakage condition. Therefore, it is not necessary to determine whether the first sampling point meets the micro-leakage condition here.

[0184] In this embodiment, for any sampling point, the pressure threshold of the sampling point is determined based on the micro-leakage standard deviation of the gas meter and the predicted pressure value of the sampling point under no-leakage conditions, and the lower limit of the pressure fluctuation range under no-leakage conditions is accurately determined; if the measured pressure value of the sampling point is less than the pressure threshold of the sampling point and less than the measured pressure value of the previous sampling point, it is determined that the sampling point meets the micro-leakage condition; if multiple sampling points all meet the micro-leakage condition, it is determined that there is a gas micro-leak in the gas meter, so that the gas micro-leakage detection result refers to the sampling results over a period of time, thereby improving the accuracy and reliability of micro-leakage detection.

[0185] Figure 7 A flow chart of a method for determining a preset duration provided in an embodiment of the present application. In an optional implementation, setting the preset duration can be implemented in the following manner:

[0186] S701. Determine a micro-leakage constant corresponding to the gas meter from micro-leakage constants corresponding to multiple preset volumes according to the cavity volume of the gas meter; wherein the micro-leakage constant is used to measure the magnitude of the micro-leakage rate and is inversely proportional to the cavity volume.

[0187] Among them, for any preset volume among the multiple preset volumes, the preset volume can be a certain value or a range, and can be set according to the needs of actual application. This embodiment does not limit this.

[0188] In this step, when the preset volume is a certain value, if the cavity volume of the gas meter is equal to the preset volume, the micro leakage constant corresponding to the preset volume is used as the micro leakage constant of the gas meter.

[0189] When the preset volume is a range, if the cavity volume of the gas meter is greater than or equal to the lower limit of the range and less than or equal to the upper limit of the range, the micro leakage constant corresponding to the preset volume is used as the micro leakage constant of the gas meter.

[0190] S702. Determine a preset time duration according to a micro-leakage constant corresponding to the gas meter; wherein, the smaller the micro-leakage constant, the longer the preset time duration.

[0191] Specifically, the multiple micro-leakage constants corresponding to the multiple preset volumes are sorted from small to large according to the micro-leakage constant, and a longer preset time is assigned to the micro-leakage constants that are sorted higher, and a shorter preset time is assigned to the micro-leakage constants that are sorted lower.

[0192] Among them, the smaller the micro-leakage constant of the gas meter, the larger the cavity volume of the gas meter, and when a gas micro-leak occurs in the gas meter, the greater the micro-leakage rate, that is, it takes a longer time to observe and determine whether there is a gas micro-leak in the gas meter, so the preset time is set longer.

[0193] In this embodiment, the micro-leakage constant of the gas meter is determined according to the cavity volume of the gas meter, and the preset sampling time is set according to the micro-leakage constant of the gas meter, thereby improving the reliability of the sampling time.

[0194] In an optional implementation, in the aforementioned S701, the process of determining the micro-leakage constant corresponding to any preset volume can be specifically implemented in the following manner:

[0195] For any reference sampling point of a gas meter with a preset cavity volume within a preset time period under micro-leakage conditions, the sub-micro-leakage constant corresponding to the reference sampling point is determined based on the measured pressure value of the reference sampling point and the measured pressure value and measured temperature value of the previous reference sampling point.

[0196] Specifically, for any reference sampling point, the following formula (22) is used to solve the sub-micro leakage constant corresponding to the reference sampling point:

[0197] (twenty two)

[0198] in, represents the sub-micro leakage constant corresponding to the reference sampling point, Indicates the measured pressure value of the reference sampling point, Indicates the measured pressure value of the previous reference sampling point. Indicates the measured temperature value of the previous reference sampling point. Indicates the measured temperature value of the reference sampling point, represents the sampling time of the reference sampling point, Indicates the sampling time of the previous reference sampling point.

[0199] Among them, the reference sampling points are sorted in the order of sampling time.

[0200] The micro leakage constant corresponding to the preset volume is determined according to the sub-micro leakage constant corresponding to each reference sampling point among the multiple reference sampling points.

[0201] Specifically, the average value, median value or mode value of the sub-micro leakage constants corresponding to each reference sampling point is used as the micro leakage constant corresponding to the preset volume.

[0202] In this embodiment, for any reference sampling point among multiple reference sampling points under micro-leakage conditions, the sub-micro-leakage constant corresponding to the reference sampling point is inferred through the measured pressure value and the measured temperature value of the reference sampling point, and the final micro-leakage constant is determined based on the multiple sub-micro-leakage constants, thereby ensuring the accuracy of the micro-leakage constant and improving the reliability of the micro-leakage constant.

[0203] Figure 8 This is a schematic diagram of the structure of a gas micro-leakage detection device provided in an embodiment of the present application. Figure 8 As shown, the gas micro-leakage detection device 800 includes: a micro-leakage standard deviation determination module 801 and a gas micro-leakage determination module 802 .

[0204] Among them, the micro-leakage standard deviation determination module 801 is used to determine the sampling information of each sampling point among multiple sampling points of the gas meter within a preset time period, and determine the micro-leakage standard deviation of the gas meter from the micro-leakage standard deviations corresponding to multiple preset volumes according to the cavity volume of the gas meter.

[0205] The gas micro-leakage determination module 802 is used to determine whether any sampling point among multiple sampling points meets the micro-leakage condition based on the micro-leakage standard deviation and the sampling information of the sampling point. If multiple sampling points all meet the micro-leakage condition, it is determined that there is a gas micro-leakage in the gas meter.

[0206] Among them, the cavity volume is determined based on the cavity shape of the gas meter, the upper limit of the measurement range and the size information of the gas meter. The micro-leakage standard deviation of the gas meter is used to measure the fluctuation degree of the residual between the predicted pressure value and the measured pressure value of the gas meter under micro-leakage conditions. The sampling information of the sampling point includes the measured pressure value of the sampling point and the predicted pressure value of the sampling point under no-leakage conditions.

[0207] In an optional implementation, when determining the cavity volume, the micro-leakage standard deviation determination module 801 is further configured to:

[0208] According to the cavity shape, the target linear model corresponding to the cavity shape is determined from the linear models corresponding to multiple preset shapes; according to the upper limit of the measurement range and the size information, the volume conversion coefficient corresponding to the gas meter is determined based on the target linear model; according to the cavity shape, the upper limit of the measurement range, the size information and the volume conversion coefficient, the cavity volume is determined.

[0209] In an optional implementation, when constructing a linear model corresponding to any preset shape, the micro-leakage standard deviation determination module 801 is further configured to:

[0210] According to the preset shape, an initial linear model corresponding to the preset shape is determined; for any target gas meter among the multiple target gas meters whose cavity shape is the preset shape, according to the upper limit of the measurement range and the size information of the target gas meter, based on the initial linear model, the predicted volume conversion coefficient of the target gas meter is determined, and according to the measurement cavity volume, the upper limit of the measurement range and the size information of the target gas meter, the actual volume conversion coefficient of the target gas meter is determined; according to the predicted volume conversion coefficient and the actual volume conversion coefficient of each target gas meter among the multiple target gas meters, the initial linear model is optimized based on the least squares method to obtain a linear model corresponding to the preset shape.

[0211] In an optional implementation, when determining the cavity volume based on the cavity shape, the upper limit of the measurement range, the size information, and the volume conversion coefficient, the micro-leakage standard deviation determination module 801 is specifically configured to:

[0212] If the cavity shape is a rectangular cube, the product of the upper limit of the measurement range, the length, width, height in the dimension information, and the volume conversion factor is used as the cavity volume; alternatively, if the cavity shape is a cylinder, the product of the upper limit of the measurement range, pi, the length, width, height in the dimension information, and the volume conversion factor is used as the cavity volume.

[0213] In an optional implementation, when determining the micro-leakage standard deviation corresponding to any preset volume, the micro-leakage standard deviation determination module 801 is further configured to:

[0214] Determine a pressure prediction model under micro-leakage conditions; wherein the pressure prediction model is used to predict the pressure value of the sampling point at the second moment based on the measured pressure value and the measured temperature value of the sampling point at the first moment, and the first moment is less than the second moment; for a gas meter with a cavity volume of a preset volume in a historical period, at any target sampling point among multiple target sampling points under micro-leakage conditions, use the pressure prediction model to predict the pressure value at the moment of the target sampling point to obtain the predicted pressure value of the target sampling point, and based on the predicted pressure value of the target sampling point and the measured pressure value of the target sampling point, obtain the optimized predicted pressure value corresponding to the target sampling point based on the Kalman filter algorithm; determine the micro-leakage standard deviation corresponding to the preset volume based on the measured pressure value of each target sampling point among the multiple target sampling points and the corresponding optimized predicted pressure value.

[0215] In an optional implementation, when determining the micro-leakage standard deviation corresponding to the preset volume based on the measured pressure value of each target sampling point among the multiple target sampling points and the corresponding optimized predicted pressure value, the micro-leakage standard deviation determination module 801 is specifically configured to:

[0216] For any target sampling point among the multiple target sampling points, the difference between the measured pressure value of the target sampling point and the corresponding optimized predicted pressure value is used as the micro-leakage residual corresponding to the target sampling point; based on the micro-leakage residual corresponding to each target sampling point among the multiple target sampling points, the micro-leakage standard deviation corresponding to the preset volume is determined.

[0217] In an optional implementation, for any one of the multiple sampling points, whether the sampling point meets the micro-leak condition is determined based on the micro-leak standard deviation and the sampling information of the sampling point. If the multiple sampling points all meet the micro-leak condition, then it is determined that there is a gas micro-leak in the gas meter. The gas micro-leak determination module 802 is specifically configured to:

[0218] For any of the multiple sampling points, the pressure threshold of the sampling point is determined based on the micro-leakage standard deviation and the predicted pressure value of the sampling point under no-leakage conditions; if the measured pressure value of the sampling point is less than the pressure threshold of the sampling point, and the measured pressure value of the sampling point is less than the measured pressure value of the previous sampling point, then it is determined that the sampling point meets the micro-leakage condition; if multiple sampling points all meet the micro-leakage condition, then it is determined that there is a gas micro-leak in the gas meter.

[0219] In an optional implementation, when determining the predicted pressure value of the sampling point under a no-leakage condition, the micro-leakage standard deviation determination module 801 is further configured to:

[0220] A predicted pressure value of the sampling point under a no-leakage condition is determined based on the measured temperature value of the sampling point and the measured pressure value and the measured temperature value of the first sampling point among the multiple sampling points.

[0221] In an optional implementation, the gas micro-leakage determination module 802 is further configured to:

[0222] According to the cavity volume, the micro-leakage constant corresponding to the gas meter is determined from the micro-leakage constants corresponding to multiple preset volumes; wherein the micro-leakage constant is used to measure the size of the micro-leakage rate and is inversely proportional to the cavity volume; according to the micro-leakage constant, the preset time is determined; wherein, the smaller the micro-leakage constant, the longer the preset time.

[0223] In an optional implementation, when determining the micro-leakage constant corresponding to any preset volume, the gas micro-leakage determination module 802 is further configured to:

[0224] For any reference sampling point of a gas meter with a cavity volume of a preset volume within a preset time period under micro-leakage conditions, the sub-micro-leakage constant corresponding to the reference sampling point is determined based on the measured pressure value of the reference sampling point, and the measured pressure value and measured temperature value of the previous reference sampling point; the micro-leakage constant corresponding to the preset volume is determined based on the sub-micro-leakage constant corresponding to each reference sampling point among the multiple reference sampling points.

[0225] The gas micro-leakage detection device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effects are similar, and are not described in detail in this embodiment.

[0226] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 9 As shown, the electronic device 900 includes a memory 901 and a processor 902. The memory 901 is used to store a computer program, and when the processor 902 executes the computer program, it implements the method of any of the above embodiments. A communication link is provided between the memory 901 and the processor 902. For example, the memory 901 and the processor 902 can communicate via a communication bus 903.

[0227] Optionally, the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), or application-specific integrated circuits (ASICs). A general-purpose processor may be a microprocessor or any conventional processor. The steps in the method embodiments disclosed herein may be directly executed by a hardware processor or by a combination of hardware and software modules within the processor.

[0228] An embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, a method in any of the above method embodiments is implemented.

[0229] An embodiment of the present application further provides a computer program product, including a computer program, which implements the method in any of the above method embodiments when the computer program is executed by a processor.

[0230] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0231] The order of the above embodiments of the present application is for descriptive purposes only and does not represent the superiority or inferiority of the embodiments. In addition, in some processes described in the above embodiments and the accompanying drawings, multiple operations are included in a specific order, but it should be clearly understood that these operations may not be executed in the order in which they appear in this document or may be executed in parallel. The order numbers are only used to distinguish different operations, and the order numbers themselves do not represent any execution order.

[0232] In addition, these processes may include more or fewer operations, and these operations may be performed sequentially or in parallel. It should be noted that the terms "first" and "second" in this document are used to distinguish different messages, devices, modules, etc., and do not represent a sequential order, nor do they limit the "first" and "second" to different types. "Multiple" means two or more, unless otherwise specified.

[0233] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0234] It should be understood that the present application is not limited to the exact structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

[0235] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for detecting micro-leakage of gas, characterized in that: include: Determine sampling information of each of a plurality of sampling points of the gas meter within a preset time period, and determine a micro-leakage standard deviation of the gas meter from micro-leakage standard deviations corresponding to a plurality of preset volumes according to a cavity volume of the gas meter; For any sampling point among the multiple sampling points, judging whether the sampling point meets a micro-leakage condition according to the micro-leakage standard deviation of the gas meter and the sampling information of the sampling point; if all the multiple sampling points meet the micro-leakage condition, determining that there is a gas micro-leakage in the gas meter; Among them, the cavity volume is determined based on the cavity shape of the gas meter, the upper limit of the measurement range and the size information of the gas meter. The micro-leakage standard deviation of the gas meter is used to measure the fluctuation degree of the residual between the predicted pressure value and the measured pressure value of the gas meter under micro-leakage conditions. The sampling information of the sampling point includes the measured pressure value of the sampling point and the predicted pressure value of the sampling point under no-leakage conditions.

2. The method according to claim 1, characterized in that The process of determining the cavity volume includes: According to the cavity shape, determining a target linear model corresponding to the cavity shape from linear models corresponding to a plurality of preset shapes; Determining a volume conversion coefficient corresponding to the gas meter based on the target linear model according to the upper limit of the measurement range and the size information; The volume of the cavity is determined according to the cavity shape, the upper limit of the measurement range, the size information and the volume conversion coefficient.

3. The method according to claim 2, characterized in that The process of constructing a linear model corresponding to any of the preset shapes includes: According to the preset shape, determining an initial linear model corresponding to the preset shape; For any target gas meter among the plurality of target gas meters having a cavity shape of the preset shape, determining, based on the initial linear model, a predicted volume conversion coefficient of the target gas meter according to an upper limit of a measurement range and size information of the target gas meter, and determining, based on the measurement cavity volume, upper limit of the measurement range, and size information of the target gas meter, a true volume conversion coefficient of the target gas meter; According to the predicted volume conversion coefficient and the actual volume conversion coefficient of each target gas meter among the multiple target gas meters, the initial linear model is optimized based on the least square method to obtain a linear model corresponding to the preset shape.

4. The method according to claim 2, characterized in that The determining the cavity volume according to the cavity shape, the upper limit of the measurement range, the size information, and the volume conversion coefficient includes: If the shape of the cavity is a rectangular cube, the product of the upper limit of the measurement range, the length, width, height in the size information, and the volume conversion coefficient is used as the cavity volume; or If the shape of the cavity is cylindrical, the product of the upper limit of the measurement range, pi, the length, width, height in the size information, and the volume conversion coefficient is used as the volume of the cavity.

5. The method according to claim 1, wherein The process of determining the micro-leakage standard deviation corresponding to any of the preset volumes includes: Determine a pressure prediction model under a micro-leakage condition; wherein the pressure prediction model is used to predict the pressure value of the sampling point at the second moment based on the measured pressure value and the measured temperature value of the sampling point at the first moment, and the first moment is smaller than the second moment; For any target sampling point among multiple target sampling points of a gas meter whose cavity volume is the preset volume under a micro-leakage condition within a historical period, use the pressure prediction model to predict the pressure value at the time of the target sampling point to obtain a predicted pressure value of the target sampling point, and obtain an optimized predicted pressure value corresponding to the target sampling point based on the predicted pressure value of the target sampling point and the measured pressure value of the target sampling point based on a Kalman filter algorithm; The micro-leakage standard deviation corresponding to the preset volume is determined according to the measured pressure value of each target sampling point among the multiple target sampling points and the corresponding optimized predicted pressure value.

6. The method according to claim 5, characterized in that The determining, based on the measured pressure value of each target sampling point among the multiple target sampling points and the corresponding optimized predicted pressure value, of the micro-leakage standard deviation corresponding to the preset volume includes: For any target sampling point among the multiple target sampling points, a difference between a measured pressure value of the target sampling point and a corresponding optimized predicted pressure value is used as a micro-leakage residual corresponding to the target sampling point; The micro-leakage standard deviation corresponding to the preset volume is determined according to the micro-leakage residual corresponding to each target sampling point among the multiple target sampling points.

7. The method according to claim 1, characterized in that The step of determining, for any one of the plurality of sampling points, whether the sampling point satisfies a micro-leakage condition based on the micro-leakage standard deviation and the sampling information of the sampling point, and determining that a gas micro-leakage exists in the gas meter if all of the plurality of sampling points satisfy the micro-leakage condition, includes: For any sampling point among the multiple sampling points, determining a pressure threshold of the sampling point according to the micro-leakage standard deviation and a predicted pressure value of the sampling point under a no-leakage condition; If the measured pressure value of the sampling point is less than the pressure threshold of the sampling point, and the measured pressure value of the sampling point is less than the measured pressure value of the previous sampling point, then it is determined that the sampling point meets the micro-leakage condition; If the multiple sampling points all meet the micro-leakage condition, it is determined that there is a micro-leakage of gas in the gas meter.

8. The method according to claim 1, characterized in that The process of determining the predicted pressure value of the sampling point under a no-leakage condition includes: A predicted pressure value of the sampling point under a no-leakage condition is determined according to the measured temperature value of the sampling point, and the measured pressure value and the measured temperature value of the first sampling point among the multiple sampling points.

9. The method according to any one of claims 1 to 8, characterized in that Also includes: According to the volume of the cavity, determining a micro-leakage constant corresponding to the gas meter from micro-leakage constants corresponding to a plurality of preset volumes; wherein the micro-leakage constant is used to measure the magnitude of the micro-leakage rate and is inversely proportional to the volume of the cavity; The preset time length is determined according to the micro-leakage constant; wherein, the smaller the micro-leakage constant is, the longer the preset time length is.

10. The method according to claim 9, characterized in that The process of determining the micro-leakage constant corresponding to any of the preset volumes includes: For any reference sampling point of a gas meter having a cavity volume of the preset volume within a preset time period under a micro-leakage condition, determining a sub-micro-leakage constant corresponding to the reference sampling point based on a measured pressure value of the reference sampling point and a measured pressure value and a measured temperature value of a previous reference sampling point of the reference sampling point; The micro leakage constant corresponding to the preset volume is determined according to the sub-micro leakage constant corresponding to each reference sampling point among the multiple reference sampling points.

11. A gas micro-leakage detection device, characterized in that: include: a micro-leakage standard deviation determination module, configured to determine sampling information of each of a plurality of sampling points of a gas meter within a preset time period, and determine the micro-leakage standard deviation of the gas meter from the micro-leakage standard deviations corresponding to the plurality of preset volumes according to the cavity volume of the gas meter; a gas micro-leakage determination module, configured to determine, for any one of the multiple sampling points, whether the sampling point meets a micro-leakage condition based on the micro-leakage standard deviation and the sampling information of the sampling point; and if all of the multiple sampling points meet the micro-leakage condition, determine that a gas micro-leakage exists in the gas meter; Among them, the cavity volume is determined based on the cavity shape of the gas meter, the upper limit of the measurement range and the size information of the gas meter. The micro-leakage standard deviation of the gas meter is used to measure the fluctuation degree of the residual between the predicted pressure value and the measured pressure value of the gas meter under micro-leakage conditions. The sampling information of the sampling point includes the measured pressure value of the sampling point and the predicted pressure value of the sampling point under no-leakage conditions.

12. An electronic device, characterized in that: include: memory and processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 10 when executed by a processor.

14. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 10 when being executed by a processor.

Citation Information

Patent Citations

  • Small flow leakage detection method and device

    CN105865728A

  • Volume-adjusting method in air leak testing device and air leak testing device having volume adjusting function

    JP2001228047A

  • Flowmeter

    JP2011208977A

Cited By

  • Air tightness detection method and system for air conditioner pipeline

    CN121068134A