A device and method for improving the accuracy of gas metering

CN123028677APending Publication Date: 2026-11-03SHAANXI XITENG MEASURING INSTR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611233781.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-14
Publication Date
2026-11-03

AI Technical Summary

Technical Problem

Gas meters have low metering accuracy under complex airflow conditions and are easily affected by airflow disturbances, resulting in metering errors and a poor user experience.

Method used

By acquiring the speed and damping data of the rotating parts inside the gas meter in real time, the basic damping coefficient, fluctuation penalty coefficient and damping compensation ratio are dynamically calculated to determine the target damping coefficient. The PID controller is then used for smooth adjustment to optimize the damping setting to adapt to changes in airflow.

Benefits of technology

It improves the metering accuracy and gas usage stability of gas meters in fluctuating airflow environments, reduces metering errors caused by airflow disturbances, and improves user gas usage comfort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123028677A_ABST
    Figure CN123028677A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data processing, in particular to a device and method for improving the measurement accuracy of a gas meter, which comprises the following steps: acquiring real-time rotation speed data and real-time damping data of a rotating component in the gas meter; determining a basic damping coefficient under the current gas flow environment; determining a fluctuation penalty coefficient of the user's gas usage behavior according to the user's historical gas usage data; determining an extended damping coefficient of the user's gas usage behavior according to the basic damping coefficient and the fluctuation penalty coefficient, and determining a damping compensation multiple according to the deviation degree of the real-time gas flow in a preset time window from the average gas flow in the preset time window and the fluctuation degree of the damping coefficient in the preset time window; determining a target damping coefficient according to the extended damping coefficient and the damping compensation multiple, and adjusting the damping of the rotating component of the gas meter by using the target damping coefficient. Thus, the application improves the measurement accuracy of the gas meter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and specifically to a device and method for improving the metering accuracy of gas meters. Background Technology

[0002] As a metering instrument for gas trade settlement and safety management, the accuracy of gas meters is determined not only by the manufacturing and assembly quality of the mechanical transmission structure and electronic sensing components, but also by the dynamic impact of users' daily gas consumption behavior. In scenarios such as residential cooking, heating, and hot water supply, gas flow frequently switches between high and low flow rates. Changes in operating conditions, such as airflow disturbances and pressure fluctuations, can all interfere with metering stability. With the iteration of smart gas meter technology, the accuracy of metering devices continues to improve, and they can generally remotely upload gas consumption data in real time. This allows for dynamic adjustment of metering parameters based on real-time gas consumption characteristics, offsetting accuracy deviations caused by changes in gas consumption habits.

[0003] In some scenarios, existing gas meters employ stepped rotational damping on multiple pairs of metering rotating components to adapt to fluctuating airflow and match different gas consumption environments. However, the damping changes in a stepwise manner, lagging behind real-time flow fluctuations. This results in poor adaptability to complex airflow conditions, easily causing unstable gas flow. This not only affects the user's normal gas consumption experience but also introduces metering errors due to airflow disturbances, leading to lower metering accuracy due to airflow instability. Summary of the Invention

[0004] In order to solve the technical problem of low metering accuracy of gas meters, the purpose of this invention is to provide a method to improve the metering accuracy of gas meters.

[0005] To solve the above technical problems, the specific technical solution adopted is as follows: In a first aspect, embodiments of the present invention provide a method for improving the metering accuracy of a gas meter, comprising: acquiring real-time rotational speed data and real-time damping data of a rotating component inside the gas meter; determining a basic damping coefficient under the current airflow environment based on the real-time rotational speed data and real-time damping data; determining a fluctuation penalty coefficient for the user's gas consumption behavior based on the user's historical gas consumption data, wherein the historical gas consumption data includes historical gas consumption times and historical gas flow rates corresponding to the historical gas consumption times; determining an extended damping coefficient for the user's gas consumption behavior based on the basic damping coefficient and the fluctuation penalty coefficient; determining a damping compensation ratio based on the deviation between the real-time gas flow rate and the average gas flow rate within a preset time window and the fluctuation of the damping coefficient within the preset time window; determining a target damping coefficient based on the extended damping coefficient and the damping compensation ratio; and adjusting the damping of the rotating component of the gas meter using the target damping coefficient.

[0006] Optionally, determining the basic damping coefficient under the current airflow environment based on real-time rotational speed data and real-time damping data includes: determining a preset initial damping coefficient based on real-time damping data; determining the current estimated real-time rotational speed data based on the preset initial damping coefficient, and determining the flow environment difference ratio based on the current estimated real-time rotational speed data and the rated rotational speed data of the gas meter, wherein the rated rotational speed data of the gas meter is the airflow speed when the damping coefficient is the preset value; and determining the basic damping coefficient based on the initial damping coefficient and the flow environment difference ratio.

