A dynamic measurement method and system based on NB Internet of Things ultrasonic gas meter

By using NB Internet of Things ultrasonic gas meters in gas measurement, combined with technologies such as timeline statistics and pipeline topology analysis, dynamic compensation of gas meters is achieved, solving real-time monitoring and error problems in traditional gas measurement technology, and improving measurement efficiency. accuracy and automation levels.

CN118149939BActive Publication Date: 2024-08-23ZENNER METERING TECH (SHANGHAI) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410581467.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-11
Publication Date
2024-08-23
Estimated Expiration
2044-05-11

AI Technical Summary

Technical Problem

Traditional gas measurement technology is difficult to achieve real-time monitoring and automation, and is easily affected by external environmental factors, leading to measurement errors and affecting measurement accuracy.

Method used

An ultrasonic gas meter based on NB Internet of Things is used to dynamically compensate through timeline statistics, pipeline topology analysis, flow pressure data analysis, vibration and temperature data analysis, noise analysis, and graded correction instructions to ensure measurement accuracy.

Benefits of technology

It achieves multi-level dynamic compensation and calibration, improves the measurement accuracy and system stability of gas meters, reduces manual intervention, improves automation levels and remote monitoring capabilities, and reduces operating costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118149939B
    Figure CN118149939B
Patent Text Reader

Abstract

The present invention discloses a dynamic metering method and system based on an NB Internet of Things ultrasonic gas meter, and relates to the technical field of dynamic metering of gas meters. The system can monitor the gas flow in real time by continuously collecting data at set time intervals. This continuity helps to capture flow changes and avoid data gaps. If the first flow difference Qc exceeds the abnormal threshold, the system automatically triggers the correction and compensation process to detect the impact of the external or internal environment on the gas meter. Through hierarchical correction instructions, the dynamic metering system of ultrasonic gas meters based on the NB Internet of Things realizes multi-level dynamic compensation and calibration. This hierarchical structure can provide precise compensation for different error sources to ensure the measurement accuracy of the gas meter. The first correction instruction, the second correction instruction and the third correction instruction ensure the stability and flexibility of the system from the aspects of flow and pressure analysis, environmental factor analysis and noise compensation, and improve the overall efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of dynamic metering of gas meters, and in particular to a dynamic metering method and system based on an NB Internet of Things ultrasonic gas meter. Background Art

[0002] The gas industry is an important area related to public safety and resource management. Accurate metering not only directly affects the revenue of gas companies and the fairness of consumption for users, but also affects the operational efficiency and safety of the entire system. In order to ensure the normal operation of this area, the accuracy and reliability of gas metering are crucial. However, with the increase in gas demand and the improvement of users' expectations for service quality, traditional gas metering technology has exposed more and more limitations.

[0003] Traditional gas metering usually relies on mechanical meters and some electronic meters. These traditional devices are simple in design, but they rely on manual meter reading or simple electronic collection methods, making it difficult to monitor gas flow in real time. This measurement method is characterized by the need for regular manual intervention and the inability to achieve automation or remote control. Traditional mechanical meters and electronic meters usually obtain data through manual meter reading. This method is not only inefficient, but also prone to human errors. In the gas industry, dynamic metering is an important technology to ensure the accuracy of gas meters. Ultrasonic gas meters use ultrasonic technology to measure gas flow and are generally more accurate than traditional mechanical meters. However, ultrasonic technology is easily affected by external environmental factors such as pressure, vibration, and noise. These factors may cause measurement errors, thereby affecting metering accuracy.

[0004] NB Internet of Things (Narrowband Internet of Things) is a low-power, wide-area coverage IoT technology suitable for remote monitoring and data transmission. Combining NB Internet of Things with ultrasonic gas meters can achieve remote monitoring and real-time data analysis, providing new possibilities for dynamic metering. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention provides a dynamic metering method and system based on NB Internet of Things ultrasonic gas meter to solve the problems mentioned in the background technology.

