Flow instrument instantaneous flow calculation method and metering fault evaluation method

Through the improved Seagull optimization algorithm model and comparative analysis method, the problems of incomplete data collection and inaccurate calculation of flow meters are solved, real-time monitoring and fault assessment of flow meters are realized, and calculation accuracy and automatic verification efficiency are improved.

CN118690303AInactive Publication Date: 2024-09-24HE NAN BO ZHAO DIAN ZI KE JI YOU XIAN GONG SI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410891447.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing flow meters have problems in incomplete data collection, inaccurate flow calculations, inability to monitor status in real time, lack of fault assessment and diagnosis, and cannot achieve automatic verification and adjustment.

Method used

The improved Seagull optimization algorithm model is used to process the working data of the flow meter and optimize the characteristics. The data is monitored and collected through the integrated monitoring system, and the comparative analysis method is used for fault assessment and remedial measures.

Benefits of technology

It achieves accurate calculation of instantaneous liquid flow and real-time monitoring of flow instrument status, improving the accuracy of fault assessment and the efficiency of automatic calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690303A
    Figure CN118690303A
Patent Text Reader

Abstract

The invention discloses a flow instrument instantaneous flow calculation method and a metering fault evaluation method, and relates to the field of instantaneous flow calculation and the field of fault evaluation. Comprising the steps of collecting fluid data information, processing working data of a flow instrument, monitoring the state of the flow instrument by an integrated monitoring system, constructing an improved seagull optimization algorithm model, training and adjusting the model and testing functions. The problems that in the prior art, the instantaneous flow of fluid cannot be accurately calculated, and verification and adjustment of a flow instrument are lacked after fault evaluation are solved. The invention discloses a flow instrument instantaneous flow calculation method and a metering fault evaluation method. A seagull optimization algorithm model is constructed to carry out processing and feature optimization on working data of a flow instrument; the instantaneous flow of the liquid is accurately calculated through an instantaneous flow calculation method; monitoring and collecting working data of the flow instrument through the integrated monitoring system; and evaluating the state data of the flow instrument through a comparative analysis method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of instantaneous flow calculation and fault assessment, and more specifically to a flow meter instantaneous flow calculation method and a metering fault assessment method. Background Art

[0002] With the improvement of industrial automation level, the demand for accuracy and real-time performance of flow measurement is getting higher and higher, which has prompted the development of more accurate flow meters. However, flow meters still have the following problems: incomplete data collection, inaccurate flow calculation, inability to monitor the status of flow meters in real time, lack of fault assessment and diagnosis, and inability to achieve automatic calibration.

[0003] In the prior art, the problem of incomplete data collection has been well solved, and time stamps have been added to facilitate better monitoring of flow meters, which has improved the problem of flow calculation to a certain extent. However, the instantaneous flow cannot be accurately calculated, and there is a lack of calibration and adjustment of the flow meter after fault assessment.

[0004] To solve the above problems, it is necessary to build an improved Seagull optimization algorithm model to accurately calculate the instantaneous flow rate of the liquid; an integrated monitoring system monitors and collects the working data of the flow meter; and a comparative analysis method is used to evaluate the flow meter failure and take remedial measures. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention discloses a method for calculating the instantaneous flow rate of a flow meter and a method for evaluating metering faults, and constructs a Seagull optimization algorithm model to process the working data of the flow meter and optimize the features; accurately calculates the instantaneous flow rate of the liquid through the instantaneous flow calculation method; monitors and collects the working data of the flow meter through an integrated monitoring system; and evaluates the status data of the flow meter through a comparative analysis method.

[0006] The present invention adopts the following technical solutions: A flow meter instantaneous flow calculation method and a metering fault evaluation method, comprising the following steps: Step 1: monitor and collect fluid data information through a sensor component connected to the flow meter electrical signal, the fluid data information at least includes fluid properties, flow rate, temperature, pressure, density, volume and mass, the fluid data information is transmitted to a main control module disposed in the flow meter body through a data fusion module, the main control module is connected to a computer management system through wireless data communication, and a wireless data communication interface is disposed at the end of the flow meter; Step 2: The computer management system end processes the working data of the flow meter by the flow calculation method, and classifies the fluid data information by the classification module; the classified fluid data information is stored in the flow database, and the classification module is set at the computer management system end; Step 3: Monitor and receive the physical status of the flow meter and the data information of the classification module and the main control module in real time through the monitoring system connected to the computer management system, and store the data in the flow database; Step 4: The improved Seagull optimization algorithm model is set on the computer management system end and is constructed based on the working data of the flow meter. The improved Seagull optimization algorithm model includes a data collection module, a data identification and classification module, a data search module, a data fusion module, an instantaneous flow calculation module and a control unit; the data search module performs feature optimization on the data through the improved Seagull optimization algorithm; the instantaneous flow calculation module performs calculation based on the fluid instantaneous flow calculation method; The output end of the data collection module is connected to the input end of the data identification and classification module; the output end of the data identification and classification module is connected to the input end of the data search module; the output end of the data search module is connected to the input end of the data fusion module; the output end of the data fusion module is connected to the input end of the instantaneous flow calculation module; the output end of the instantaneous flow calculation module is connected to the input end of the main control module; Step 5: Train the improved Seagull optimization algorithm model based on the working data set of the traffic database to improve the accuracy of the model; Step 6: Perform a functional test on the flow meter through the main control module to check the response status of the flow meter.