[0007] Optionally, based on the user's historical gas usage data, the fluctuation penalty coefficient for the user's gas usage behavior can be determined by: obtaining the difference in damping coefficient between the user's current gas usage time and the previous historical gas usage time, as well as the duration of gas usage up to the current gas usage time; and using the natural exponential function, the difference in damping coefficient, and the duration of gas usage to determine the fluctuation penalty coefficient.

[0008] Optionally, determining the damping compensation ratio based on the deviation between the real-time airflow and the average airflow within the preset time window, and the fluctuation of the damping coefficient within the preset time window, includes: determining a first ratio of the real-time airflow to the average airflow at each moment within the preset time window; determining a second ratio of the standard deviation of the damping coefficient to the standard deviation of the real-time airflow within the preset time window; determining the instantaneous compensation factor at each moment within the preset time window based on the first and second ratios; and determining the damping compensation ratio based on the instantaneous compensation factor at each moment within the preset time window.

[0009] Optionally, determining the target damping coefficient based on the extended damping coefficient and the damping compensation ratio includes: determining the temperature ratio between the current ambient temperature and the ambient temperature at the start of the preset time window; determining the sum of the differences between the damping compensation ratio at the current moment and the damping compensation ratio at each historical moment within the preset time window; determining the correction coefficient based on the temperature ratio and the sum of the differences; and determining the target damping coefficient based on the extended damping coefficient, the damping compensation ratio, and the correction coefficient.

[0010] Optionally, determining the target damping coefficient based on the extended damping coefficient, damping compensation ratio, and correction coefficient includes: normalizing the correction coefficient to obtain a normalized correction coefficient; determining the damping adjustment increment based on the product of the extended damping coefficient and the normalized correction coefficient; and determining the target damping coefficient based on the sum of the extended damping coefficient and the damping adjustment increment.

[0011] Optionally, adjusting the damping of the rotating parts of the gas meter using the target damping coefficient includes: taking the current extended damping coefficient as the initial state, the target damping coefficient as the target state, and the damping compensation ratio as the change weight; inputting the initial state, the target state, and the change weight to the PID controller, and outputting a control signal to drive the damper for smooth adjustment through the PID controller.

[0012] Optionally, after determining the target damping coefficient based on the extended damping coefficient and the damping compensation ratio, and adjusting the damping of the rotating component of the gas meter using the target damping coefficient, the method further includes: integrating the rotation speed of the rotating component after damping adjustment in the time domain to obtain the integration area; determining the gas consumption based on the integration area, the preset cross-sectional area of ​​the gas pipeline, and the time length of the preset time window; and sending the gas consumption to the gas meter for display.

[0013] Secondly, embodiments of the present invention provide an apparatus for improving the metering accuracy of a gas meter, comprising: an acquisition module for acquiring real-time rotational speed data and real-time damping data of a rotating component inside the gas meter; a determination module for determining a basic damping coefficient under the current airflow environment based on the real-time rotational speed data and real-time damping data; and determining a fluctuation penalty coefficient for the user's gas consumption behavior based on the user's historical gas consumption data, wherein the historical gas consumption data includes historical gas consumption time and historical gas flow rate corresponding to the historical gas consumption time; the determination module is further configured to determine an extended damping coefficient for the user's gas consumption behavior based on the basic damping coefficient and the fluctuation penalty coefficient, and determine a damping compensation ratio based on the deviation between the real-time gas flow rate and the average gas flow rate within a preset time window and the fluctuation of the damping coefficient within the preset time window; and the determination module is further configured to determine a target damping coefficient based on the extended damping coefficient and the damping compensation ratio, and adjust the damping of the rotating component of the gas meter using the target damping coefficient.

[0014] Thirdly, embodiments of the present invention provide an apparatus for improving the metering accuracy of a gas meter, comprising: a processor and a memory; wherein the memory is used to store a computer program that can run on the processor; the processor is used to execute the program stored in the memory to implement the steps of the method for improving the metering accuracy of a gas meter as mentioned in the first aspect.