[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: a dynamic metering method based on NB Internet of Things ultrasonic gas meter, comprising:

[0007] Step 1: Gas meter error trend analysis: Through the time axis statistical method, the original flow values ​​Q displayed by several ultrasonic gas meters are collected at uniform time axis intervals, and the first flow difference Qc is constructed. If the first flow difference Qc is higher than the abnormal threshold, it means that the external or internal environment needs to be detected to correct and compensate the ultrasonic gas meter;

[0008] Step 2: Pipeline topology analysis: Collect the pipeline information and corresponding map information connected to the ultrasonic gas meter, establish a three-dimensional map model, draw the topological structure of the pipeline according to the pipeline information, mark the gas meter and the straight pipe section, elbow, valve, branch pipe and joint area in the pipeline, identify the location of several straight pipe sections in the topological map, install a flow sensor and a pressure sensor in each straight pipe section, and collect and obtain the real-time pressure value Yl of n straight pipe sections through the pressure sensor when the gas meter is working;

[0009] Step 3: Flow pressure data analysis: After several consecutive monitoring cycles, calculate the minimum pressure difference Yc in the straight pipe section min and the maximum pressure difference Yc max ; Set the minimum pressure difference Yc min Indicates that this area has the smallest fluctuation and is the best detection point. Set it as the first detection point and set the maximum pressure difference Yc max Mark it as the second detection point, construct the first pressure influence coefficient YLx, and judge the first pressure influence coefficient YLx. When the first pressure influence coefficient YLx is higher than the first threshold, issue a first correction instruction;

[0010] Step 4: vibration and temperature data analysis: after the first correction instruction is executed, if the first flow difference Qc is still higher than the abnormal threshold, a second sensor is installed at the first detection point and the second detection point to collect and obtain the real-time vibration value Zd, the real-time humidity value Sd and the real-time temperature value Wd, and construct a second environmental impact coefficient Dy. When the second environmental impact coefficient Dy is greater than the second threshold, a second correction instruction is issued;

[0011] Step 5, noise analysis: After the second correction instruction is executed, if the first flow difference Qc is still higher than the abnormal threshold, install a third sensor in the ultrasonic gas meter area to collect real-time noise data, and establish a noise interference model to analyze the trend of the impact of real-time noise data on ultrasonic waveform distortion, and generate a third compensation plan based on the changes in real-time noise data. If it does not meet expectations, use the signal filtering method and repeat steps 3 to 4 until the first flow difference Qc is lower than the abnormal threshold.

[0012] Preferably, the step 1 comprises:

[0013] S11. Select the collection interval of the time axis, which includes minutes and hours, and adjust it according to the characteristics of gas flow changes; collect historical flow data, analyze the time periods of peak and off-peak periods, and set the collection to be in minute intervals during the peak period and in hour intervals during the off-peak period;

[0014] S12, obtain real-time flow readings from the gas meter, and continuously collect them at set time intervals, record the collected original flow values ​​and timestamps, and form a data sequence: Q0, Q1, Q2, ..., Q n ;

[0015] S13, the first flow difference Qc represents the flow change between adjacent timestamps, Qc=Q i+1 -Q i ;

[0016] S14. Calculate the flow difference between every two adjacent timestamps according to the collected flow data to obtain a flow difference sequence;

[0017] S15. Determine the flow difference range under qualified conditions according to historical data or industry standards and set an abnormal threshold;

[0018] S16. Observe whether there is a specific error trend through the flow difference sequence on the time axis. If the first flow difference Qc exceeds the abnormal threshold, it means that it is abnormal, which means that it is necessary to detect the external or internal environment to correct and compensate the ultrasonic gas meter to eliminate the error;

[0019] If the first flow difference Qc does not exceed the abnormal threshold, it means that it is qualified and no calibration optimization is required.

[0020] Preferably, the step 2 comprises:

[0021] S21. Collect the information of the transmission pipeline connected to the ultrasonic gas meter, including the length, diameter, material and layout of the transmission pipeline, and obtain the corresponding geographical location map through the GIS geographic information system; identify key nodes in the transmission pipeline information, including gas meters, straight pipe sections, elbows, valves, branches and joint areas;

[0022] S22. Use 3D modeling software or GIS tools to create a 3D map model of the pipeline; the 3D map model includes the spatial layout of the pipeline and the locations of key nodes; in the 3D map model, draw the topological structure of the pipeline, ensuring that key locations are marked, including straight pipe sections, elbows, valves, branches and joint areas;

[0023] S23. According to the pipeline topology, identify the positions of several straight pipe sections; install pressure sensors at the identified straight pipe section positions, set the middle part of the straight pipe section, set the length of 5 to 10 times the pipe diameter before and after the pressure sensor position, and avoid being close to elbows and valves; when the gas meter is working, collect and obtain the real-time pressure value Yl of n straight pipe sections through the pressure sensor.

[0024] Preferably, the step three comprises:

[0025] S31, after several consecutive collection cycles, collect the real-time pressure value Yl in the straight pipe section, and calculate the pressure difference Yc between every two adjacent time stamps, Yc i =Yl i+1 -Yl i ; Get the pressure difference sequence:

[0026] S32. In the pressure difference value sequence, filter and obtain the minimum pressure difference value Yc min and the maximum pressure difference Yc max ;

[0027] S33, adding all the collected real-time pressure values ​​Y1 to obtain the total pressure value Sun, collecting several real-time pressure values ​​Y11, Y12, ..., Y1 m ; m represents the number of data, then the total pressure value Sun is:

[0028] Then divide the total pressure value Sun by the number of data m to get the mean pressure value

[0029] S34, according to the pressure mean Minimum pressure difference Yc min and the maximum pressure difference Yc max ; The first pressure influence coefficient YLx is generated by the following formula:

[0030]

[0031] Wherein, A represents the first correction constant.

[0032] Preferably, the step three further comprises:

[0033] S35, comparing the first pressure influence coefficient YLx with the first threshold value to determine whether a correction instruction needs to be issued; when the first pressure influence coefficient YLx> the first threshold value, it indicates that the pressure fluctuation is abnormal, and a first correction instruction is generated;

[0034] When the first pressure influence coefficient YLx ≤ the first threshold value, it means that the pressure fluctuation is qualified, indicating that no correction is required;

[0035] S36: When receiving the first correction instruction, multiply the original flow value Q by the first pressure influence coefficient YLx to obtain the pressure compensated flow, perform compensation, and obtain the first calibration flow Q. xz1 .

[0036] Preferably, the step 4 comprises:

[0037] S41, after the first correction instruction is executed, the flow difference is monitored. If the first flow difference Qc is still higher than the abnormal threshold, it indicates that there are other influencing factors and further detection is required;

[0038] S42, at the first detection point and the second detection point, representing the area with the smallest and largest pressure difference, representing the stable and unstable areas, installing a second sensor at the first detection point and the second detection point, the second sensor including a vibration sensor and a temperature and humidity sensor;

[0039] Through the vibration sensor, the real-time vibration value Zd is collected and obtained, which represents the vibration intensity or frequency;

[0040] Use temperature and humidity sensors to collect and obtain real-time humidity value Sd and real-time temperature value Wd;

[0041] S43, linearly normalize the real-time vibration value Zd, the real-time humidity value Sd, and the real-time temperature value Wd, and map the corresponding data values ​​within the interval [0,1], and generate the second environmental impact coefficient Dy by the following formula:

[0042]

[0043] in, To measure the average value of vibration in each monitoring period, To measure the average humidity during the monitoring period; is the mean value of the measured temperature during the monitoring period; α, β and γ are weight coefficients: 0<α<1, 0<β<1, 0<γ<1, and α+β+γ=1, where i=1, 2, …m, m is the number in the monitoring period, which is a positive integer greater than 1.

[0044] Preferably, the step 4 further comprises:

[0045] S44, comparing the second environmental impact coefficient Dy with the second threshold value to determine whether a correction instruction needs to be issued; when the second environmental impact coefficient Dy> the second threshold value, it indicates that the environmental impact factor is abnormal, and a second correction instruction is generated;

[0046] When the second environmental impact coefficient Dy ≤ the second threshold value, it means that the environmental impact factor is within the qualified range, indicating that no correction is required;

[0047] S45, when receiving the second correction instruction, the first calibration flow Q xz1 Multiply by the second environmental impact coefficient Dy to obtain the environmental impact compensation flow, perform compensation, and obtain the second calibration flow Q xz2 .

[0048] Preferably, the step five comprises:

[0049] S51, after executing the second correction instruction, if the first flow difference Qc is still higher than the abnormal threshold, it indicates that there is noise interference and further analysis is required;

[0050] S52. In this case, noise may cause distortion of the ultrasonic signal, thereby affecting the measurement result of the gas meter. A noise sensor is selected and installed in the ultrasonic gas meter area to collect real-time noise data, which includes noise frequency, intensity and duration.

[0051] S53, establishing a noise interference model based on the real-time noise data, after clearing the real-time noise data, removing outliers and noise standardization, inputting the real-time noise data into the noise interference model, and first calculating the sound pressure level Lp;

[0052]

[0053] Where P is the sound pressure, p0 is the reference sound pressure, which is set to 20 micropascals;

[0054] S54. Calculate the root mean square value Rms of the sound pressure:

[0055]

[0056] In the formula, p i is the ith value in the sound pressure data, k is the number of samples;

[0057] S55. Calculate the average power of the noise through the root mean square value of the sound pressure. The average power of the sound pressure is proportional to the square of the root mean square value of the sound pressure:

[0058]

[0059] where Z is the acoustic impedance, set to 415 Pascals;

[0060] S56, in calculating the average power p of the noise noise Then, calculate the signal-to-noise ratio SNR:

[0061]

[0062] In the formula, p signal is the average power of the ultrasonic signal, p noise is the average power of the noise, log 10 The logarithmic base is 10, which means that for every 10 decibel increase, the signal power ratio is equivalent to a 10-fold increase. The signal-to-noise ratio (SNR) indicates the frequency and phase changes of the ultrasonic signal caused by noise.

[0063] Preferably, the step five further comprises:

[0064] S57, a third compensation scheme includes comparing the signal-to-noise ratio SNR with a third threshold value, if the signal-to-noise ratio SNR>the third threshold value, indicating that the noise is abnormal, and generating a third correction instruction;

[0065] When the signal-to-noise ratio SNR ≤ the third threshold, it means that the noise is within the qualified range, indicating that no correction is required;

[0066] S58: When receiving the third correction instruction, the second calibration flow Q xz2 Multiply by the signal-to-noise ratio SNR to obtain the noise impact compensation flow rate, perform compensation, and obtain the third calibration flow rate Q xz3 ;

[0067] S59, if the third calibration flow Q xz3 When it does not meet expectations, use the signal filtering method and select a high-pass filter, a low-pass filter or a band-pass filter to filter the ultrasonic gas meter;

[0068] If the signal filtering method is used, steps 3 to 4 are repeated until the first flow difference Qc is lower than the abnormal threshold, indicating that the dynamic optimization is qualified.

[0069] A dynamic metering system based on NB Internet of Things ultrasonic gas meter, including:

[0070] The data acquisition module is responsible for collecting raw flow data from the ultrasonic gas meter, including flow value and timestamp;

[0071] The traffic analysis module analyzes traffic data through time axis statistics, determines the traffic change trend, calculates the traffic difference between adjacent timestamps, obtains the traffic difference sequence, and determines the first traffic difference Qc; compares the traffic difference with the abnormal threshold to determine whether correction compensation is needed;

[0072] The pipeline topology analysis module builds a 3D model of the pipeline, draws the topology, and marks key locations, such as straight pipe sections, elbows, valves, branches, and joint areas; installs flow sensors and pressure sensors in the straight pipe sections to ensure accurate sensor locations and avoid interference;

[0073] The pressure detection and analysis module collects the real-time pressure value Yl from the installed pressure sensor, calculates the pressure difference between every two adjacent time stamps, determines the minimum pressure difference and the maximum pressure difference, constructs the pressure influence coefficient YLx, compares the pressure influence coefficient YLx with the first threshold value, and determines whether it is necessary to issue a first correction instruction;

[0074] The environmental factor analysis module installs a second sensor at the first detection point and the second detection point to collect real-time vibration, humidity and temperature data and construct a second environmental impact coefficient Dy; based on the result of the second environmental impact coefficient Dy, it is determined whether a second correction instruction needs to be issued and compensation is performed;

[0075] The noise compensation and correction module installs a third sensor in the ultrasonic gas meter area to collect real-time noise data, including noise frequency, intensity and duration. Based on the real-time noise data, a noise interference model is constructed to analyze the impact of noise on the signal. Based on the signal-to-noise ratio, the noise impact compensation flow is determined, and the third correction compensation is performed on the ultrasonic gas meter.

[0076] The dynamic optimization and feedback module, after adopting the signal filtering method, repeats steps three to four to ensure that the first flow difference Qc is lower than the abnormal threshold.

[0077] The present invention provides a dynamic metering method and system based on NB Internet of Things ultrasonic gas meter. It has the following beneficial effects:

[0078] (1) Through hierarchical correction instructions, the dynamic metering system of ultrasonic gas meters based on NB IoT achieves multi-level dynamic compensation and calibration. This hierarchical structure can provide accurate compensation for different error sources to ensure the measurement accuracy of the gas meter. The first correction instruction, the second correction instruction and the third correction instruction ensure the stability and flexibility of the system from the aspects of flow and pressure analysis, environmental factor analysis and noise compensation, improve the overall efficiency, and ultimately provide a more efficient and reliable dynamic metering solution for the gas industry.

[0079] (2) By establishing a three-dimensional map model of the transmission pipeline, the system can optimize the installation position of the sensor, reduce areas such as elbows and valves that may cause errors, and ensure the stability of the system. After error trend analysis, the system can automatically issue the first correction instruction, the second correction instruction, and the third correction instruction, and compensate according to real-time data. This reduces manual intervention and improves the automation level of the system. Through the NB Internet of Things, the system can achieve remote monitoring and control, reducing the need for on-site operation. This not only improves efficiency, but also reduces operating costs.

[0080] (3) By collecting information on the length, diameter, material and layout of the pipeline, and obtaining the corresponding geographic location map, the system can fully understand the characteristics of the pipeline. This comprehensive understanding helps to formulate a reasonable metering strategy. In the pipeline information, the system can identify key nodes such as gas meters, straight pipe sections, elbows, valves, branches and joints. This identification helps to determine the best installation location for the sensor and ensure the accuracy of data collection. Using 3D modeling software or GIS tools, the system can build a 3D map model of the pipeline. This model provides the spatial layout of the pipeline and the location of key nodes, helping to visualize the structure of the entire pipeline. When installing the pressure sensor, the system selects the middle part of the straight pipe section and ensures a length of 5 to 10 times the pipe diameter before and after. This setting can avoid areas that may cause interference such as elbows and valves, ensuring the stability of data collection. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] Figure 1 This is a schematic diagram of the steps of a dynamic metering method based on an NB Internet of Things ultrasonic gas meter according to the present invention;