[0007] As a further technical solution of the present invention, the sensor components built into the data collection module include at least a flow sensor, a temperature sensor, a pressure sensor and a density sensor; the flow sensor obtains the flow velocity of the fluid by measuring the difference between the downstream and upstream propagation velocities of the ultrasonic pulse, and determines the fluid flow by measuring the ultrasonic Doppler frequency shift scattered by scatterers in the inhomogeneous fluid; the temperature sensor reflects the fluid state in real time by measuring the temperature of the liquid in the pipeline and the external temperature; the pressure sensor obtains the fluid pressure state by measuring the pressure in the pipeline and the external pressure; the density sensor obtains the density of the fluid by measuring the speed when passing through the fluid.

[0008] As a further technical solution of the present invention, the implementation steps of the improved seagull optimization algorithm model are: 1) Based on the working data and dynamic video data of the flow meter collected by the data collection module, the fluid state data of the flow meter under normal working conditions is screened out; 2) Extract the fluid characteristic state data from the screened data as feature values ​​through the data classification module to facilitate rapid extraction based on keywords and feature values; 3) The working data of the flow meter is optimally extracted by using the improved Seagull optimization algorithm. The expression of the improved Seagull optimization algorithm is: (1) In formula (1), Indicates the extraction of output value, Represents data different from the eigenvalue, Represents a random number between (0, 1), represents the eigenvalue vector, represents the operation data vector, Indicates the order of operations, Indicates the current iteration number, represents the maximum number of iterations, represents the quality parameter, represents the weight value, Represents the recall rate.

[0009] As a further technical solution of the present invention, the data fusion module includes a signal conversion unit, a data analysis unit and a data transmission unit; the signal conversion unit converts the analog signal output by the sensor into a digital signal through an analog-to-digital converter ADC; the data analysis unit performs a comprehensive analysis on the digital signal through a microprocessor to improve the accuracy and reliability of the data; the data transmission unit transmits the data to the main control module through a WiFi wireless network and stores it in a traffic database; the output end of the signal conversion unit is connected to the input end of the data analysis unit; the output end of the data analysis unit is connected to the input end of the data transmission unit.

[0010] As a further technical solution of the present invention, the implementation steps of the fluid instantaneous flow calculation method are: 1) Signal conversion; The digital signal transmitted by the wireless network is converted into an analog signal through an inverse conversion of an analog-to-digital converter ADC; 2) Synchronize data; Based on the converted analog signal, the fluid state data is time-stamped to ensure that the data is collected synchronously and corresponds to the correct time, so as to calculate the flow state at the same time; 3) Liquid flow calculation; The calculation is performed based on the liquid flow continuity equation, which is expressed as: (2) In formula (2), Indicates the liquid flow rate, Indicates liquid, represents the integrating factor, represents the cross-sectional area of ​​the pipe, represents the density of the liquid, Indicates the liquid flow rate, Indicates the speed measurement time. Indicates the mass of the liquid; 4) Calculation of liquid instantaneous flow rate; The liquid flow rate is obtained by calculating the liquid flow rate at a certain moment, and the instantaneous flow rate is obtained based on the liquid flow continuity equation. The expression for calculating the instantaneous flow rate of the liquid is: (3) In formula (3), Indicates the instantaneous flow rate of liquid, Indicates the change in liquid flow rate, represents the time increment, Indicates the liquid flow rate, represents the density of the liquid, represents the liquid mass increment, Indicates the liquid quality parameter, represents the liquid flow rate frequency, Represents the flow rate factor.

[0011] As a further technical solution of the present invention, the main control module includes a data receiving unit, an information integration unit and an execution unit; the data receiving unit receives data from each module and sends information to each module through STM32 serial port communication; the information integration unit unifies the naming rules and formats of the information and removes duplicate, erroneous and missing data, converts the data source format based on a unified standard and stores the data in a database; the execution unit modifies the state parameters of the flow meter through a programmable controller; the output end of the data receiving unit is connected to the input end of the information integration unit; the output end of the information integration unit is connected to the input end of the execution unit.