[0015] This invention offers the following advantages: By acquiring real-time speed and damping data of the rotating component and dynamically calculating and continuously adjusting the target damping coefficient, the invention can instantly track airflow changes, achieving matching between damping and real-time airflow conditions, thus improving the system's dynamic response to fluctuating airflow. The basic damping coefficient reflects the characteristics of the current airflow environment, and combined with the fluctuation penalty coefficient, it depicts the fluctuation patterns of the user's historical gas usage behavior, ultimately constructing an extended damping coefficient. This allows the damping setting to adapt to both current operating conditions and anticipate the user's unique gas usage patterns. Furthermore, by combining the degree of deviation of real-time gas flow from the average value and the degree of damping fluctuation itself, a damping compensation ratio is calculated, forming a secondary correction to the damping coefficient, thereby adapting to complex and variable actual gas usage scenarios. Because the damping can dynamically compensate based on real-time flow deviation and damping fluctuation, it can effectively suppress drastic fluctuations in gas flow caused by external disturbances or sudden changes in gas usage behavior, resulting in a more stable airflow output from the gas meter. Users are less likely to experience noticeable flow jumps in actual use, thus improving the continuity and comfort of gas usage. Finally, by coordinating damping with real-time airflow, phenomena such as irregular rotation, jitter, or overshoot of rotating components caused by airflow instability are reduced, thereby lowering the additional metering error introduced by airflow disturbance. The gas meter can maintain stable mechanical response characteristics even in fluctuating airflow environments, thus improving the metering accuracy of actual gas consumption. Attached Figure Description

[0016] To more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating a method for improving the metering accuracy of a gas meter, as provided in one embodiment of the present invention. Detailed Implementation

[0018] The following describes in detail, with reference to the accompanying drawings, a specific scheme for a method to improve the metering accuracy of a gas meter provided by the present invention.

[0019] Example 1: Please see Figure 1 The flowchart illustrates a method for improving the metering accuracy of a gas meter according to an embodiment of the present invention, including: Step S101: Obtain real-time rotational speed data and real-time damping data of the rotating components inside the gas meter.

[0020] Specifically, this invention uses an internal sensor integrated into the gas meter and a data bus to collect airflow data and transmit it to an edge computing node. The sensor continuously monitors the gas flow as long as there is gas flow within the gas meter, even the weakest flow. For example, any gas usage action by the user (such as ignition, adjusting the flame, or turning off the gas) will cause a change in the rotational speed of the rotating component, immediately triggering the collection of airflow data. Furthermore, the gas pipeline itself has pressure. When the user opens the valve (ignition), the pressure at the end decreases, and the high-pressure internal pipeline naturally begins to transfer gas pressure to the end, creating a pressure difference that generates gas flow. This gas flow drives the valve blades to rotate. The gas meter monitors the rotational speed to assess the airflow velocity. However, changes in gas flow velocity cause instability in the blade rotation speed. Therefore, by incorporating a damper into the blades, the blade rotation speed is prevented from differing from the actual gas flow velocity due to rapid changes in gas flow. For example, without damping, a short-term high-frequency excitation of the airflow (such as at the moment of ignition) gives the blades a high acceleration, causing them to rotate at high speed, resulting in high-speed rotation even with a small flow rate. This allows the sensor to acquire real-time rotational speed and damping data of the rotating components inside the gas meter. Furthermore, real-time rotational speed data can be the blade rotational speed of the rotating component at various times. Real-time damping data can be the damping percentage.

[0021] Step S102: Determine the basic damping coefficient under the current airflow environment based on the real-time rotation speed data and real-time damping data; and determine the fluctuation penalty coefficient of the user's gas usage behavior based on the user's historical gas usage data, which includes the historical gas usage time and the historical gas flow rate corresponding to the historical gas usage time.

[0022] Specifically, at every moment during gas usage, even without changes to the user's gas-using equipment, minute changes in pressure, temperature, and other parameters within the pipeline can still cause random and unpredictable fluctuations in airflow. Therefore, the difference between the actual flow rate signal collected through the above steps and the system's expected stable flow rate is combined for evaluation to extract the real-time characteristics of airflow changes.

[0023] Furthermore, the damping is stepped and lagging when user gas demand changes. Therefore, the system needs to pre-set a damping coefficient as the initial damping coefficient before the user changes their gas consumption, based on the user's historical gas usage habits. Therefore, as an optional embodiment of the present invention, determining the basic damping coefficient under the current airflow environment based on real-time rotational speed data and real-time damping data includes: determining a preset initial damping coefficient based on real-time damping data; determining the current estimated real-time rotational speed data based on the preset initial damping coefficient, and determining the flow environment difference ratio based on the current estimated real-time rotational speed data and the gas meter's rated rotational speed data, where the gas meter's rated rotational speed data is the airflow speed when the damping coefficient is the preset value; and determining the basic damping coefficient based on the initial damping coefficient and the flow environment difference ratio.

[0024] Specifically, in this embodiment of the invention, the preset initial damping coefficient can be 50% of the real-time damping coefficient at the current moment, that is, half of the real-time damping coefficient at the current moment is provided as the initial damping coefficient. The preset initial damping coefficient represents the initial value set after estimating the comprehensive global influencing factors. It needs to be adjusted and controlled by the actual gas flow pressure relationship in the current pipeline. Therefore, the damping coefficient is adjusted by extracting the environmental conditions of the gas flow velocity.