[0082] Figure 2 This is a schematic diagram of the flow chart of a dynamic metering system based on an NB Internet of Things ultrasonic gas meter according to the present invention. DETAILED DESCRIPTION

[0083] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0084] Example 1

[0085] See also Figure 1 The present invention provides a dynamic metering method based on NB Internet of Things ultrasonic gas meter, comprising:

[0086] Step 1: Gas meter error trend analysis: Through the time axis statistical method, the original flow values ​​Q displayed by several ultrasonic gas meters are collected at uniform time axis intervals, and the first flow difference Qc is constructed. If the first flow difference Qc is higher than the abnormal threshold, it means that the external or internal environment needs to be detected to correct and compensate the ultrasonic gas meter;

[0087] Step 2: Pipeline topology analysis: Collect the pipeline information and corresponding map information connected to the ultrasonic gas meter, establish a three-dimensional map model, draw the topological structure of the pipeline according to the pipeline information, mark the gas meter and the straight pipe section, elbow, valve, branch pipe and joint area in the pipeline, identify the location of several straight pipe sections in the topological map, install a flow sensor and a pressure sensor in each straight pipe section, and collect and obtain the real-time pressure value Yl of n straight pipe sections through the pressure sensor when the gas meter is working;

[0088] Step 3: Flow pressure data analysis: After several consecutive monitoring cycles, calculate the minimum pressure difference Yc in the straight pipe section min and the maximum pressure difference Yc max ; Set the minimum pressure difference Yc min Indicates that this area has the smallest fluctuation and is the best detection point. Set it as the first detection point and set the maximum pressure difference Yc max Mark it as the second detection point, construct the first pressure influence coefficient YLx, and judge the first pressure influence coefficient YLx. When the first pressure influence coefficient YLx is higher than the first threshold, issue a first correction instruction;