[0012] A flow meter measurement fault assessment method, characterized in that the method comprises the following steps: Step 1: Use dynamic video to monitor and collect the flow meter readings and operating status in real time; Step 2: Collect environmental data including temperature, pressure and flow rate when the fault occurs; Step 3: Compare the normal working state data of the flow meter with the running state data to check whether they are consistent; Step 4: Diagnose the operation data by setting up a standard flow meter to test whether the operation and measurement of the flow meter are normal; Step 5: Based on external conditions and diagnostic results, evaluate the causes of metering failures through comparative analysis methods; Step 6. Repair the fault by closing the valve, replacing the faulty part and installing temperature and pressure compensation devices.

[0013] As a further technical solution of the present invention, the implementation steps of the comparative analysis method are: 1) Set up a control group; Set the state data of the standard flow meter as the standard group, set the state data of the flow meter in normal operation as the control group, and set the state data of the flow meter in abnormal operation as the experimental group; 2) Comparative analysis; The three sets of data are processed by a comparative analysis algorithm; the expression of the comparative analysis algorithm is: (4) In formula (4), It indicates the output value of the comparison between the standard group and the control group. represents the operation data of the control group, Indicates the order of operations, Indicates the number of operations. represents the data regression value of the standard group, represents the average value of the data of the standard group, represents the regression parameter, represents the median of the standard group data, represents the regularization parameter, represents the learning rate; The expression for comparative analysis between the standard group and the experimental group is: (5) In formula (5), Indicates the output value of the comparison between the standard group and the experimental group. represents the operational data of the experimental group, Indicates the order of operations, Indicates the number of operations. represents the data regression value of the standard group, represents the average value of the data of the standard group, represents the regression parameter, represents the median of the standard group data, represents the regularization parameter, represents the learning rate; 3) Result matching; By analyzing the difference between the two sets of formulas, the status data of the flow meter during abnormal operation is obtained, and the external conditions of the abnormal working data are retrieved through the database to analyze the cause of the fault; 4) Evaluate and adjust; The performance indicators of the flow meter in daily work can be obtained through the matching results, and the flow meter with errors can be adjusted in time through machine calibration and manual adjustment.

[0014] The beneficial positive effects of the present invention are: Different from conventional technologies, the present invention discloses a method for calculating instantaneous flow of a flow meter and a method for evaluating metering faults, constructs a Seagull optimization algorithm model to process the working data of the flow meter and optimize features; accurately calculates the instantaneous flow of the liquid through the instantaneous flow calculation method; monitors and collects the working data of the flow meter through an integrated monitoring system; and evaluates the status data of the flow meter through a comparative analysis method. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which: Figure 1 It is a flow chart of a method for calculating instantaneous flow of a flow meter; Figure 2 It is a flow chart of a flow meter measurement fault assessment method; Figure 3 This is a structural diagram of an improved Seagull optimization algorithm model for a flow meter instantaneous flow calculation method and a metering fault assessment method; Figure 4 It is a structural diagram of the data collection module of an improved seagull optimization algorithm model for a flow meter instantaneous flow calculation method and a metering fault evaluation method; Figure 5 It is a structural diagram of the data fusion module of the improved seagull optimization algorithm model for the instantaneous flow calculation method and metering fault evaluation method of a flow meter; DETAILED DESCRIPTION

[0016] The following will be combined with the drawings in the embodiments of this article to clearly and completely describe the technical solutions in the embodiments of this article. Obviously, the described embodiments are only part of the embodiments of this article, not all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.

[0017] like Figure 1 As shown, a method for calculating instantaneous flow of a flow meter comprises the following steps: Step 1: monitor and collect fluid data information through a sensor component connected to the flow meter electrical signal, the fluid data information at least includes fluid properties, flow rate, temperature, pressure, density, volume and mass, the fluid data information is transmitted to a main control module disposed in the flow meter body through a data fusion module, the main control module is connected to a computer management system through wireless data communication, and a wireless data communication interface is disposed at the end of the flow meter; Step 2: The computer management system end processes the working data of the flow meter by the flow calculation method, and classifies the fluid data information by the classification module; the classified fluid data information is stored in the flow database, and the classification module is set at the computer management system end; Step 3: Monitor and receive the physical status of the flow meter and the data information of the classification module and the main control module in real time through the monitoring system connected to the computer management system, and store the data in the flow database; Step 4: The improved Seagull optimization algorithm model is set on the computer management system end and is constructed based on the working data of the flow meter. The improved Seagull optimization algorithm model includes a data collection module, a data identification and classification module, a data search module, a data fusion module, an instantaneous flow calculation module and a control unit; the data search module performs feature optimization on the data through the improved Seagull optimization algorithm; the instantaneous flow calculation module performs calculation based on the fluid instantaneous flow calculation method; The output end of the data collection module is connected to the input end of the data identification and classification module; the output end of the data identification and classification module is connected to the input end of the data search module; the output end of the data search module is connected to the input end of the data fusion module; the output end of the data fusion module is connected to the input end of the instantaneous flow calculation module; the output end of the instantaneous flow calculation module is connected to the input end of the main control module; Step 5: Train the improved Seagull optimization algorithm model based on the working data set of the traffic database to improve the accuracy of the model; Step 6: Perform a functional test on the flow meter through the main control module to check the response status of the flow meter.