[0025] Furthermore, the embodiments of the present invention employ... This represents the preset initial damping coefficient. This indicates the current estimated real-time rotational speed data. This represents the rated rotational speed data of the gas meter, i.e., the airflow speed when the damping coefficient is 0. This embodiment of the invention uses... Indicates the difference in traffic environment. This represents the foundation damping coefficient. This indicates that the basic damping value should change continuously in proportion to the difference in flow environment. In other words, the current airflow change will actually cause stronger speed fluctuations, indicating that the initial damping coefficient is not suitable for the current airflow environment (the user may be turning on multiple gas stoves at the same time).

[0026] Furthermore, the magnitude of the base damping is set by the ratio of the predicted airflow velocity to the rated airflow velocity of the gas meter. Simultaneously, if the user's gas usage habits have historically fluctuated greatly during this period (i.e., frequently fluctuating wildly), an exponential fluctuation penalty coefficient is needed to amplify the damping, in order to suppress potential airflow turbulence caused by changes in user demand in advance.

[0027] Furthermore, as an optional embodiment of the present invention, determining the fluctuation penalty coefficient of the user's gas usage behavior based on the user's historical gas usage data includes: obtaining the difference in damping coefficient between the user's current gas usage time and the previous historical gas usage time, as well as the duration of gas usage up to the current gas usage time; and determining the fluctuation penalty coefficient using the natural exponential function, the difference in damping coefficient, and the duration of gas usage.