[0089] Step 4: vibration and temperature data analysis: after the first correction instruction is executed, if the first flow difference Qc is still higher than the abnormal threshold, a second sensor is installed at the first detection point and the second detection point to collect and obtain the real-time vibration value Zd, the real-time humidity value Sd and the real-time temperature value Wd, and construct a second environmental impact coefficient Dy. When the second environmental impact coefficient Dy is greater than the second threshold, a second correction instruction is issued;

[0090] Step 5, noise analysis: After the second correction instruction is executed, if the first flow difference Qc is still higher than the abnormal threshold, install a third sensor in the ultrasonic gas meter area to collect real-time noise data, and establish a noise interference model to analyze the trend of the impact of real-time noise data on ultrasonic waveform distortion, and generate a third compensation plan based on the changes in real-time noise data. If it does not meet expectations, use the signal filtering method and repeat steps 3 to 4 until the first flow difference Qc is lower than the abnormal threshold.

[0091] In this embodiment, by establishing a three-dimensional map model of the transmission pipeline, the system can optimize the installation position of the sensor, reduce areas such as elbows and valves that may cause errors, and ensure the stability of the system. After the error trend analysis, the system can automatically issue correction instructions and compensate according to real-time data. This reduces manual intervention and improves the automation level of the system. Through the NB Internet of Things, the system can achieve remote monitoring and control, reducing the need for on-site operations. This not only improves efficiency but also reduces operating costs. Through the calculation of the flow difference and the pressure influence coefficient YLx, the first correction instruction can quickly detect pressure fluctuations or abnormal flow differences. This quick response helps to correct errors in time and prevent them from further expansion. When the pressure influence coefficient is higher than the first threshold, the system automatically generates the first correction instruction. This automation capability reduces manual intervention and improves the flexibility and efficiency of the system. The first correction instruction obtains the first calibration flow Q by compensating for the original flow value. xz1 , ensuring the accuracy of the system at the basic pressure and flow level. This is the basis of dynamic compensation and ensures the stability of the system. Through the calculation of the second environmental impact coefficient Dy, the second correction instruction can identify anomalies caused by environmental factors. This comprehensive analysis capability ensures the flexibility and reliability of the system. When the second environmental impact coefficient is higher than the second threshold, the system generates a second correction instruction to trigger the environmental compensation process. This compensation can ensure that the impact of environmental factors on flow measurement is minimized. Through the second correction instruction, the system can ensure the measurement accuracy of the gas meter when environmental factors such as vibration, humidity and temperature change. The third correction instruction determines the degree of noise interference by calculating the signal-to-noise ratio SNR. This instruction can flexibly adjust the compensation scheme to ensure the stability of the signal. When the signal-to-noise ratio is higher than the third threshold, the system generates a third correction instruction to compensate for the noise impact. If the compensation does not meet expectations, the system can use signal filtering to ensure the stability of the ultrasonic signal. This multi-level noise compensation ensures the accuracy of the system.

[0092] In embodiment 2, the step 1 comprises:

[0093] S11. Select the collection interval of the time axis, which includes minutes and hours, and adjust it according to the characteristics of gas flow changes; collect historical flow data, analyze the time periods of peak and off-peak periods, and set the collection to be in minute intervals during the peak period and in hour intervals during the off-peak period;

[0094] S12, obtain real-time flow readings from the gas meter, and continuously collect them at set time intervals, record the collected original flow values ​​and timestamps, and form a data sequence: Q0, Q1, Q2, ..., Q n ;

[0095] S13, the first flow difference Qc represents the flow change between adjacent timestamps, Qc=Q i+1 -Q i ;

[0096] S14. Calculate the flow difference between every two adjacent timestamps according to the collected flow data to obtain a flow difference sequence;

[0097] S15. Determine the flow difference range under qualified conditions according to historical data or industry standards and set an abnormal threshold;

[0098] S16. Observe whether there is a specific error trend through the flow difference sequence on the time axis. If the first flow difference Qc exceeds the abnormal threshold, it means that it is abnormal, which means that it is necessary to detect the external or internal environment to correct and compensate the ultrasonic gas meter to eliminate the error;

[0099] If the first flow difference Qc does not exceed the abnormal threshold, it means that it is qualified and no calibration optimization is required.

[0100] In this embodiment, the system can monitor the gas flow in real time by continuously collecting data at set time intervals. This continuity helps to capture flow changes and avoid data gaps. The system selects a suitable collection interval based on the characteristics of gas flow changes to ensure that sufficient data can be obtained during peak and off-peak periods. This flexibility helps to optimize data collection and improve system efficiency. The system automatically obtains real-time flow readings from ultrasonic gas meters, reducing errors caused by manual meter reading. This helps to improve the accuracy of data. By calculating the flow difference, the system can determine the flow change between adjacent timestamps and quickly discover anomalies. This helps to detect and correct errors in a timely manner and ensure the accuracy of the gas meter. According to historical data and industry standards, the abnormal threshold of the flow difference is set to clarify the standard for error judgment. Threshold setting helps to automate judgment and decision-making and ensure the accuracy and stability of the system. Through the flow difference sequence on the time axis, the system can observe the trend of error changes and determine whether there is a specific error pattern. This analysis can help to discover potential problems and take corresponding compensation measures. If the first flow difference Qc exceeds the abnormal threshold, the system automatically triggers the correction compensation process to detect the impact of the external or internal environment on the gas meter. This dynamic adjustment and compensation capability ensures the flexibility of the system.

[0101] Embodiment 2: This embodiment is an explanation of Embodiment 1. Specifically, the step 2 includes:

[0102] S21. Collect the information of the transmission pipeline connected to the ultrasonic gas meter, including the length, diameter, material and layout of the transmission pipeline, and obtain the corresponding geographical location map through the GIS geographic information system; identify key nodes in the transmission pipeline information, including gas meters, straight pipe sections, elbows, valves, branches and joint areas;

[0103] S22. Use 3D modeling software or GIS tools to create a 3D map model of the pipeline; the 3D map model includes the spatial layout of the pipeline and the locations of key nodes; in the 3D map model, draw the topological structure of the pipeline, ensuring that key locations are marked, including straight pipe sections, elbows, valves, branches and joint areas;

[0104] S23. According to the pipeline topology, identify the positions of several straight pipe sections; install pressure sensors at the identified straight pipe section positions, set the middle part of the straight pipe section, set the length of 5 to 10 times the pipe diameter before and after the pressure sensor position, and avoid being close to elbows and valves; when the gas meter is working, collect and obtain the real-time pressure value Yl of n straight pipe sections through the pressure sensor.