[0018] Furthermore, the sensor components built into the data collection module include at least a flow sensor, a temperature sensor, a pressure sensor and a density sensor; the flow sensor calculates the flow velocity of the fluid by measuring the ultrasonic pulse downstream and upstream, and determines the fluid flow by measuring the ultrasonic Doppler frequency shift scattered by scatterers in the inhomogeneous fluid; the temperature sensor reflects the fluid state in real time by measuring the temperature of the liquid in the pipeline and the external temperature; the pressure sensor obtains the fluid pressure state by measuring the pressure in the pipeline and the external pressure; the density sensor obtains the density of the fluid by measuring the speed when passing through the fluid.

[0019] In a specific embodiment, the ultrasonic sensor obtains the flow rate of the liquid by calculating the difference in the wave speed propagating in the fluid in the downstream and upstream directions. This measurement method overcomes the error caused by the change of sound speed with the fluid temperature and has high accuracy; the temperature sensor monitors the change of thermal conductivity and fluid temperature through thermistors to deduce the relationship between gas flow rate and flow data. The fluid will change temperature according to the flow rate. When the flow rate is too large, the fluid temperature increases, and when the flow rate is too small, the fluid temperature decreases; the pressure sensor measures the pressure in the pipeline and the atmospheric pressure based on piezoresistors. When the fluid flow rate is too large, the pressure in the pipeline increases, and when the flow rate is too small, the pressure decreases. The pressure in the pipeline can be adjusted in time according to the change in pressure to prevent blockage.

[0020] Furthermore, the improved seagull optimization algorithm is implemented as follows: 1) Based on the working data and dynamic video data of the flow meter collected by the data collection module, the fluid state data of the flow meter under normal working conditions is screened out; 2) Extract the fluid characteristic state data from the screened data as feature values ​​through the data classification module to facilitate rapid extraction based on keywords and feature values; 3) The working data of the flow meter is optimally extracted through the improved Seagull optimization algorithm model. The expression of the improved Seagull optimization algorithm is: (1) In formula (1), Indicates the extraction of output value, Represents data different from the eigenvalue, Represents a random number between (0, 1), represents the eigenvalue vector, represents the operation data vector, Indicates the order of operations, Indicates the current iteration number, represents the maximum number of iterations, represents the quality parameter, represents the weight value, Represents the recall rate.

[0021] In a specific embodiment, the working data of the flow meter comes from the sensor component of the data collection module. The collected data is mixed with too much interference information and is not convenient for information processing. The data classification module needs to classify the data into normal working data, abnormal working data and interference information, and extract the characteristic values ​​from the available information through screening, so as to facilitate the subsequent improved Seagull optimization algorithm. The improved Seagull optimization algorithm model calculates 7 times the non-characteristic value The square of multiply by a random number between (0, 1) With the eigenvalue vector Sum operation data vector Convolve the difference and divide it by the current number of iterations Multiply by the maximum number of iterations With the current iteration number The difference divided by the base 2 logarithm is , which means iterative calculation of the operation data and the eigenvalue, calculating the difference and then convolving to get the calculation range of the eigenvalue; calculation Times the quality parameters Multiply the operation data The sine value of , because the sine value of the operating data The range is (-1, 1), and the part less than 0 is discarded to (0, 1). The range of high-quality parameters is (0, 3). In order to make the screening range more accurate and the characteristics more obvious, it is necessary to multiply , to ensure the output of high-quality data; by calculating the weight value Multiply the operation data Multiply by non-eigenvalues AND operation data The recall rate of Divide the maximum number of iterations by the power of get , which means iterative calculation of the operation data, limiting the number of iterative updates, and cyclically calculating the eigenvector value of the data; the output value of the high-quality eigenvalue extraction is obtained by adding the three, namely The calculated high-quality feature extraction value is transmitted to the instantaneous flow calculation module through wireless transmission; the improved seagull optimization algorithm speeds up the data processing by extracting the working data features; the improved seagull optimization algorithm can more quickly and accurately screen out data close to or similar to the feature value as output data, improving the algorithm's optimization accuracy and solution ability, so as to facilitate the output of subsequent results. Table 1 is a comparison between the improved seagull optimization algorithm and the conventional extraction algorithm.

[0022] Table 1 Comparison between the improved Seagull optimization algorithm model and the conventional extraction algorithm