[0028] Specifically, the embodiments of the present invention employ Indicates the current gas usage time Previous historical gas usage moment The damping coefficient. Indicates the current gas usage time The damping coefficient. Using This indicates the duration of gas consumption up to the current time. Furthermore, it uses... This represents the fluctuation penalty coefficient. The difference in damping coefficient between the user at the current moment and the previous moment ( (Where the current gas usage time is the first moment,) (Set to 0), the time elapsed since the current deadline (For example, if the gas stove has been on for three hours), the fluctuation frequency of gas usage behavior can be assessed using the characteristics of the natural index e, under the condition that the damping tends to stabilize. (Tends to 0), and as time goes on, the damping tends to 1, thus maintaining stability.

[0029] Step S103: Determine the extended damping coefficient of the user's gas usage behavior based on the basic damping coefficient and the fluctuation penalty coefficient, and determine the damping compensation ratio based on the deviation between the real-time gas flow rate and the average gas flow rate within the preset time window, as well as the fluctuation of the damping coefficient within the preset time window.

[0030] Specifically, in this embodiment of the invention, the extended damping coefficient of the user's gas consumption behavior is expressed by the following formula: In the above formula, The extended damping coefficient represents the user's gas consumption behavior. This represents the preset initial damping coefficient. This indicates the current estimated real-time rotation speed data. This indicates the rated rotational speed of the gas meter. Indicates the current gas usage time Previous historical gas usage moment The damping coefficient. Indicates the current gas usage time The damping coefficient. This indicates the duration of gas usage up to the current time.

[0031] The duration of gas consumption up to the current time of consumption has been determined. At that time, the system monitors in real time. Does it exceed the preset upper limit threshold of the effective time window? When the preset effective time window upper limit is exceeded, the formula substitution is forcibly set. Maintain a constant value. The preset upper limit of the effective time window can be 30 minutes.

[0032] Furthermore, the airflow environment changes in real time, and simply comparing the damping value before and after is insufficient. However, traditional solutions are easily affected by random noise in the pipeline network (such as pipeline vibration caused by non-gas consumption, or the decrease in current user's gas pressure due to increased gas consumption by other users) when matching the real-time environment, which can easily lead to blind adjustment of damping and reduced adaptability. Therefore, the embodiments of the present invention need to distinguish between the deviation caused by user behavior and random noise in the pipeline network. Therefore, as an optional embodiment of the present invention, determining the damping compensation ratio based on the degree of deviation between the real-time airflow and the average airflow within the preset time window, and the degree of fluctuation of the damping coefficient within the preset time window, includes: determining a first ratio of the real-time airflow to the average airflow at each moment within the preset time window; determining a second ratio of the standard deviation of the damping coefficient to the standard deviation of the real-time airflow within the preset time window; determining the instantaneous compensation factor at each moment within the preset time window based on the first ratio and the second ratio; and determining the damping compensation ratio based on the instantaneous compensation factor at each moment within the preset time window.

[0033] Specifically, in this embodiment of the invention, an initial window is first preset, that is, the current time is used as the starting time, and the window is expanded as time progresses to obtain a preset time window. Further, the user's various moments along the time sequence are extracted from the preset time window. Real-time air flow Among them, real-time air flow It can be obtained by using the extended damping coefficient, and the calculation method can refer to the known technology. The embodiments of the present invention will not be described in detail here.

[0034] Furthermore, the average airflow rate at each moment within the preset time window can be obtained by using... This indicates that, within a preset time window up to the current time j, the ratio of the standard deviation of the damping coefficient within the preset time window to the maximum theoretical standard deviation supported by the damper hardware is used as the normalized result of the standard deviation of the damping coefficient within the preset time window. The normalized result of the standard deviation of the damping coefficient within the preset time window can be obtained by using... This means that, within a preset time window up to the current time j, the ratio of the standard deviation of the real-time gas flow rate within the preset time window to the standard deviation of the maximum allowable flow rate fluctuation of the gas meter at its rated gas flow rate is used as the normalized result of the standard deviation of the real-time gas flow rate within the preset time window. The normalized result of the standard deviation of the real-time gas flow rate within the preset time window can be obtained by... This indicates that the maximum theoretical standard deviation supported by the damper hardware is 0.5, and the maximum allowable standard deviation of flow fluctuation for the gas meter at rated gas flow rate is [missing information]. Therefore, the embodiments of the present invention adopt... This represents the instantaneous compensation factor at each moment within the preset time window.

[0035] Furthermore, in this embodiment of the invention, the damping compensation ratio for a preset time window is calculated using the following formula. : In the above formula, This indicates the preset time window up to the current time. Damping compensation ratio below. This indicates the number of moments within the preset time window. Indicates time Real-time airflow. This represents the average airflow rate at each moment within the preset time window. This represents the standard deviation of the damping coefficient within a preset time window. This represents the standard deviation of real-time airflow within a preset time window. The real-time flow deviation ratio is set within a preset time window. If the actual airflow changes cause this ratio to be greater than 1, the damping will be amplified; otherwise, the damping will be reduced to minimize the impact of minor disturbances on the user's behavior. This indicates the current damping coefficient's suitability. That is, with smaller damping fluctuations and constant wind speed fluctuations, the fraction decreases, indicating that the current airflow environment is generally stable and there is no need to adjust the damping too much. This allows the system to ignore false signals and avoids the damper being randomly adjusted due to environmental noise.

[0036] It is worth noting that, in order to avoid the formula becoming meaningless due to a denominator of 0, the embodiments of the present invention include a denominator... Add 0.001 to ensure the calculation formula is meaningful.

[0037] Step S104: Determine the target damping coefficient based on the extended damping coefficient and the damping compensation ratio, and adjust the damping of the rotating parts of the gas meter using the target damping coefficient.

[0038] Specifically, after obtaining the damping compensation ratio, the fundamental flaw of the step-by-step change lies in the abrupt change in damping force. To stabilize the gas flow, the damping command ultimately output to the rotating component of the meter needs to combine the component's own physical and mechanical adjustment capabilities, integrating state fluctuations and real-time feedback to achieve a smooth and gentle damping adjustment, thereby reducing high-frequency impacts on the overall hardware of the gas meter. The final damping command should be an adjustment process, not a direct adjustment based on the adjustment amount at each moment. Forced adjustment would lead to an overreaction in the hardware response (e.g., large fluctuations in the previous moment, with the user turning off the device at the current moment). It is necessary to extract the damping command by combining the direction of change of the compensation ratio and the adjustment trend, thereby smoothing out the control curve of the target damping amount from a steep slope to a gentle one.

[0039] Furthermore, as an optional embodiment of the present invention, determining the target damping coefficient based on the extended damping coefficient and the damping compensation ratio includes: determining the temperature ratio between the ambient temperature at the current moment and the ambient temperature at the beginning of the preset time window; determining the sum of the differences between the damping compensation ratio at the current moment and the damping compensation ratio at each historical moment within the preset time window; determining a correction coefficient based on the temperature ratio and the sum of the differences; and determining the target damping coefficient based on the extended damping coefficient, the damping compensation ratio, and the correction coefficient.

[0040] Specifically, in this embodiment of the invention, the correction coefficient is calculated using the following formula for the preset time window w up to the current time t. : In the above formula, This represents the correction coefficient for the preset time window w up to the current time t. Indicates the start time of the preset time window w. Ambient temperature. This represents the ambient temperature at the current time t. This indicates the number of moments in the preset time window w up to the current time t. This indicates the preset time window up to the current time. Damping compensation ratio below. This represents the damping compensation ratio for each historical time j within the preset time window w at the current time t.

[0041] in, The ambient temperature detected by the integrated environmental sensor of the gas meter at the initial time t0 is w. With the current ambient temperature The ratio indicates the impact of the gas supply temperature on airflow monitoring. When the temperature rises, the value of this fraction is less than 1, compensating for the decrease in density caused by the increase in temperature. The opposite is true when the temperature is low.

[0042] Furthermore, the damping compensation ratio varies in its adaptability to the environment, including minute changes in pressure and temperature within the gas pipeline. For example, in winter, when the air pressure is high and the temperature is low, the gas density increases, and the kinetic energy (impact force) of the same volume of airflow impacting the rotating component is greater. If the damping is not increased accordingly, the rotating component will distort. Therefore, it is necessary to accurately assess the correction coefficient by considering the environmental impact of temperature and the necessity of compensation at the current moment.

[0043] Furthermore, To traverse the preset time window w up to the current time t Damping compensation ratio at any given moment Damping compensation ratio at the current moment difference This reflects the changes in pipeline pressure caused by user demand at various times within the preset time window w, and consequently, the changes in the impact force of high-density airflow in the pipeline. The larger this formula is, the more the system should synchronously amplify the damping to maintain stable rotational speed.

[0044] Furthermore, as an optional embodiment of the present invention, determining the target damping coefficient based on the extended damping coefficient, the damping compensation ratio, and the correction coefficient includes: normalizing the correction coefficient to obtain a normalized correction coefficient; determining the damping adjustment increment based on the product of the extended damping coefficient and the normalized correction coefficient; and determining the target damping coefficient based on the sum of the extended damping coefficient and the damping adjustment increment.

[0045] Specifically, the embodiments of the present invention employ the following method for calculating the target damping coefficient: In the above formula, This represents the target damping coefficient up to the current time t. This represents the extended damping coefficient up to the current time t. This represents the correction coefficient for the preset time window w up to the current time t. The function () is a normalized function with a range of [-1, 1]. In this embodiment of the invention, the function is... This indicates the damping adjustment increment.

[0046] Furthermore, as an optional embodiment of the present invention, adjusting the damping of the rotating component of the gas meter using the target damping coefficient includes: taking the current extended damping coefficient as the initial state, the target damping coefficient as the target state, and the damping compensation ratio as the change weight; inputting the initial state, the target state, and the change weight to the PID controller, and outputting a control signal to drive the damper for smooth adjustment through the PID controller.

[0047] Specifically, in this embodiment of the invention, the target damping coefficient at the current time t is obtained. Then, the target damping coefficient at the current time t is... As the target state, the extended damping value at the current time t As the initial state, the damping compensation ratio Ct at the current time t is used as the change weight and input to the PID controller in the cloud. The PID controller outputs a control signal, which is used to drive the damper to make smooth adjustments. Specifically, the target damping coefficient at the current time t is... As the target state, the extended damping value at the current time t As the initial state, the damping compensation ratio Ct at the current time t is used as the change weight and input to the PID controller in the cloud. The PID controller calculates and outputs a smooth control signal based on the proportional, integral, and derivative components. This control signal is used to drive the damper, so that the actual damping smoothly transitions from the current extended damping coefficient to the target damping coefficient, avoiding airflow impact or regulation oscillation caused by abrupt changes in damping, thereby improving the dynamic response quality and metering stability of the gas meter under fluctuating airflow conditions.

[0048] This invention, through real-time acquisition of speed and damping data of rotating components and dynamic calculation and continuous adjustment of the target damping coefficient, can instantly track airflow changes, achieving matching between damping and real-time airflow conditions, thus improving the system's dynamic response to fluctuating airflow. The basic damping coefficient reflects the characteristics of the current airflow environment, and combined with a fluctuation penalty coefficient, it characterizes the fluctuation patterns of the user's historical gas usage behavior, ultimately constructing an extended damping coefficient. This allows the damping setting to adapt to both current operating conditions and anticipate the user's unique gas usage patterns. Furthermore, by combining the degree of deviation of real-time gas flow from the average value and the degree of damping fluctuation itself, a damping compensation ratio is calculated, forming a secondary correction to the damping coefficient, thereby adapting to complex and variable actual gas usage scenarios. Because the damping can dynamically compensate based on real-time flow deviation and damping fluctuation, it can effectively suppress drastic fluctuations in gas flow caused by external disturbances or sudden changes in gas usage behavior, resulting in a more stable airflow output from the gas meter. Users are less likely to experience noticeable flow jumps in actual use, thus improving the continuity and comfort of gas usage. Finally, by coordinating damping with real-time airflow, phenomena such as irregular rotation, jitter, or overshoot of rotating components caused by airflow instability are reduced, thereby lowering the additional metering error introduced by airflow disturbance. The gas meter can maintain stable mechanical response characteristics even in fluctuating airflow environments, thus improving the metering accuracy of actual gas consumption.

[0049] Furthermore, as an optional embodiment of the present invention, after determining the target damping coefficient based on the extended damping coefficient and the damping compensation ratio, and adjusting the damping of the rotating component of the gas meter using the target damping coefficient, the method further includes: integrating the rotational speed of the rotating component after damping adjustment in the time domain to obtain the integrated area; determining the gas consumption based on the integrated area, the preset cross-sectional area of ​​the gas pipeline, and the time length of the preset time window; and sending the gas consumption to the gas meter for display.

[0050] Specifically, in this embodiment of the invention, the integral area under the velocity-time curve is obtained by integrating the rotational speed of the rotating component detected by the sensor in the time domain. This integral area is physically equivalent to the total rotational stroke of the rotating component driven by the airflow during that time period. The integral area is then multiplied by a preset cross-sectional area of ​​the gas pipeline and the length of a preset time window. The product value is used as the gas consumption, which is then sent to the gas meter for display.

[0051] Example 2: Corresponding to the method for improving the metering accuracy of gas meters provided in the above embodiments, based on the same technical concept, this embodiment of the invention also provides an apparatus for improving the metering accuracy of gas meters. This apparatus includes: a processor and a memory; wherein the memory stores a computer program that can run on the processor; and the processor executes the program stored in the memory to achieve the above... Figure 1 The various steps in the method embodiments are the same as those in the above method embodiments, and have the same beneficial effects. To avoid repetition, the embodiments of the present invention will not be described again here.

[0052] Example 3: Corresponding to the method for improving the metering accuracy of gas meters provided in the above embodiments, based on the same technical concept, this embodiment of the invention also provides an apparatus for improving the metering accuracy of gas meters. This apparatus is used to execute the above-described method for improving the metering accuracy of gas meters. Another apparatus for improving the metering accuracy of gas meters includes: an acquisition module for acquiring real-time rotational speed data and real-time damping data of a rotating component inside the gas meter; a determination module for determining a basic damping coefficient under the current airflow environment based on the real-time rotational speed data and real-time damping data; and determining a fluctuation penalty coefficient for the user's gas usage behavior based on the user's historical gas usage data, where the historical gas usage data includes historical gas usage times and historical gas flow rates corresponding to those times; the determination module is also used to determine an extended damping coefficient for the user's gas usage behavior based on the basic damping coefficient and the fluctuation penalty coefficient, and to determine a damping compensation ratio based on the deviation between the real-time gas flow rate and the average gas flow rate within a preset time window, and the fluctuation of the damping coefficient within the preset time window; the determination module is also used to determine a target damping coefficient based on the extended damping coefficient and the damping compensation ratio, and to adjust the damping of the rotating component of the gas meter using the target damping coefficient.

[0053] It should be noted that the device for improving the metering accuracy of gas meters provided in this embodiment of the invention and the method for improving the metering accuracy of gas meters provided in this embodiment of the invention are based on the same application concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned method for improving the metering accuracy of gas meters, and has the same or similar beneficial effects. Repeated parts will not be described again.

Claims

1. A method for improving the metering accuracy of a gas meter, characterized in that, include: Obtain real-time rotational speed data and real-time damping data of the rotating parts inside the gas meter; Based on the real-time rotational speed data and the real-time damping data, determine the basic damping coefficient under the current airflow environment; Based on the user's historical gas consumption data, a fluctuation penalty coefficient for the user's gas consumption behavior is determined. The historical gas consumption data includes the historical gas consumption time and the historical gas flow rate corresponding to the historical gas consumption time. Based on the basic damping coefficient and the fluctuation penalty coefficient, the extended damping coefficient of the user's gas usage behavior is determined, and the damping compensation ratio is determined based on the deviation between the real-time gas flow rate and the average gas flow rate within the preset time window, as well as the fluctuation of the damping coefficient within the preset time window. Based on the extended damping coefficient and the damping compensation ratio, a target damping coefficient is determined, and the damping of the rotating component of the gas meter is adjusted using the target damping coefficient.

2. The method for improving the metering accuracy of a gas meter according to claim 1, characterized in that, The step of determining the basic damping coefficient under the current airflow environment based on the real-time rotational speed data and the real-time damping data includes: The preset initial damping coefficient is determined based on the real-time damping data; Based on the preset initial damping coefficient, the current estimated real-time rotation speed data is determined, and based on the current estimated real-time rotation speed data and the rated rotation speed data of the gas meter, the flow environment difference ratio is determined, wherein the rated rotation speed data of the gas meter is the airflow speed when the damping coefficient is a preset value. The basic damping coefficient is determined based on the ratio of the initial damping coefficient to the difference between the flow environment and the initial damping coefficient.

3. The method for improving the metering accuracy of a gas meter according to claim 1, characterized in that, The determination of the fluctuation penalty coefficient for a user's gas usage behavior based on the user's historical gas usage data includes: Obtain the difference in damping coefficient between the user's current gas consumption time and the previous historical gas consumption time, as well as the duration of gas consumption up to the current gas consumption time; The fluctuation penalty coefficient is determined using the natural exponential function, the difference in damping coefficients, and the duration of gas consumption.

4. The method for improving the metering accuracy of a gas meter according to claim 1, characterized in that, The step of determining the damping compensation ratio based on the deviation between the real-time airflow rate and the average airflow rate within the preset time window, and the fluctuation of the damping coefficient within the preset time window, includes: Determine a first ratio between the real-time airflow rate and the average airflow rate at each moment within the preset time window; Determine a second ratio between the standard deviation of the damping coefficient and the standard deviation of the real-time air flow rate within the preset time window; Based on the first ratio and the second ratio, the instantaneous compensation factor for each moment within the preset time window is determined; The damping compensation ratio is determined based on the instantaneous compensation factor at each moment within the preset time window.

5. The method for improving the metering accuracy of a gas meter according to claim 1, characterized in that, The step of determining the target damping coefficient based on the extended damping coefficient and the damping compensation ratio includes: Determine the temperature ratio between the current ambient temperature and the ambient temperature at the start of the preset time window; The sum of the differences between the damping compensation ratio at the current moment and the damping compensation ratio at each historical moment within the preset time window is determined. The correction factor is determined based on the sum of the temperature ratio and the difference. The target damping coefficient is determined based on the extended damping coefficient, the damping compensation ratio, and the correction coefficient.

6. The method for improving the metering accuracy of a gas meter according to claim 5, characterized in that, Determining the target damping coefficient based on the extended damping coefficient, the damping compensation ratio, and the correction coefficient includes: The correction coefficients are normalized to obtain normalized correction coefficients; The damping adjustment increment is determined based on the product of the extended damping coefficient and the normalized correction coefficient; The target damping coefficient is determined based on the sum of the extended damping coefficient and the damping adjustment increment.

7. The method for improving the metering accuracy of a gas meter according to claim 1, characterized in that, The damping adjustment of the rotating component of the gas meter using the target damping coefficient includes: The current extended damping coefficient is taken as the initial state, the target damping coefficient is taken as the target state, and the damping compensation ratio is taken as the change weight. The initial state, the target state, and the change weights are input to the PID controller, which then outputs a control signal to drive the damper for smooth adjustment.

8. The method for improving the metering accuracy of a gas meter according to claim 1, characterized in that, After determining the target damping coefficient based on the extended damping coefficient and the damping compensation ratio, and adjusting the damping of the rotating component of the gas meter using the target damping coefficient, the method further includes: The rotational speed of the damped rotating component is integrated in the time domain to obtain the integration area. The gas consumption is determined based on the integral area, the preset cross-sectional area of ​​the gas pipeline, and the duration of the preset time window. The gas consumption is sent to the gas meter for display.

9. A device for improving the metering accuracy of a gas meter, characterized in that, include: The acquisition module is used to acquire real-time rotational speed data and real-time damping data of the rotating parts inside the gas meter; The determination module is used to determine the basic damping coefficient under the current airflow environment based on the real-time rotational speed data and the real-time damping data. Based on the user's historical gas consumption data, a fluctuation penalty coefficient for the user's gas consumption behavior is determined. The historical gas consumption data includes the historical gas consumption time and the historical gas flow rate corresponding to the historical gas consumption time. The determining module is also used to determine the extended damping coefficient of the user's gas usage behavior based on the basic damping coefficient and the fluctuation penalty coefficient, and to determine the damping compensation ratio based on the deviation between the real-time gas flow rate and the average gas flow rate within the preset time window, as well as the fluctuation of the damping coefficient within the preset time window. The determining module is also used to determine a target damping coefficient based on the extended damping coefficient and the damping compensation ratio, and to adjust the damping of the rotating component of the gas meter using the target damping coefficient.

10. A device for improving the metering accuracy of a gas meter, characterized in that, include: Processor and memory; wherein the memory is used to store computer programs that can run on the processor; A processor for executing a program stored in memory to implement the steps of the method for improving the metering accuracy of a gas meter as described in any one of claims 1-8.