[0105] In this embodiment, by collecting information such as the length, diameter, material and layout of the pipeline, and obtaining the corresponding geographical location map, the system can fully grasp the characteristics of the pipeline. This comprehensive understanding helps to formulate a reasonable metering strategy. In the pipeline information, the system can identify key nodes such as gas meters, straight pipe sections, elbows, valves, branches and joints. This identification helps to determine the best installation location for the sensor and ensure the accuracy of data collection. Using 3D modeling software or GIS tools, the system can build a 3D map model of the pipeline. This model provides the spatial layout of the pipeline and the location of key nodes, helping to visualize the structure of the entire pipeline. When installing the pressure sensor, the system selects the middle part of the straight pipe section and ensures a length of 5 to 10 times the diameter of the pipeline before and after. This setting can avoid areas that may cause interference such as elbows and valves, ensuring the stability of data collection.

[0106] Embodiment 3: This embodiment is an explanation of Embodiment 2. Specifically, the step 3 includes:

[0107] S31, after several consecutive collection cycles, collect the real-time pressure value Yl in the straight pipe section, and calculate the pressure difference Yc between every two adjacent time stamps, Yc i =Yl i+1 -Yl i ; Get the pressure difference sequence:

[0108] S32. In the pressure difference value sequence, filter and obtain the minimum pressure difference value Yc min and the maximum pressure difference Yc max ;

[0109] S33, adding all the collected real-time pressure values ​​Y1 to obtain the total pressure value Sun, collecting several real-time pressure values ​​Y11, Y12, ..., Y1 m ; m represents the number of data, then the total pressure value Sun is:

[0110] Then divide the total pressure value Sun by the number of data m to get the mean pressure value

[0111] S34, according to the pressure mean Minimum pressure difference Yc min and the maximum pressure difference Yc max ; The first pressure influence coefficient YLx is generated by the following formula:

[0112]

[0113] Wherein, A represents the first correction constant.

[0114] S35, comparing the first pressure influence coefficient YLx with the first threshold value to determine whether a correction instruction needs to be issued; when the first pressure influence coefficient YLx> the first threshold value, it indicates that the pressure fluctuation is abnormal, and a first correction instruction is generated;

[0115] When the first pressure influence coefficient YLx ≤ the first threshold value, it means that the pressure fluctuation is qualified, indicating that no correction is required;

[0116] S36: When receiving the first correction instruction, multiply the original flow value Q by the first pressure influence coefficient YLx to obtain the pressure compensated flow, perform compensation, and obtain the first calibration flow Q. xz1 .

[0117] In this embodiment, after multiple acquisition cycles, the system can obtain real-time pressure data in the straight pipe section. This continuous acquisition method ensures the stability of the pressure data and helps to capture dynamic changes. By calculating the pressure difference between every two adjacent timestamps, the system can construct a pressure difference sequence. This serialized data helps to analyze the changing trend of pressure. In the pressure difference sequence, the minimum pressure difference Ycmin and the maximum pressure difference Ycmax are screened and obtained. These two values ​​can reflect the range of pressure fluctuations and help identify the best and worst detection points. By adding all real-time pressure values ​​and dividing them by the number of data, the system can obtain the pressure mean. This mean calculation method helps to judge the stability of the overall pressure and reduce the impact of extreme values. Based on the pressure mean, the minimum pressure difference and the maximum pressure difference, the system can construct a first pressure influence coefficient YLx. The first pressure influence coefficient YLx is used to judge the degree of pressure fluctuation and provide a basis for subsequent corrections. After receiving the first correction instruction, the system can compensate the original flow value according to the first pressure influence coefficient to obtain the first calibration flow Q xz1 This dynamic compensation mechanism helps ensure accurate flow measurement.

[0118] Embodiment 4: This embodiment is an explanation of Embodiment 1. Specifically, the step 4 includes:

[0119] S41, after the first correction instruction is executed, the flow difference is monitored. If the first flow difference Qc is still higher than the abnormal threshold, it indicates that there are other influencing factors and further detection is required;

[0120] S42, at the first detection point and the second detection point, representing the area with the smallest and largest pressure difference, representing the stable and unstable areas, installing a second sensor at the first detection point and the second detection point, the second sensor including a vibration sensor and a temperature and humidity sensor;

[0121] Through the vibration sensor, the real-time vibration value Zd is collected and obtained, which represents the vibration intensity or frequency;

[0122] Use temperature and humidity sensors to collect and obtain real-time humidity value Sd and real-time temperature value Wd;

[0123] S43, linearly normalize the real-time vibration value Zd, the real-time humidity value Sd, and the real-time temperature value Wd, and map the corresponding data values ​​within the interval [0,1], and generate the second environmental impact coefficient Dy by the following formula:

[0124]

[0125] in, To measure the average value of vibration in each monitoring period, To measure the average humidity during the monitoring period; is the mean value of the measured temperature during the monitoring period; α, β and γ are weight coefficients: 0<α<1, 0<β<1, 0<γ<1, and α+β+γ=1, where i=1, 2, …m, m is the number in the monitoring period, which is a positive integer greater than 1.

[0126] S44, comparing the second environmental impact coefficient Dy with the second threshold value to determine whether a correction instruction needs to be issued; when the second environmental impact coefficient Dy> the second threshold value, it indicates that the environmental impact factor is abnormal, and a second correction instruction is generated;

[0127] When the second environmental impact coefficient Dy ≤ the second threshold value, it means that the environmental impact factor is within the qualified range, indicating that no correction is required;

[0128] S45, when receiving the second correction instruction, the first calibration flow Q xz1 Multiply by the second environmental impact coefficient Dy to obtain the environmental impact compensation flow, perform compensation, and obtain the second calibration flow Q xz2 .

[0129] In this embodiment, after the first correction instruction is executed, the system continues to monitor the flow difference. If the first flow difference Qc is still higher than the abnormal threshold, it means that there may be other influencing factors. This continuous monitoring helps to detect potential problems in a timely manner and ensure the stability of the system. By monitoring the flow difference, the system can determine whether the pressure compensation is sufficient. If the compensation is insufficient, it may be necessary to further detect the impact of the external or internal environment on the gas meter. Vibration sensors and temperature and humidity sensors are installed at the first detection point and the second detection point, and the system can collect vibration values, humidity values ​​and temperature values. This multi-sensor monitoring helps to comprehensively analyze the impact of environmental factors. By calculating the mean of vibration, humidity and temperature, and considering the weight coefficient, the system can generate a second environmental impact coefficient Dy. This coefficient can comprehensively reflect the impact of environmental factors on the gas meter. The second environmental impact coefficient is compared with the second threshold. If Dy is higher than the threshold, it means that the environmental impact is abnormal, and the system will generate a second correction instruction. This mechanism ensures quick judgment and timely compensation. When the second correction instruction is received, the system will calibrate the first flow Q xz1 Multiply it by the second environmental impact coefficient Dy to obtain the environmental impact compensation flow. In this way, the system can adjust the flow compensation to ensure the accuracy of the measurement results.