[0023] It can be seen from Table 2 that the improved Seagull optimization algorithm model improves the search rate of data feature values ​​and optimizes them. The optimization efficiency is higher than that of the conventional extraction algorithm. The algorithm recall rate represents the ability of the model to identify positive samples. In comparison, the improved Seagull optimization algorithm has a higher recall rate, which ensures the stable operation of the model.

[0024] Furthermore, the data fusion module includes a signal conversion unit, a data analysis unit and a data transmission unit; the signal conversion unit converts the analog signal output by the sensor into a digital signal through an analog-to-digital converter ADC; the data analysis unit performs a comprehensive analysis on the digital signal through a microprocessor to improve the accuracy and reliability of the data; the data transmission unit transmits the data to the main control module through a WiFi wireless network and stores it in a traffic database; the output end of the signal conversion unit is connected to the input end of the data analysis unit; the output end of the data analysis unit is connected to the input end of the data transmission unit.

[0025] In a specific embodiment, the analog-to-digital converter ADC converts the time domain signal of the data into a frequency domain signal, i.e., a digital signal, by sampling, intercepting and Fourier transforming the time domain signal of the data; the microprocessor includes an embedded calculator and logic control, and performs data fusion on the digital signal through the embedded calculator, including deleting duplicate values ​​and data backup, and filtering out abnormal data values ​​and meaningless values ​​through logic control; the WiFi wireless network adopts the new 5G signal to speed up the transmission speed while also ensuring the security of the data.

[0026] Furthermore, the implementation steps of the fluid instantaneous flow calculation method are: 1) Signal conversion; The digital signal transmitted by the wireless network is converted into an analog signal through an inverse conversion of an analog-to-digital converter ADC; 2) Synchronize data; Based on the converted analog signal, the fluid state data is time-stamped to ensure that the data is collected synchronously and corresponds to the correct time, so as to calculate the flow state at the same time; 3) Liquid flow calculation; The calculation is performed based on the liquid flow continuity equation, which is expressed as: (2) In formula (2), Indicates the liquid flow rate, Indicates liquid, represents the integrating factor, represents the cross-sectional area of ​​the pipe, represents the density of the liquid, Indicates the liquid flow rate, Indicates the speed measurement time. Indicates the mass of the liquid; 4) Calculation of liquid instantaneous flow rate; The liquid flow rate is obtained by calculating the liquid flow rate at a certain moment, and the instantaneous flow rate is obtained based on the liquid flow continuity equation. The expression for calculating the instantaneous flow rate of the liquid is: (3) In formula (3), Indicates the instantaneous flow rate of liquid, Indicates the change in liquid flow rate, represents the time increment, Indicates the liquid flow rate, represents the density of the liquid, represents the liquid mass increment, Indicates the liquid quality parameter, represents the liquid flow rate frequency, Represents the flow rate factor.

[0027] In a specific embodiment, the wireless data is transmitted as a digital signal. To ensure the integrity of the data and the accuracy of the calculation, the analog-to-digital converter ADC inverse transform converts the digital signal into an analog signal through the inverse Fourier transform, and adds a timestamp to the converted data to ensure data synchronization, so as to facilitate the subsequent calculation of the instantaneous flow rate. The measurement and calculation are based on the liquid flow continuity equation. The liquid flow rate is calculated by unifying the data units. The liquid flow continuity equation calculates the cross-sectional area of ​​the pipeline. Multiply by the density of the liquid and liquid quality Divide by the speed measurement time Then take the derivative and get , calculate the cross-sectional area of ​​the pipe Multiply by the density of the liquid and liquid flow rate Divide by the speed measurement time Then take the derivative and get , calculate the liquid flow rate Speed ​​measurement time Differentiate the ratio of , adding the three together gives , which represents the flow rate of the liquid during the measurement time ; When calculating the instantaneous flow rate, it is necessary to obtain the fluid flow rate per unit time within the flow rate, that is, by calculating the change in liquid flow rate Variation with time The ratio plus the liquid flow Multiply by the density of the liquid Multiply by the liquid mass increment Then take the square root and divide by the time increment get , calculate the liquid quality parameters Multiply by the liquid flow rate frequency Flow rate factor The power of , calculate the quality parameters , Liquid Density and liquid mass increment The product of is the velocity factor Then take the logarithm of , we can get , which indicates the instantaneous flow rate of liquid; the instantaneous flow rate of liquid is obtained by the improved instantaneous flow rate calculation method, and the instantaneous flow rate of fluid at a certain moment can be accurately obtained by the algorithm; Table 2 is a comparison between the use of the improved instantaneous flow rate calculation method and the use of the improved instantaneous flow rate calculation method. The instantaneous flow rate calculation module calculates and processes the data and transmits the data to the main control module, so that the operator can observe the working data of the flow meter in real time.

[0028] Table 2 Comparison between the improved instantaneous flow calculation method and the conventional instantaneous flow calculation method

[0029] It can be seen from Table 2 that the improved instantaneous flow calculation method is faster in liquid identification speed and calculation speed. Compared with the conventional algorithm, the improved instantaneous flow calculation method improves the calculation accuracy and can calculate the instantaneous flow of different liquids at the same time.

[0030] Furthermore, the main control module includes a data receiving unit, an information integration unit and an execution unit; the data receiving unit receives data from each module and sends information to each module through STM32 serial port communication; the information integration unit unifies the naming rules and formats of the information and removes duplicate, erroneous and missing data, converts the data source format based on a unified standard and stores the data in a database; the execution unit modifies the state parameters of the flow meter through a programmable controller; the output end of the data receiving unit is connected to the input end of the information integration unit; the output end of the information integration unit is connected to the input end of the execution unit.

[0031] In a specific embodiment, the STM32 interacts with each module through a standard serial communication protocol, and the data receiving unit is responsible for monitoring the serial port and receiving real-time data from each module; the information integration unit first formats the data uniformly to eliminate differences in naming rules and formats, then removes erroneous and duplicated data to improve data accuracy, and finally stores the data in a database for long-term storage and rapid retrieval; the programmable logic controller controls the operation of the flow meter through preset logic instructions.

[0032] A flow meter measurement fault assessment method, using a flow meter instantaneous flow calculation method according to any one of the claims, the method comprising: Step 1: Use dynamic video to monitor and collect the flow meter readings and operating status in real time; Step 2: Collect environmental data including temperature, pressure and flow rate when the fault occurs; Step 3: Compare the normal working state data of the flow meter with the running state data to check whether they are consistent; Step 4: Diagnose the operation data by setting up a standard flow meter to test whether the operation and measurement of the flow meter are normal; Step 5: Based on external conditions and diagnostic results, evaluate the causes of metering failures through comparative analysis methods; Step 6. Repair the fault by closing the valve, replacing the faulty part and installing temperature and pressure compensation devices.

[0033] Furthermore, the implementation steps of the comparative analysis method are: 1) Set up a control group; Set the state data of the standard flow meter as the standard group, set the state data of the flow meter in normal operation as the control group, and set the state data of the flow meter in abnormal operation as the experimental group; 2) Comparative analysis; The three sets of data are processed by a comparative analysis algorithm; the expression of the comparative analysis algorithm is: (4) In formula (4), It indicates the output value of the comparison between the standard group and the control group. represents the operation data of the control group, Indicates the order of operations, Indicates the number of operations. represents the data regression value of the standard group, represents the average value of the data of the standard group, represents the regression parameter, represents the median of the standard group data, represents the regularization parameter, represents the learning rate; The expression for comparative analysis between the standard group and the experimental group is: (5) In formula (5), Indicates the output value of the comparison between the standard group and the experimental group. represents the operational data of the experimental group, Indicates the order of operations, Indicates the number of operations. represents the data regression value of the standard group, represents the average value of the data of the standard group, represents the regression parameter, represents the median of the standard group data, represents the regularization parameter, represents the learning rate; 3) Result matching; By analyzing the difference between the two sets of formulas, the status data of the flow meter during abnormal operation is obtained, and the external conditions of the abnormal working data are retrieved through the database to analyze the cause of the fault; 4) Evaluate and adjust; The performance indicators of the flow meter in daily work can be obtained through the matching results, and the flow meter with errors can be adjusted in time through machine calibration and manual adjustment.

[0034] In a specific embodiment, the control group is set to better compare the data, timely discover abnormal data and extract the abnormal data as a fault treatment, and compare the standard group and the control group and the standard group and the experimental group to obtain the results; the standard group and the control group are calculated by calculating the control group operation data. The regression value of the data with the standard group The sum of the squared differences divided by The norm of the median of the standard group data The square of the regression parameter Multiply the control group data The mean value of the standard group data The difference is , by calculating the regularization parameter Multiply the control group data The mean value of the standard group data The difference in learning rate The power of the logarithm to base 2 is summed to get , by calculating the regression value of the standard group data The mean value of the data of the standard group The difference is used as the regression parameter Then take the logarithm of , adding the three together gives , which represents the output value after comparative analysis of the standard group and the control group data; the comparative analysis of the standard group and the experimental group is performed by calculating the experimental group operation data The regression value of the data with the standard group The sum of the squared differences divided by The norm of the median of the standard group data The square of the regression parameter Multiply the experimental group's data The mean value of the standard group data The difference is , by calculating the regularization parameter Multiply the experimental group's data The mean value of the standard group data The difference in learning rate The power of the logarithm to base 2 is summed to get , by calculating the regression value of the standard group data The mean value of the data of the standard group The difference is used as the regression parameter Then take the logarithm of , adding the three together gives , which represents the output value after comparative analysis of the standard group and the experimental group data. Table 3 is a comparison of using the comparative analysis algorithm and not using the comparative analysis algorithm.