[0130] Example 5: This example is an explanation of Example 1. Specifically, step 5 includes:

[0131] S51, after executing the second correction instruction, if the first flow difference Qc is still higher than the abnormal threshold, it indicates that there is noise interference and further analysis is required;

[0132] S52. In this case, noise may cause distortion of the ultrasonic signal, thereby affecting the measurement result of the gas meter. A noise sensor is selected and installed in the ultrasonic gas meter area to collect real-time noise data, which includes noise frequency, intensity and duration.

[0133] S53, establishing a noise interference model based on the real-time noise data, after clearing the real-time noise data, removing outliers and noise standardization, inputting the real-time noise data into the noise interference model, and first calculating the sound pressure level Lp;

[0134]

[0135] Where P is the sound pressure, p0 is the reference sound pressure, which is set to 20 micropascals;

[0136] S54. Calculate the root mean square value Rms of the sound pressure:

[0137]

[0138] In the formula, p i is the ith value in the sound pressure data, k is the number of samples;

[0139] S55. Calculate the average power of the noise through the root mean square value of the sound pressure. The average power of the sound pressure is proportional to the square of the root mean square value of the sound pressure:

[0140]

[0141] where Z is the acoustic impedance, set to 415 Pascals;

[0142] S56, in calculating the average power p of the noise noise Then, calculate the signal-to-noise ratio SNR:

[0143]

[0144] In the formula, p signal is the average power of the ultrasonic signal, p noise is the average power of the noise, log 10 The logarithmic base is 10, which means that for every 10 decibel increase, the signal power ratio is equivalent to a 10-fold increase. The signal-to-noise ratio (SNR) indicates the frequency and phase changes of the ultrasonic signal caused by noise.

[0145] The step five also includes:

[0146] S57, a third compensation scheme includes comparing the signal-to-noise ratio SNR with a third threshold value, if the signal-to-noise ratio SNR>the third threshold value, indicating that the noise is abnormal, and generating a third correction instruction;

[0147] When the signal-to-noise ratio SNR ≤ the third threshold, it means that the noise is within the qualified range, indicating that no correction is required;

[0148] S58: When receiving the third correction instruction, the second calibration flow Q xz2 Multiply by the signal-to-noise ratio SNR to obtain the noise impact compensation flow rate, perform compensation, and obtain the third calibration flow rate Q xz3 ;

[0149] S59, if the third calibration flow Q xz3 When it does not meet expectations, use the signal filtering method and select a high-pass filter, a low-pass filter or a band-pass filter to filter the ultrasonic gas meter;

[0150] If the signal filtering method is used, steps 3 to 4 are repeated until the first flow difference Qc is lower than the abnormal threshold, indicating that the dynamic optimization is qualified.

[0151] In this embodiment, after executing the second correction instruction, if the first flow difference Qc is still higher than the abnormal threshold, the system believes that there may be noise interference and prompts for further analysis. This mechanism ensures that the impact of noise can be identified in a timely manner. By collecting real-time noise data, the system can establish a noise interference model to analyze the impact of noise on ultrasonic signals. This model provides data support for subsequent compensation and correction. By calculating the root mean square value of the sound pressure and the average power of the noise, the system can accurately calculate the signal-to-noise ratio SNR. The signal-to-noise ratio reflects the relative strength of the ultrasonic signal relative to the noise, and can judge the degree of noise interference. Based on the comparison of the signal-to-noise ratio with the third threshold, the system can determine whether the noise is abnormal. If the signal-to-noise ratio is higher than the threshold, it indicates that the noise interference is large and compensation is required; otherwise, it means that the noise is within the qualified range. This judgment mechanism ensures the accuracy of compensation. After receiving the third correction instruction, the system will adjust the second calibration flow Q xz2 Multiply by the signal-to-noise ratio SNR to obtain the noise compensation flow rate. This compensation mechanism ensures that the system can adapt to noise interference and maintain metering accuracy. xz3If it does not meet expectations, the system can select signal filtering methods, including high-pass filters, low-pass filters, and band-pass filters. This flexible signal processing method helps to eliminate noise interference and ensure the stability of ultrasonic signals. Through noise compensation, the system can reduce the impact of noise on ultrasonic signals and ensure the accuracy of flow measurement. This step helps to maintain the reliability of the system. Through signal filtering, the system can effectively reduce the interference of noise on ultrasonic signals and ensure the integrity of the signal. This ability to reduce noise interference helps to improve the stability of the system. After the signal filtering method, if the first flow difference Qc is still higher than the abnormal threshold, the system can repeat steps three to four to ensure dynamic optimization. This iterative adjustment process helps to continuously improve and ensure the reliability of the system in long-term operation. Through multiple iterations, the system can ensure that the first flow difference is lower than the abnormal threshold and reaches a stable state. This dynamic optimization mechanism helps to maintain the accuracy and stability of the system.

[0152] Example 6, please refer to Figure 2 , a dynamic metering system based on NB Internet of Things ultrasonic gas meter, including,

[0153] The data acquisition module is responsible for collecting raw flow data from the ultrasonic gas meter, including flow value and timestamp;

[0154] The traffic analysis module analyzes traffic data through time axis statistics, determines the traffic change trend, calculates the traffic difference between adjacent timestamps, obtains the traffic difference sequence, and determines the first traffic difference Qc; compares the traffic difference with the abnormal threshold to determine whether correction compensation is needed;

[0155] The pipeline topology analysis module builds a 3D model of the pipeline, draws the topology, and marks key locations, such as straight pipe sections, elbows, valves, branches, and joint areas; installs flow sensors and pressure sensors in the straight pipe sections to ensure accurate sensor locations and avoid interference;

[0156] The pressure detection and analysis module collects the real-time pressure value Yl from the installed pressure sensor, calculates the pressure difference between every two adjacent time stamps, determines the minimum pressure difference and the maximum pressure difference, constructs the pressure influence coefficient YLx, compares the pressure influence coefficient YLx with the first threshold value, and determines whether it is necessary to issue a first correction instruction;

[0157] The environmental factor analysis module installs a second sensor at the first detection point and the second detection point to collect real-time vibration, humidity and temperature data and construct a second environmental impact coefficient Dy; based on the result of the second environmental impact coefficient Dy, it is determined whether a second correction instruction needs to be issued and compensation is performed;

[0158] The noise compensation and correction module installs a third sensor in the ultrasonic gas meter area to collect real-time noise data, including noise frequency, intensity and duration. Based on the real-time noise data, a noise interference model is constructed to analyze the impact of noise on the signal. Based on the signal-to-noise ratio, the noise impact compensation flow is determined, and the third correction compensation is performed on the ultrasonic gas meter.

[0159] The dynamic optimization and feedback module, after adopting the signal filtering method, repeats steps three to four to ensure that the first flow difference Qc is lower than the abnormal threshold.