[0035] Table 3 Comparison between using contrast analysis algorithm and not using contrast analysis algorithm

[0036] It can be seen from Table 3 that the use of the comparative analysis algorithm improves the speed of data processing. The algorithm learning rate is an important hyperparameter for supervised learning and deep learning, which affects the convergence speed and effect of the objective function. Its value is too large or too small, which will have a fluctuating effect on data processing. The learning rate of the comparative analysis algorithm can effectively reduce the fluctuation effect on the function and also improve the optimization speed of the analysis data.

[0037] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that these specific embodiments are only illustrative, and those skilled in the art may omit, replace, and change the details of the above methods and systems in various ways without departing from the principles and essence of the present invention. For example, merging the above method steps so as to perform substantially the same functions in substantially the same manner to achieve substantially the same results is within the scope of the present invention. Therefore, the scope of the present invention is limited only by the appended claims.

Claims

1. A method for calculating instantaneous flow rate of a flow meter, characterized in that: The following steps are involved: Step 1: monitor and collect fluid data information through a sensor component connected to the flow meter electrical signal, the fluid data information at least includes fluid properties, flow rate, temperature, pressure, density, volume and mass, the fluid data information is transmitted to a main control module disposed in the flow meter body through a data fusion module, the main control module is connected to a computer management system through wireless data communication, and a wireless data communication interface is disposed at the end of the flow meter; Step 2: The computer management system end processes the working data of the flow meter by the flow calculation method, and classifies the fluid data information by the classification module; the classified fluid data information is stored in the flow database, and the classification module is set at the computer management system end; Step 3: Monitor and receive the physical status of the flow meter and the data information of the classification module and the main control module in real time through the monitoring system connected to the computer management system, and store the data in the flow database; Step 4: The improved Seagull optimization algorithm model is set on the computer management system end and is constructed based on the working data of the flow meter. The improved Seagull optimization algorithm model includes a data collection module, a data identification and classification module, a data search module, a data fusion module, an instantaneous flow calculation module and a control unit; the data search module performs feature optimization on the data through the improved Seagull optimization algorithm; the instantaneous flow calculation module performs calculation based on the fluid instantaneous flow calculation method; The output end of the data collection module is connected to the input end of the data identification and classification module; the output end of the data identification and classification module is connected to the input end of the data search module; the output end of the data search module is connected to the input end of the data fusion module; the output end of the data fusion module is connected to the input end of the instantaneous flow calculation module; the output end of the instantaneous flow calculation module is connected to the input end of the main control module; Step 5: Train the improved Seagull optimization algorithm model based on the working data set of the traffic database to improve the accuracy of the model; Step 6: Perform a functional test on the flow meter through the main control module to check the response status of the flow meter.

2. A method for calculating instantaneous flow rate of a flow meter according to claim 1, characterized in that: The sensor components built into the data collection module include at least a flow sensor, a temperature sensor, a pressure sensor and a density sensor; the flow sensor obtains the flow velocity of the fluid by measuring the difference between the propagation speeds of ultrasonic pulses downstream and upstream, and determines the fluid flow by measuring the ultrasonic Doppler frequency shift scattered by scatterers in the inhomogeneous fluid; the temperature sensor reflects the fluid state in real time by measuring the temperature of the liquid in the pipeline and the external temperature; the pressure sensor obtains the fluid pressure state by measuring the pressure in the pipeline and the external pressure; the density sensor obtains the density of the fluid by measuring the speed when passing through the fluid.

3. A method for calculating instantaneous flow rate of a flow meter according to claim 1, characterized in that: The implementation steps of the improved seagull optimization algorithm model are: 1) Based on the working data and dynamic video data of the flow meter collected by the data collection module, the fluid state data of the flow meter under normal working conditions is screened out; 2) Extract the fluid characteristic state data from the screened data as feature values ​​through the data classification module to facilitate rapid extraction based on keywords and feature values; 3) The working data of the flow meter is optimally extracted through the improved Seagull optimization algorithm model. The expression of the improved Seagull optimization algorithm is: (1) In formula (1), Indicates the extraction of output value, Represents data different from eigenvalues, Represents a random number between (0, 1), represents the eigenvalue vector, represents the operation data vector, Indicates the order of operations, Indicates the current iteration number, represents the maximum number of iterations, represents the quality parameter, represents the weight value, Represents the recall rate.