[0160] In this embodiment, the dynamic metering system based on the NB Internet of Things ultrasonic gas meter realizes the complete process management from data collection to dynamic compensation. The system ensures the accuracy and stability of gas meter measurement through real-time monitoring, dynamic adjustment and multi-sensor fusion. Through flexible pipeline topology, environmental factor analysis, noise interference model and dynamic optimization mechanism, the system can cope with various complex environments and provide efficient and reliable metering solutions. Ultimately, this system brings a higher level of automation, stronger anti-interference ability and more efficient operation mode to the gas industry.

[0161] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A dynamic metering method based on NB Internet of Things ultrasonic gas meter, characterized in that: include, Step 1: Gas meter error trend analysis: Through the time axis statistical method, the original flow values ​​Q displayed by several ultrasonic gas meters are collected at uniform time axis intervals, and the first flow difference Qc is constructed. If the first flow difference Qc is higher than the abnormal threshold, it means that the external or internal environment needs to be detected to correct and compensate the ultrasonic gas meter; Step 2: Pipeline topology analysis: Collect the pipeline information and corresponding map information connected to the ultrasonic gas meter, establish a three-dimensional map model, draw the topological structure of the pipeline according to the pipeline information, mark the gas meter and the straight pipe section, elbow, valve, branch pipe and joint area in the pipeline, identify the location of several straight pipe sections in the topological map, install a flow sensor and a pressure sensor in each straight pipe section, and collect and obtain the real-time pressure value Yl of n straight pipe sections through the pressure sensor when the gas meter is working; Step 3: Flow pressure data analysis: After several consecutive monitoring cycles, calculate the minimum pressure difference Yc in the straight pipe section min and the maximum pressure difference Yc max ; Set the minimum pressure difference Yc min Indicates that this area has the smallest fluctuation and is the best detection point. Set it as the first detection point and set the maximum pressure difference Yc max Mark it as the second detection point, construct the first pressure influence coefficient YLx, and judge the first pressure influence coefficient YLx. When the first pressure influence coefficient YLx is higher than the first threshold, issue a first correction instruction; Step 4: vibration and temperature data analysis: after the first correction instruction is executed, if the first flow difference Qc is still higher than the abnormal threshold, a second sensor is installed at the first detection point and the second detection point to collect and obtain the real-time vibration value Zd, the real-time humidity value Sd and the real-time temperature value Wd, and construct a second environmental impact coefficient Dy. When the second environmental impact coefficient Dy is greater than the second threshold, a second correction instruction is issued; Step 5, noise analysis: After the second correction instruction is executed, if the first flow difference Qc is still higher than the abnormal threshold, install a third sensor in the ultrasonic gas meter area to collect real-time noise data, and establish a noise interference model to analyze the trend of the impact of real-time noise data on ultrasonic waveform distortion, and generate a third compensation plan based on the changes in real-time noise data. If it does not meet expectations, use the signal filtering method and repeat steps 3 to 4 until the first flow difference Qc is lower than the abnormal threshold.

2. According to claim 1, a dynamic metering method based on NB Internet of Things ultrasonic gas meter is characterized in that: The step one comprises: S11. Select the collection interval of the time axis, which includes minutes and hours, and adjust it according to the characteristics of gas flow changes; collect historical flow data, analyze the time periods of peak and off-peak periods, and set the collection to be in minute intervals during the peak period and in hour intervals during the off-peak period; S12, obtain real-time flow readings from the gas meter, and continuously collect them at set time intervals, record the collected original flow values ​​and timestamps, and form a data sequence: Q0, Q1, Q2, ..., Q n ; S13, the first flow difference Qc represents the flow change between adjacent timestamps, Qc=Q i+1 -Q i ; S14. Calculate the flow difference between every two adjacent timestamps according to the collected flow data to obtain a flow difference sequence; S15. Determine the flow difference range under qualified conditions according to historical data or industry standards and set an abnormal threshold; S16. Observe whether there is a specific error trend through the flow difference sequence on the time axis. If the first flow difference Qc exceeds the abnormal threshold, it means that it is abnormal, which means that it is necessary to detect the external or internal environment to correct and compensate the ultrasonic gas meter to eliminate the error; If the first flow difference Qc does not exceed the abnormal threshold, it means that it is qualified and no calibration optimization is required.

3. According to claim 1, a dynamic metering method based on NB Internet of Things ultrasonic gas meter is characterized in that: The second step comprises: S21. Collect the information of the transmission pipeline connected to the ultrasonic gas meter, including the length, diameter, material and layout of the transmission pipeline, and obtain the corresponding geographical location map through the GIS geographic information system; identify key nodes in the transmission pipeline information, including gas meters, straight pipe sections, elbows, valves, branches and joint areas; S22. Use 3D modeling software or GIS tools to create a 3D map model of the pipeline; the 3D map model includes the spatial layout of the pipeline and the locations of key nodes; in the 3D map model, draw the topological structure of the pipeline, ensuring that key locations are marked, including straight pipe sections, elbows, valves, branches and joint areas; S23. According to the pipeline topology, identify the positions of several straight pipe sections; install pressure sensors at the identified straight pipe section positions, set the middle part of the straight pipe section, set the length of 5 to 10 times the pipe diameter before and after the pressure sensor position, and avoid being close to elbows and valves; when the gas meter is working, collect and obtain the real-time pressure value Yl of n straight pipe sections through the pressure sensor.

4. According to claim 1, a dynamic metering method based on NB Internet of Things ultrasonic gas meter is characterized in that: The step three comprises: S31, after several consecutive collection cycles, collect the real-time pressure value Yl in the straight pipe section, and calculate the pressure difference Yc between every two adjacent time stamps, Yc i =Yl i+1 -Yl i ; Get the pressure difference sequence: S32. In the pressure difference value sequence, filter and obtain the minimum pressure difference value Yc min and the maximum pressure difference Yc max ; S33, adding all the collected real-time pressure values ​​Y1 to obtain the total pressure value Sun, collecting several real-time pressure values ​​Y11, Y12, ..., Y1 m ; m represents the number of data, then the total pressure value Sun is: Then divide the total pressure value Sun by the number of data m to get the mean pressure value S34, according to the pressure mean Minimum pressure difference Yc min and the maximum pressure difference Yc max ; The first pressure influence coefficient YLx is generated by the following formula: Wherein, A represents the first correction constant.

5. According to claim 4, a dynamic metering method based on NB Internet of Things ultrasonic gas meter is characterized in that: The step three also includes: S35, comparing the first pressure influence coefficient YLx with the first threshold value to determine whether a correction instruction needs to be issued; when the first pressure influence coefficient YLx> the first threshold value, it indicates that the pressure fluctuation is abnormal, and a first correction instruction is generated; When the first pressure influence coefficient YLx ≤ the first threshold value, it means that the pressure fluctuation is qualified, indicating that no correction is required; S36: When receiving the first correction instruction, multiply the original flow value Q by the first pressure influence coefficient YLx to obtain the pressure compensated flow, perform compensation, and obtain the first calibration flow Q. xz1 .