4. A method for calculating instantaneous flow rate of a flow meter according to claim 1, characterized in that: The data fusion module includes a signal conversion unit, a data analysis unit and a data transmission unit; the signal conversion unit converts the analog signal output by the sensor into a digital signal through an analog-to-digital converter ADC; the data analysis unit performs comprehensive analysis on the digital signal through a microprocessor to improve the accuracy and reliability of the data; the data transmission unit transmits the data to the main control module through a WiFi wireless network and stores it in a traffic database; the output end of the signal conversion unit is connected to the input end of the data analysis unit; the output end of the data analysis unit is connected to the input end of the data transmission unit.

5. A method for calculating instantaneous flow rate of a flow meter according to claim 1, characterized in that: The implementation steps of the fluid instantaneous flow calculation method are as follows: 1) Signal conversion; The digital signal transmitted by the wireless network is converted into an analog signal through an inverse conversion of an analog-to-digital converter ADC; 2) Synchronize data; Based on the converted analog signal, the fluid state data is time-stamped to ensure that the data is collected synchronously and corresponds to the correct time, so as to calculate the flow state at the same time; 3) Liquid flow calculation; The calculation is performed based on the liquid flow continuity equation, which is expressed as: (2) In formula (2), Indicates the liquid flow rate, Indicates liquid, represents the integrating factor, represents the cross-sectional area of ​​the pipe, represents the density of the liquid, Indicates the liquid flow rate, Indicates the speed measurement time. Indicates the mass of the liquid; 4) Calculation of liquid instantaneous flow rate; The liquid flow rate is obtained by calculating the liquid flow rate at a certain moment, and the instantaneous flow rate is obtained based on the liquid flow continuity equation. The expression for calculating the instantaneous flow rate of the liquid is: (3) In formula (3), Indicates the instantaneous flow rate of liquid, Indicates the change in liquid flow rate, represents the time increment, Indicates the liquid flow rate, represents the density of the liquid, represents the liquid mass increment, Indicates the liquid quality parameter, represents the liquid flow rate frequency, Represents the flow rate factor.

6. A method for calculating instantaneous flow rate of a flow meter according to claim 1, characterized in that: The main control module includes a data receiving unit, an information integration unit and an execution unit; the data receiving unit receives data from each module through STM32 serial port communication and sends information to each module; The information integration unit unifies the naming rules and formats of the information and removes duplicate, erroneous and missing data, converts the data source format based on unified standards and stores the data into a database; the execution unit modifies the state parameters of the flow meter through a programmable controller; the output end of the data receiving unit is connected to the input end of the information integration unit; the output end of the information integration unit is connected to the input end of the execution unit.

7. A flow meter measurement fault assessment method, characterized in that: A flow meter instantaneous flow calculation method according to any one of claims 1 to 6 is applied, and the flow meter measurement evaluation method comprises the following steps: Step 1: Use dynamic video to monitor and collect the flow meter readings and operating status in real time; Step 2: Collect environmental data including temperature, pressure and flow rate when the fault occurs; Step 3: Compare the normal working state data of the flow meter with the running state data to check whether they are consistent; Step 4: Diagnose the operation data by setting up a standard flow meter to test whether the operation and measurement of the flow meter are normal; Step 5: Based on external conditions and diagnostic results, evaluate the causes of metering failures through comparative analysis methods; Step 6. Repair the fault by closing the valve, replacing the faulty part and installing temperature and pressure compensation devices.

8. A flow meter measurement fault assessment method according to claim 7, characterized in that: The implementation steps of the comparative analysis method are: 1) Set up a control group; Set the state data of the standard flow meter as the standard group, set the state data of the flow meter in normal operation as the control group, and set the state data of the flow meter in abnormal operation as the experimental group; 2) Comparative analysis; The three sets of data are processed by a comparative analysis algorithm; the expression of the comparative analysis algorithm is: (4) In formula (4), It indicates the output value of the comparison between the standard group and the control group. represents the operation data of the control group, Indicates the order of operations, Indicates the number of operations. represents the data regression value of the standard group, represents the average value of the data of the standard group, represents the regression parameter, represents the median of the standard group data, represents the regularization parameter, represents the learning rate; The expression for comparative analysis between the standard group and the experimental group is: (5) In formula (5), Indicates the output value of the comparison between the standard group and the experimental group. represents the operational data of the experimental group, Indicates the order of operations, Indicates the number of operations. represents the data regression value of the standard group, represents the average value of the data of the standard group, represents the regression parameter, represents the median of the standard group data, represents the regularization parameter, represents the learning rate; 3) Result matching; By analyzing the difference between the two sets of formulas, the status data of the flow meter during abnormal operation is obtained, and the external conditions of the abnormal working data are retrieved through the database to analyze the cause of the fault; 4) Evaluate and adjust; The performance indicators of the flow meter in daily work can be obtained through the matching results, and the flow meter with errors can be adjusted in time through machine calibration and manual adjustment.