6. A dynamic metering method based on NB Internet of Things ultrasonic gas meter according to claim 5, characterized in that: The fourth step comprises: S41, after the first correction instruction is executed, the flow difference is monitored. If the first flow difference Qc is still higher than the abnormal threshold, it indicates that there are other influencing factors and further detection is required; S42, at the first detection point and the second detection point, representing the area with the smallest and largest pressure difference, representing the stable and unstable areas, installing a second sensor at the first detection point and the second detection point, the second sensor including a vibration sensor and a temperature and humidity sensor; Through the vibration sensor, the real-time vibration value Zd is collected and obtained, which represents the vibration intensity or frequency; Use temperature and humidity sensors to collect and obtain real-time humidity value Sd and real-time temperature value Wd; S43, linearly normalize the real-time vibration value Zd, the real-time humidity value Sd, and the real-time temperature value Wd, and map the corresponding data values ​​within the interval [0,1], and generate the second environmental impact coefficient Dy by the following formula: in, To measure the average value of vibration in each monitoring period, To measure the average humidity during the monitoring period; is the mean value of the measured temperature during the monitoring period; α, β and γ are weight coefficients: 0<α<1, 0<β<1, 0<γ<1, and α+β+γ=1, where i=1, 2, …m, m is the number in the monitoring period, which is a positive integer greater than 1.

7. A dynamic metering method based on NB Internet of Things ultrasonic gas meter according to claim 6, characterized in that: The step 4 also includes: S44, comparing the second environmental impact coefficient Dy with the second threshold value to determine whether a correction instruction needs to be issued; when the second environmental impact coefficient Dy> the second threshold value, it indicates that the environmental impact factor is abnormal, and a second correction instruction is generated; When the second environmental impact coefficient Dy ≤ the second threshold value, it means that the environmental impact factor is within the qualified range, indicating that no correction is required; S45, when receiving the second correction instruction, the first calibration flow Q xz1 Multiply by the second environmental impact coefficient Dy to obtain the environmental impact compensation flow, perform compensation, and obtain the second calibration flow Q xz2 .

8. The dynamic metering method based on NB Internet of Things ultrasonic gas meter according to claim 7 is characterized in that: The step five comprises: S51, after executing the second correction instruction, if the first flow difference Qc is still higher than the abnormal threshold, it indicates that there is noise interference and further analysis is required; S52. In this case, noise may cause distortion of the ultrasonic signal, thereby affecting the measurement result of the gas meter. A noise sensor is selected and installed in the ultrasonic gas meter area to collect real-time noise data, which includes noise frequency, intensity and duration. S53, establishing a noise interference model based on the real-time noise data, after clearing the real-time noise data, removing outliers and noise standardization, inputting the real-time noise data into the noise interference model, and first calculating the sound pressure level Lp; Where P is the sound pressure, p0 is the reference sound pressure, which is set to 20 micropascals; S54. Calculate the root mean square value Rms of the sound pressure: In the formula, p i is the ith value in the sound pressure data, k is the number of samples; S55. Calculate the average power of the noise through the root mean square value of the sound pressure. The average power of the sound pressure is proportional to the square of the root mean square value of the sound pressure: where Z is the acoustic impedance, set to 415 Pascals; S56, in calculating the average power p of the noise noise Then, calculate the signal-to-noise ratio SNR: In the formula, p signal is the average power of the ultrasonic signal, p noise is the average power of the noise, log 10 The logarithmic base is 10, which means that for every 10 decibel increase, the signal power ratio is equivalent to a 10-fold increase. The signal-to-noise ratio (SNR) indicates the frequency and phase changes of the ultrasonic signal caused by noise.

9. A dynamic metering method based on NB Internet of Things ultrasonic gas meter according to claim 8, characterized in that: The step five also includes: S57, a third compensation scheme includes comparing the signal-to-noise ratio SNR with a third threshold value, if the signal-to-noise ratio SNR>the third threshold value, indicating that the noise is abnormal, and generating a third correction instruction; When the signal-to-noise ratio SNR ≤ the third threshold, it means that the noise is within the qualified range, indicating that no correction is required; S58: When receiving the third correction instruction, the second calibration flow Q xz2 Multiply by the signal-to-noise ratio SNR to obtain the noise impact compensation flow rate, perform compensation, and obtain the third calibration flow rate Q xz3 ; S59, if the third calibration flow Q xz3 When it does not meet expectations, use the signal filtering method and select a high-pass filter, a low-pass filter or a band-pass filter to filter the ultrasonic gas meter; If the signal filtering method is used, steps 3 to 4 are repeated until the first flow difference Qc is lower than the abnormal threshold, indicating that the dynamic optimization is qualified.

10. A dynamic metering system based on NB Internet of Things ultrasonic gas meter, applied to a dynamic metering method based on NB Internet of Things ultrasonic gas meter according to any one of claims 1 to 9, characterized in that: include, The data acquisition module is responsible for collecting raw flow data from the ultrasonic gas meter, including flow value and timestamp; The traffic analysis module analyzes the traffic data through the time axis statistics method, determines the traffic change trend, calculates the traffic difference between adjacent timestamps, obtains the traffic difference sequence, and determines the first traffic difference Qc; Compare the flow difference with the abnormal threshold to determine whether correction and compensation are needed; The pipeline topology analysis module builds a 3D model of the pipeline, draws the topology, and marks key locations, such as straight pipe sections, elbows, valves, branches, and joint areas; installs flow sensors and pressure sensors in the straight pipe sections to ensure accurate sensor locations and avoid interference; The pressure detection and analysis module collects the real-time pressure value Yl from the installed pressure sensor, calculates the pressure difference between every two adjacent time stamps, determines the minimum pressure difference and the maximum pressure difference, constructs the pressure influence coefficient YLx, compares the pressure influence coefficient YLx with the first threshold value, and determines whether it is necessary to issue a first correction instruction; Environmental factor analysis module, installing a second sensor at the first detection point and the second detection point to collect real-time vibration, humidity and temperature data and construct a second environmental impact coefficient Dy; According to the result of the second environmental impact coefficient Dy, it is determined whether a second correction instruction needs to be issued and compensation is performed; The noise compensation and correction module installs a third sensor in the ultrasonic gas meter area to collect real-time noise data, including noise frequency, intensity and duration. Based on the real-time noise data, a noise interference model is constructed to analyze the impact of noise on the signal. Based on the signal-to-noise ratio, the noise impact compensation flow is determined, and the third correction compensation is performed on the ultrasonic gas meter. The dynamic optimization and feedback module, after adopting the signal filtering method, repeats steps three to four to ensure that the first flow difference Qc is lower than the abnormal threshold.