Method for compensating for a faulty acoustic channel of a multi-channel ultrasonic flow meter adapted to flow field distortions

By constructing a channel correlation model and a rolling data window, and combining multiple regression and cross-correlation matrix, the fault compensation problem of multi-channel ultrasonic flowmeters under non-equivalent channels and flow field distortion is solved, realizing high-precision flow detection and instrument adaptation, which is suitable for pipe section and insertion instruments.

CN123175381APending Publication Date: 2026-11-27SHIJIAZHUANG CEEBIC INSTR
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202611573484.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-12
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing methods for compensating for channel faults in multi-channel ultrasonic flow meters are difficult to apply to non-equivalent channel arrangements, cannot adapt to flow field distortion, resulting in low flow detection accuracy and incompatibility with the differences between pipe-type and insertion-type instruments.

Method used

By identifying the instrument type, a channel association model is constructed. Multiple regression and cross-correlation matrix are used to capture the correlation between non-equivalent channels. Combined with rolling data window and physical constraint correction, virtual flow velocity is calculated and confidence-weighted fusion is performed to achieve accurate flow integration.

Benefits of technology

It improves flow detection accuracy, adapts to non-equivalent sound channels and flow field distortion, reduces computational load, is compatible with pipe-type and insertion-type instruments, supports low-power MCU applications, and is suitable for the metering needs of ultrasonic flow meters and heat meters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123175381A_ABST
    Figure CN123175381A_ABST
Patent Text Reader

Abstract

The present application relates to the field of multi-channel ultrasonic flowmeter flow measurement, disclose a kind of sound channel fault compensation method of multi-channel ultrasonic flowmeter suitable for flow field distortion, comprising: S1, identify ultrasonic flowmeter type, based on type to execute corresponding scheme;S2, real-time monitoring the signal-to-noise ratio of each sound channel, transit time, sound velocity deviation and carry out data deviation judgment, if there is at least one data deviation nominal value, then determine the sound channel fault, and freeze data, stop rolling window update, until fault recovery or instrument restart;S3, based on the flow rate of all normal sound channels, calculate the virtual flow rate of the fault sound channel;S4, to carry out physical constraint correction, using confidence weighted fusion calculation obtains section correction average flow rate;S5, to carry out integration, obtain final flow Q.The present application can adapt to non-equivalent sound channel, and improve the detection accuracy of flow by physical constraint and adapt to flow field distortion, and can also adapt to the two types of instruments of pipe section type and plug-in type.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of flow measurement using multi-channel ultrasonic flow meters, and particularly to a channel fault compensation method for multi-channel ultrasonic flow meters that adapts to flow field distortion. This method is applicable to channel data repair under non-equivalent channel arrangements, adaptive correction of flow field distortion, and flow totalization under fault conditions. Background Technology

[0002] Multi-channel ultrasonic flow meters calculate pipeline flow velocity by measuring the propagation time difference of ultrasonic waves from multiple channels. They are core equipment for large-diameter water metering and heating trade settlement. When a channel malfunctions on-site and cannot be repaired promptly, it often leads to inaccurate metering. Common existing channel malfunction compensation solutions include the following:

[0003] 1. Equivalent symmetrical vocal tract substitution method

[0004] For example, the patent document with publication number CN116952316A and patent title "A Fault Channel Compensation Method Based on a Cross-Four-Channel Ultrasonic Flow Meter" uses the channel velocity ratio K (e.g., v1 / v5) under a strictly symmetrical equivalent arrangement to fill the fault channel data. However, this scheme relies on the premise of symmetrical channel positions and equal weights. For non-equivalent arrangements (e.g., Gaussian 1:3:3:1 distribution), each channel is located at different radii of the flow field profile and has different weight coefficients. The velocity ratio K changes nonlinearly with the Reynolds number and the flow field profile, making it unsuitable for direct application. Furthermore, it does not consider the influence of on-site flow field distortion (e.g., elbows, downstream of pumps and valves) on the stability of the velocity ratio, resulting in a large compensation error under distorted conditions.

[0005] 2. Weighting Adjustment Method

[0006] 1) As described in patent document CN106643987A, a four-channel Gauss-Jacobi arrangement is used. After removing the faulty channel, the weights of the remaining channels are recalculated using the least squares method. This method does not repair the original data of the faulty channel and is only a passive compromise solution. It is also limited to the equivalent symmetrical arrangement scenario and does not adapt to the integration logic of non-equivalent channels. Moreover, recalculating the weights of the remaining channels using the least squares method after a fault will cause the weights to deviate from the physical meaning of the original Gauss-Jacobi integration nodes. On the one hand, the mismatch between the weights and the flow field profile in the fault state leads to an increase in compensation error. On the other hand, when the fault is recovered and the original weights are switched back, a flow step is likely to occur, affecting the metering stability throughout the entire life cycle of the meter.

[0007] 2) The enhanced velocity estimation method disclosed in US6837113B1 (Daniel Industries, USA) divides the velocity range into several continuous "compartments" and maintains and trains proportional values ​​according to channel and flow direction. When a channel fails, the average cross-sectional velocity is directly estimated by "the sum of the measured velocities of the remaining channels ÷ the sum of the estimated proportional values ​​of the remaining channels". Although this method utilizes historical training information, its proportional values ​​are empirical quantities that are continuously updated adaptively with operation and drift with the flow field profile and Reynolds number. Under conditions of installation distortion and insufficient flow field development, the training data itself is contaminated, and the proportional values ​​are distorted. Furthermore, this method does not reconstruct the velocity of the faulty channel and does not support channel-level diagnostic backtracking and cascade compensation for multi-channel progressive faults.

[0008] 3) For example, the variance-optimal weighted data fusion method disclosed by Peng Lihui et al. (IEEE Sensors Journal, 2012) determines the fusion weights according to the variance of the measured noise of each channel, and can still provide robust estimates when some channels fail. However, this method is based on equivalent accuracy measurement, the weights only reflect the noise level, do not embed the structural correlation of the velocity profile between channels, and do not distinguish the differences in flow field characteristics between pipe-type and insertion-type instruments.

[0009] 3. Logical / Physical Channel Remapping Method

[0010] For example, the multi-channel ultrasonic water meter flow compensation method disclosed in CN121113210A maps abnormal logical channels to normal physical channels in the same or adjacent layers and configures flow compensation coefficients layer by layer. This method relies on a specific channel topology (i.e., layered arrangement) and belongs to the hardware redundancy remapping approach, which is not applicable to non-layered and non-equivalent arrangements (such as Gaussian arrangements); moreover, the inter-layer compensation coefficients are static calibration values ​​and do not consider online adaptation for flow field distortion.

[0011] 4. Flow field recognition / intelligent fusion methods

[0012] 1) As disclosed in CN118225194A, the adaptive flow calculation method for multi-channel ultrasonic gas flowmeters identifies the flow field condition by comparing the dispersion of flow velocity values ​​in each channel, and selects the subsequent flow velocity calculation method accordingly, achieving a balance between measurement accuracy and power consumption. This method focuses on optimizing algorithm complexity under normal operating conditions and does not involve data reconstruction and compensation after channel failures.

[0013] 2) For example, the large-diameter hot and cold water flow metering system based on dual-channel ultrasonic detection disclosed in CN121475348A uses multi-modal data fusion, dynamic inversion, and online strategy optimization (deep learning / reinforcement learning) to achieve dynamic perception and adaptive correction of fluid uniformity. This method is limited to a dual-channel topology, relies on a deep learning / reinforcement learning framework with high computing power, and does not involve fault channel reconstruction under non-equivalent multi-channel arrangements, preservation of fixed integral weights, and multi-channel progressive fault compensation.

[0014] 5. Pure data-driven fill method

[0015] Compensation is achieved by recording the historical average flow velocity of the faulty channel or the results of simple linear regression. However, the principle of flow continuity (the flow rate passing through the cross-section of the pipe at the same moment is unique) is not explicitly embedded. Under transient flow conditions such as valve regulation and pump start-up and shutdown, the calculated results are prone to deviating from the actual physical situation, resulting in a large error.

[0016] Furthermore, the factory calibration of pipe-type instruments is based on an ideal flow field (straight pipe section ≥10D, with fully developed flow field). The field installation of insertion-type instruments is affected by factors such as positioning accuracy, transducer insertion depth, the orthogonal angle of the transmitter and receiver surfaces, and the straight pipe sections before and after, making the flow field prone to drift. The flow field characteristics of the two types are significantly different, but existing solutions mostly use a unified processing logic and do not design adaptation strategies for pipe-type and insertion-type instruments respectively. Moreover, existing solutions do not consider the impact of field flow field distortion (such as elbows, downstream of pumps and valves) on the failure of the factory calibration model, resulting in fault compensation errors exceeding the instrument tolerance under distorted operating conditions.

[0017] In summary, existing methods for compensating for channel faults in multi-channel ultrasonic flow meters are difficult to apply to non-equivalent channels. Based on this, the inventors have developed and designed a method for compensating for channel faults in multi-channel ultrasonic flow meters that adapts to flow field distortion, taking into account the compatibility with non-equivalent channels, differences in instrument shape, compliance with physical constraints, and adaptability to flow field distortion. Summary of the Invention

[0018] The purpose of this invention is to address the shortcomings of the prior art by providing a channel fault compensation method for a multi-channel ultrasonic flow meter that adapts to flow field distortion. This method can adapt to non-equivalent channels and improve the flow detection accuracy through physical constraints and adaptation to flow field distortion. It can also be adapted to two different types of instruments: pipe section type and insertion type.

[0019] To solve the above problems, the technical solution adopted by the present invention is as follows:

[0020] A channel fault compensation method for a multi-channel ultrasonic flowmeter adaptable to flow field distortion, wherein the ultrasonic flowmeter includes N non-equivalent channels, N≥3, and the preset weight of each non-equivalent channel is... ,and For i∈[1,2,…,N], the method includes the following steps:

[0021] S1. Identify whether the ultrasonic flow meter is a pipe-type or insertion-type instrument. If it is a pipe-type instrument, execute S11; if it is an insertion-type instrument, execute S12.

[0022] S11. Perform factory calibration on pipe-type instruments. During use, calculate the flow velocity ratio between the external and internal channels under steady-state conditions. and based on Ratio to the calibrated flow rate Depending on the size relationship, different strategies are implemented;

[0023] S12. Set a scrolling data window with a length of W, and set a data filtering strategy to filter valid flow rate data into the scrolling data window.

[0024] S2. Monitor the signal-to-noise ratio, transit time, and sound velocity deviation of each channel in real time and make data deviation judgments. If there is at least one data deviation, the corresponding channel i is determined to be a faulty channel, the data is frozen, and the scroll window update is stopped until the fault is recovered or the instrument is restarted.

[0025] S3. Based on the flow rates of all normal channels, calculate the virtual flow rate of the faulty channel. ;

[0026] S4, Weighted average flow rate based on all normal channels For virtual flow rate Physical constraint correction is performed to obtain the corrected virtual corrected flow velocity. ;

[0027] Based on virtual corrected flow rate Reconstructed cross-sectional average flow velocity ;

[0028] Based on cross-sectional average flow velocity Weighted average flow rate of all normal channels The cross-sectional corrected average flow velocity was obtained by confidence-weighted fusion calculation. ;

[0029] S5, Flow Accumulation and Status Output;

[0030] Cross-sectional corrected average flow velocity Perform integration to obtain the final flow rate Q, and then output it.

[0031] Preferably, in S11 based on Ratio to the calibrated flow rate The size relationship, and the different strategies employed, include the following steps:

[0032] S111, Judgment Does it belong to [ If it belongs to the range, the factory coefficient is selected; otherwise, proceed to S112.

[0033] S112, Judgment Does it belong to [ (inside) or ( If it falls within the range, then correction is performed and regression coefficients are obtained. If it does not belong to the category, proceed to S113;

[0034] S113, determined to be severely distorted, and switched to degraded mode.

[0035] Preferably, the data filtering strategy in S12 includes the following steps:

[0036] S121. Calculate the measured sound velocity of each channel at the current time t. Based on each measured sound velocity Calculate the average speed of sound Then, based on each measured sound velocity With average speed of sound The relative range of each channel was calculated. And filter the relative range The data enters the sampling sequence, where, The first preset threshold;

[0037] S122. For each channel i, take the flow rate of the previous m sample sequences at the current time. and based on Calculate the average flow velocity Then, based on the flow velocity sequence of the first m sampling windows With average flow velocity The standard deviation was calculated. and based on standard deviation With average flow velocity The relative fluctuation amplitude was calculated. ; Filter out relative fluctuation range The effective flow rate data is entered into the scrolling data window, where... This is the second preset threshold.

[0038] Preferably, the data filtering strategy in S12 further includes the following steps:

[0039] S123. When the data in the scrolling data window reaches the set length W, the earliest data is removed in chronological order, and the latest data is added to the scrolling data window. At the same time, the average flow rate of each channel is updated in real time. Standard deviation and the cross-correlation matrix of standardized variables ;

[0040] judge If the rate of change is continuously greater than the third preset threshold within a period of time T, then the system will enter a downgrade mode.

[0041] Preferably, the downgrade mode is:

[0042] Weighted average flow rate based on normal vocal tract The final flow rate Q is obtained by integration.

[0043] Preferably, step S3 includes the following steps:

[0044] S31. Virtual flow velocity calculation for pipe-type instruments;

[0045] Retrieve the regression coefficients corresponding to the current flow segment The measured flow velocity vectors of all normal audio channels Substitute the values ​​into a multiple linear regression model for calculation:

[0046] ;

[0047] in, Let j be the virtual flow rate, j be the set of normal audio channels, and i be the faulty audio channel;

[0048] S32. Virtual flow rate calculation for insertion-type instruments;

[0049] The correlation coefficient vector between the faulty channel i and the normal channel is maintained by a rolling data window before the fault and frozen at the time of the fault. and the cross-correlation matrix between normal vocal tracts A simplified weighted average algorithm based on the correlation coefficient amplitude is used to calculate the standardized virtual flow velocity of the faulty channel. Then, the standardized virtual flow rate was... Perform denormalization to obtain the virtual flow rate. .

[0050] Preferably, step S4 includes the following steps:

[0051] S41. Calculate the weighted average flow rate of all normal channels. ;

[0052] ;

[0053] S42, Based on virtual flow rate With weighted average flow velocity The corrected virtual corrected flow rate was calculated. The calculation process is as follows:

[0054] ;

[0055] in, For virtual flow rate;

[0056] S43, Based on virtual corrected flow rate Reconstructed cross-sectional average flow velocity ;

[0057] ;

[0058] S44, Based on cross-sectional average velocity With weighted average flow velocity Confidence-weighted fusion was performed to calculate the cross-sectional corrected average flow velocity. ;

[0059] .

[0060] Preferably, the calculation process for the final flow rate Q in S5 is as follows:

[0061] ;

[0062] Where A is the cross-sectional area of ​​the pipe. The cross-sectional corrected average flow velocity.

[0063] The beneficial effects of adopting the above technical solution are as follows:

[0064] 1. This invention can adapt to non-equivalent channels and capture the nonlinear correlation between non-equivalent channels through multiple regression and cross-correlation matrix. It breaks through the limitation that the symmetric ratio method is only applicable to equivalent arrangement. The compensation accuracy in non-equivalent channel scenarios is significantly improved compared with the traditional symmetric ratio method. It can also improve the flow detection accuracy through physical constraints and adaptation to flow field distortion. At the same time, it can also adapt to two different types of instruments: pipe section type and insertion type.

[0065] 2. This invention integrates physical and data analysis, embedding flow continuity constraints on statistical estimation, and using a weighted average flow velocity from the normal vocal tract. Using flow integration as the baseline, the additional error of fault compensation mainly comes from the integral error of the normal channel itself, rather than the amplification of statistical interpolation deviation; and the confidence level β is smoothly adjusted with the degree of distortion, model fit goodness and reconstruction deviation, thereby further improving the flow detection accuracy.

[0066] 3. This invention can be adapted to low-power MCUs. By abandoning the computationally intensive matrix inversion operation, a simplified weighted average algorithm is used for fault reconstruction. Combined with the incremental update strategy of the cross-correlation matrix, the computational workload is greatly reduced compared to traditional matrix algorithms, making it suitable for battery-powered and low-end MCUs with limited computing power.

[0067] 4. The compensation method of the present invention has strong compatibility. The calculated final flow rate Q can not only be directly used in ultrasonic flow meters, but also be used in conjunction with the supply and return water temperature difference and specific heat capacity parameters for heat integral calculation of ultrasonic heat meters, covering the needs of two types of metering equipment, and simultaneously supporting both pipe section type and insertion type instrument forms. Attached Figure Description

[0068] Figure 1 This is a flowchart illustrating the channel fault compensation method in an embodiment of the present invention. Detailed Implementation

[0069] The embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and examples. The following examples are for illustrative purposes only and should not be construed as limiting the scope of the invention.

[0070] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0071] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0072] This embodiment discloses a channel fault compensation method for a multi-channel ultrasonic flowmeter that adapts to flow field distortion. Its purpose is to provide a method that can adapt to non-equivalent channels and improve flow detection accuracy through physical constraints and adaptation to flow field distortion. At the same time, the method can also be adapted to two different types of instruments: pipe section type and insertion type.

[0073] The ultrasonic flow meter used in this embodiment includes N non-equivalent channels, where N≥3, and the preset weight of each non-equivalent channel is... ,and , i∈[1,2,…,N]. For example, the Gaussian non-equivalent vocal tract has a 1:3:3:1 distribution, with weights of 0.1, 0.3, 0.3, and 0.1 in sequence.

[0074] Specifically, the channel fault compensation method for this multi-channel ultrasonic flowmeter that adapts to flow field distortion includes the following steps:

[0075] Reference Figure 1 The method includes the following steps:

[0076] S1. Construction and maintenance of differentiated channel association model (i.e., identifying instrument type and constructing association model).

[0077] Specifically, it identifies whether the ultrasonic flow meter is a pipe-type or insertion-type meter. If it is a pipe-type meter, then execute S11; if it is an insertion-type meter, then execute S12.

[0078] In this step, it can establish a correlation model between channels based on the physical form of different instruments (pipe-type and insertion type) using corresponding strategies to adapt to different flow field characteristics.

[0079] For pipe-type instruments, a mode is adopted that combines factory calibration pre-stored data with on-site self-learning correction and periodic relearning, as detailed below:

[0080] S11. Perform factory calibration on pipe-type instruments. During use, calculate the flow velocity ratio between the external and internal channels under steady-state conditions. and based on Ratio to the calibrated flow rate Depending on the size relationship, different strategies are implemented;

[0081] The factory calibration process is as follows:

[0082] On the flow detection platform, if the straight pipe section is ≥10D, collect multiple sets of channel velocity data according to the flow segment, such as covering Q. min ~Q max For example, select 5 to 8 flow points to target each potentially faulty audio channel. Fit a multiple linear regression model, the model is as follows:

[0083] ;

[0084] in: Let p be the regression intercept for the p-th flow segment. Let be the regression coefficient of normal vocal tract j on potentially faulty vocal tract i. For residuals, the goodness of fit for each flow segment Relative residual value Preferably less than 0.5%.

[0085] Simultaneously calculate the velocity ratio of the external and internal channels in each flow range. If a non-equivalent Gaussian distribution is applied, the flow velocity will be similar to that in a Gaussian distribution. Multiple external / internal channel combinations can coexist. In this embodiment, Pick For example, defining the allowable distortion envelope. (In this embodiment, A 5% threshold may be adopted; in other feasible embodiments, Other values ​​that fit the fluctuation range of the flow field profile can also be used. Stored in the instrument's internal non-volatile memory.

[0086] After the pipe section instrument is installed on site, adjust it to steady-state flow condition and start the self-learning mode. Then continuously collect steady-state flow data for a period of time, such as 30 minutes of steady-state flow data. The steady-state flow data needs to meet the dual criteria requirements of steps S121 and S122.

[0087] Calculate the ratio of the flow velocity characteristics of the external and internal sound channels in the field. Then determine the flow velocity characteristic ratio. Ratio to the calibrated flow rate The size relationship can be categorized into the following types:

[0088] S111, Judgment Does it belong to [ If it belongs to the range, the factory coefficient is selected; otherwise, proceed to S112.

[0089] That is, to judge Is it within the permissible distortion envelope? Inside;

[0090] Among them, the factory coefficient refers to the various basic parameters set in the factory calibration.

[0091] S112, Judgment Does it belong to [ (inside) or ( If it falls within the range, then correction is performed and regression coefficients are obtained. If it does not belong to the category, proceed to S113;

[0092] That is, to judge Is the deviation value within to between, to The interval between these two points can be referred to as the correction interval, where, This is called the degradation threshold;

[0093] Among them, the regression coefficient The calculation process is as follows:

[0094] First, calculate the predicted values ​​of the factory model under the current on-site flow field:

[0095] ;

[0096] in, The mean measured flow velocity of channel j in the steady-state section of the site;

[0097] Then, the deviation between the actual value and the predicted value is calculated. This deviation is the intercept correction amount, as detailed below:

[0098] ;

[0099] In the formula, The mean measured flow velocity of channel i in the steady-state section of the field;

[0100] Finally, the final regression coefficients are generated using the parameters described above. The process is as follows:

[0101] , ;

[0102] Regression coefficient This correction strategy keeps the intercept term unchanged, thus avoiding the computational burden of updating all coefficients and eliminating the systematic deviation between the ideal flow field at the factory and the actual flow field on site.

[0103] S113, determined to be severely distorted, and switched to degraded mode.

[0104] That is, to judge If the model deviates from the degradation threshold, switch it to degradation mode.

[0105] That is, to judge Does it belong to ( )or( Strictly speaking, the flow rate ratio calculated normally is... It is usually a positive value, that is, from 0 to... However, in actual application, there may be problems with data sampling. In this case, the sampled data may also show negative values. Therefore, negative values ​​are also included in the judgment of the degradation mode. When a negative value appears, it is also judged as severe distortion.

[0106] S114, Periodic Relearning Mode / Triggered Relearning Mode

[0107] Later, during instrument operation, after stable data flow is met (i.e., the dual criteria requirements of steps S121 and S122 are met) and the time since the last self-learning exceeds a preset period, the preset period is set according to the actual operating conditions, such as 7 days, or when a condition is detected... If the drift of the self-learning value exceeds a preset ratio, such as 3%, steps S111 to S113 are re-executed to track the time-varying flow field distortion during instrument operation, such as changes in valve opening and flow field drift caused by seasonal load changes.

[0108] S12. Set a scrolling data window with a length of W, and set a data filtering strategy to filter valid flow rate data into the scrolling data window.

[0109] This step is for plug-in instruments that calculate the required parameters using an online scrolling window update mode.

[0110] When insert-type instruments are running in the field, a rolling data window of length W is first set, for example, W can be selected as 200 sampling periods, to ensure a balance between response speed and stability. A dual-criteria approach is then used to filter the relevant valid flow rate data, avoiding the inclusion of transient outflows in the model and ensuring model accuracy. The specific process is as follows:

[0111] S121. Calculate the measured sound velocity of each channel at the current time t. Based on each measured sound velocity Calculate the average speed of sound Then, based on each measured sound velocity With average speed of sound The relative range of each channel was calculated. And filter the relative range The data enters the sampling sequence, where, The first preset threshold;

[0112] Among them, the measured speed of sound The calculation process is as follows:

[0113] ;

[0114] in, The length of the vocal tract path. These represent the time for the i-th channel to travel upstream and downstream, respectively.

[0115] average speed of sound The calculation process is as follows:

[0116] ;

[0117] Relative range The calculation process is as follows:

[0118] ;

[0119] Where i∈[1,2…,N].

[0120] The above calculation method and process ensure that the sound velocity of the same medium at the same moment should be consistent, and the difference originates from flow disturbance or measurement noise.

[0121] Then filter for relative range The data enters the sampling sequence. In this embodiment, the first preset threshold... The value can be set to 0.5%, and can be adaptively adjusted between 0.3% and 1.0% depending on the instrument's measurement accuracy level to ensure that the flow of the training data in the rolling window does not exceed the upper limit of the instrument's repeatability.

[0122] S122. For each channel i, take the flow rate of the previous m sample sequences at the current time. and based on Calculate the average flow velocity Then, based on the flow velocity sequence of the first m sampling windows With average flow velocity The standard deviation was calculated. and based on standard deviation With average flow velocity The relative fluctuation amplitude was calculated. ; Filter out relative fluctuation range The effective flow rate data is entered into the scrolling data window, where... This is the second preset threshold.

[0123] Where k∈[1,2,…,m], and the flow velocity A set of flow velocities, which includes to There are a total of m flow velocity data.

[0124] Among them, average flow velocity The calculation process is as follows:

[0125] ;

[0126] Standard deviation The calculation process is as follows:

[0127] ;

[0128] relative fluctuation range The calculation process is as follows:

[0129] ;

[0130] In this embodiment, m can be 10.

[0131] Simultaneously, the relative fluctuation range was selected. Effective flow rate data enters the scrolling data window, second preset threshold. Similarly, 0.5% can be preferred.

[0132] That is, corrections are made at low flow rates, when When <a, the absolute standard deviation criterion is used instead. <0.001 m / s, to avoid the denominator being too small. Here, 'a' represents the low flow rate threshold, which is preferably 0.05 m / s in this embodiment. In other feasible embodiments, it can also be set to other values ​​according to the pipe diameter and flow range normalization.

[0133] Considering both steps S121 and S122, the effective flow velocity data to be screened must simultaneously meet the following requirements: and Therefore, it is called a dual criterion, and the selected effective flow rate data Included in the scrolling data window.

[0134] S123. When the data in the scrolling data window reaches the set length W, the earliest data is removed in chronological order, and the latest data is added to the scrolling data window. At the same time, the average flow rate of each channel is updated in real time. Standard deviation and the cross-correlation matrix of standardized variables ;

[0135] judge Does the rate of change continuously exceed a third preset threshold over a period of time T? If it continuously exceeds a certain threshold... If the rate of change is continuously greater than the third preset threshold within a period of time T, then the system will enter a downgrade mode.

[0136] in, The third preset threshold can be set according to the user's own choice. For example, in this embodiment, the third preset threshold is selected as 5% / h.

[0137] Specifically, when the data within the scrolling data window exceeds the set length W, a first-in, first-out (FIFO) strategy is adopted, meaning data is eliminated based on time order, replacing the oldest valid flow rate data with the latest valid flow rate data. Simultaneously, the average flow rate of each channel is updated in real time. Standard deviation and the cross-correlation matrix of standardized variables The process is as follows:

[0138] , .

[0139] In this embodiment, the full calculation of the cross-correlation matrix is ​​applicable to MCU platforms with sufficient computing power. In some low-power, resource-constrained instrument implementation scenarios, in order to reduce the computing load of the MCU, it is preferable to use an incremental update method to maintain the cross-correlation matrix, without having to repeatedly calculate the product of all historical data in the window every frame.

[0140] At the same time, if the multiplication and summation of each channel pair are maintained in advance... When data from a new sampling time t is included in the window and data from the oldest time tW is removed, the window is updated according to the following formula: Then the cross-correlation matrix When the data in the scrolling data window is less than the set length W, the denominator is the number of frames of the current valid flow rate data minus 1.

[0141] S13, Downgrade Mode;

[0142] Specifically, the downgrade mode is: based on the weighted average flow rate of the normal audio channel. The final flow rate Q is obtained by integration.

[0143] The weighted average flow rate is calculated by averaging the flow rates of all remaining normal channels, with each normal channel having a weight corresponding to its own flow rate. If the distribution is Gaussian, the weights can be set to 1:3:3, etc.

[0144] In other words, whether it is a pipe-type instrument or an insertion-type instrument, the data of the faulty channel must be discarded to ensure the accuracy of the measured data. When entering the degradation mode, the model update needs to be stopped and the above operation is performed. The normal channel is used to make up for the data of the faulty channel. That is, the existing normal channel data is used to replace the original data containing the faulty channel, so as to ensure that the measured data is as accurate as possible, and at the same time, the "flow field distortion alarm" label is output.

[0145] Then, the weighted average flow velocity was used. The final traffic Q under degraded mode is calculated, and the calculation process for the final traffic Q under degraded mode is as follows:

[0146] ;

[0147] Where Q is the final flow rate in degradation mode, and A is the cross-sectional area. The weighted average flow rate of all remaining normal channels; specifically, the weighted average flow rate. The calculation process can be found in step S41.

[0148] S2. Monitor the signal-to-noise ratio, transit time, and sound velocity deviation of each channel in real time and make data deviation judgments. If at least one data deviates from the nominal value, the corresponding channel i is judged as a faulty channel, the data is frozen, and the scroll window update is stopped until the fault is recovered or the instrument is restarted.

[0149] Reference Figure 1 In this embodiment, the nominal value (deviation parameter) can be selected from the following settings, such as:

[0150] Signal-to-noise ratio (SNR) < 10 dB, transit time deviates from nominal value by ±5%, and sound velocity deviation exceeds ±1%;

[0151] If any of the signal-to-noise ratio, transit time, or sound velocity deviation exceeds the preset value mentioned above, the corresponding channel is determined to be faulty channel i. Furthermore, after fault diagnosis is triggered, regardless of whether the current fluid flow state meets the dual criteria, model updates must be stopped and the current flow frozen. , , Until the fault is resolved or the instrument is restarted, prevent fault data from contaminating the model.

[0152] S3. Based on the flow rates of all normal channels, calculate the virtual flow rate of the faulty channel. ;

[0153] Reference Figure 1 Based on the current model, the associated model is retrieved, and the virtual flow rate of the faulty channel i is jointly calculated using the measured flow rates of all remaining normal channels. This maximizes the use of flow field profile information and overcomes the limitations of single-channel substitution.

[0154] For pipe-type and insertion-type instruments, virtual flow rates are implemented using different methods. Calculate the virtual flow velocity of the pipe section instrument. The calculation method is described in step S31, using the virtual flow rate of the insertion instrument. The calculation method is described in step S32.

[0155] S31. Virtual flow velocity calculation for pipe-type instruments;

[0156] First, a weighted average flow velocity is calculated based on all normal vocal tracts. This estimates the current flow conditions and then, based on this, calculates multiple flow segments during the factory pre-stored phase. Select the corresponding segment p.

[0157] Among them, the specific weighted average flow velocity The calculation process can be found in step S41.

[0158] The rules for selecting the corresponding segment are as follows:

[0159] The normalized anchor point velocity specified by the manufacturer for each section is: Calculate the current The segment with the smallest absolute deviation from each anchor point is selected as the current segment p, using the following formula:

[0160] ;

[0161] After selecting the current segment p, retrieve the regression coefficients corresponding to the current flow segment. The measured flow velocity vectors of all normal audio channels Substitute the values ​​into a multiple linear regression model for calculation:

[0162] ;

[0163] in, Let j be the virtual flow rate, j be the set of normal audio channels, and i be the faulty audio channel;

[0164] Summation term It covers all normal channels except for the faulty channel i, and the generation of virtual flow velocity is constrained by the coupling relationship between multiple channels.

[0165] S32. Virtual flow rate calculation for insertion-type instruments;

[0166] The correlation coefficient vector between the faulty channel i and the normal channel is maintained by a rolling data window before the fault and frozen at the time of the fault. and the cross-correlation matrix between normal vocal tracts A simplified weighted average algorithm based on signed correlation coefficients (i.e., distinguishing between positive and negative values) is used to calculate the standardized virtual flow velocity of the faulty channel. Then, the standardized virtual flow rate was... Perform denormalization to obtain the virtual flow rate. .

[0167] Among them, standardized virtual flow rate The calculation process is as follows:

[0168] ;

[0169] Where S represents the set of all normal vocal tracts. The normalized flow velocity vector for all normal vocal tracts. The target tract and normal tract in the cross-correlation matrix Using the correlation coefficient as a weighting factor, the algorithm assigns greater weight to channels with high correlation, thereby achieving adaptive fusion of multi-channel information.

[0170] Standardized virtual flow rate The calculation process for destandardization reduction is as follows:

[0171] ;

[0172] in, This is the virtual flow rate.

[0173] S4, Weighted average flow rate based on all normal channels For virtual flow rate Physical constraint correction is performed to obtain the corrected virtual corrected flow velocity. Based on virtual correction flow rate Reconstructed cross-sectional average flow velocity Based on cross-sectional average flow velocity Weighted average flow rate of all normal channels The cross-sectional corrected average flow velocity was obtained by confidence-weighted fusion calculation. .

[0174] The specific process is as follows, please refer to... Figure 1 Regardless of whether it's a pipe-type instrument or an insertion-type instrument, and regardless of the mode, the virtual flow rate of the faulty channel i is obtained. Physical constraint corrections were then performed to ensure that the reconstructed structure conformed to the principle of flow continuity, that is, the flow rate passing through the cross-section of the pipe at the same time was unique, and to eliminate the scaling error between the statistical interpolation model and the integral weights.

[0175] Specifically, the following steps are included:

[0176] S41. Calculate the weighted average flow rate of all normal channels. ;

[0177] Calculate the flow continuity anchor point value; when channel i fails, its original weight... It is not included in the weighted integral of the normal channels for now; it is only weighted and normalized by the remaining normal channels according to the original preset weights. This value reflects the true and reliable weighted average flow velocity under the current flow field. Weighted average flow velocity The calculation process is as follows:

[0178] ;

[0179] Among them, in the denominator The sum of normal channel weights can also be used The calculation is performed in a way that normalizes the weighted average flow rate to ensure that the average flow rate is calculated in a way that ensures normalization. Maintain the dimensions of the cross-sectional average flow velocity; The preset values ​​are directly calibrated at the factory and do not need to be recalculated or adjusted after a fault occurs. This avoids the problems in the prior art where recalculating the weights after a fault leads to the weights deviating from the original Gauss-Jacobi integral node, increased fault compensation error, and flow step during fault recovery.

[0180] S42, Based on virtual flow rate With weighted average flow velocity The corrected virtual corrected flow rate was calculated. ;

[0181] Virtual correction flow rate The calculation process is as follows:

[0182] ;

[0183] in, The virtual flow velocity is λ∈(0,1), where λ is the anchoring strength coefficient, preferably 0.3 to 0.5. A smaller λ indicates greater confidence in the reconstruction and preservation of more profile structural information; a larger λ indicates closer convergence to the anchor point and stronger robustness. This soft anchoring only performs bounded convergence on the reconstructed values ​​and does not force the full-channel weighted integral to equal the weighted average flow velocity. Therefore, the reconstructed fault channel velocity still truly enters the final flow rate; the anchoring strength coefficient λ is a fixed constant solidified at the factory or during on-site debugging, and its value is determined by the fault simulation scan of the calibration bench, preferably 0.3 to 0.5. In this embodiment, it is preferably 0.4. It is not adjusted online with the flow field during operation, thus maintaining consistency with the design principles of fixed factory weights, no re-solution, and no drift.

[0184] S43, Based on virtual corrected flow rate Reconstructed cross-sectional average flow velocity ;

[0185] Using the corrected virtual corrected flow rate To reconstruct the cross-sectional average velocity The specific calculation process is as follows:

[0186] ;

[0187] in, W represents the average flow velocity of the reconstructed cross-section. j For the weight of the normal vocal tract, v j For the normal vocal tract j at time t, w i The weight of the faulty channel i, This is for virtual calibration flow rate.

[0188] S44, Based on cross-sectional average velocity With weighted average flow velocity Confidence-weighted fusion was performed to calculate the cross-sectional corrected average flow velocity. .

[0189] The specific calculation process is as follows:

[0190] Define the reconstruction confidence β, where And β is determined in the following way.

[0191] First, the goodness of fit of the correlation model ;

[0192] Calculate virtual corrected flow rate With weighted average flow velocity deviation ;

[0193] The degree of distortion in the current flow field, i.e., the velocity ratio Deviation from the rated flow rate ratio The degree of determination, that is, the judgment process in steps S111 and S112, is to determine... and or The relationship (pipeline instrument), or the attenuation degree of the main diagonal element of the cross-correlation matrix (insertion instrument).

[0194] The strength of the correlation between the remaining normal channels and the target channel, etc.

[0195] In this embodiment, β is calculated as follows:

[0196] ;

[0197] Where β0 is the baseline confidence level, which in this embodiment is preferably between 0.90 and 0.95, and f is the goodness of fit. The monotonically increasing saturation function, meaning the higher the goodness of fit and the more reliable the association model, the greater its contribution to the confidence score. For example... That is, when Reaching the saturation threshold When f takes the value 1, Below this saturation threshold Confidence level decreases linearly with goodness of fit;

[0198] g and h are monotonically decreasing saturation functions, i.e., virtual corrected flow rates. Weighted average flow rate The greater the deviation or the greater the degree of flow field distortion, the lower the confidence level. For example, , ;

[0199] In this embodiment, based on the threshold value calibrated according to the instrument's metering level and the characteristics of the on-site flow field, Preferred respectively ,in, The minimum goodness of fit required for confidence saturation. Used to limit virtual correction flow rate relative weighted average flow velocity Normalization deviation, Normalized deviation used to limit flow field distortion; among them, The calculations differ between pipe-type and insertion-type instruments. In pipe-type instruments, Flow rate ratio can be selected Deviation The percentage, in insertion instruments, can be obtained from the normalized attenuation of the main diagonal element of the cross-correlation matrix relative to the factory baseline.

[0200] The ratio of flow rates relative to factory rated flow rate The normalized deviation (pipeline instrument) or the normalized amount of the attenuation of the main diagonal element of the cross-correlation matrix (insertion instrument).

[0201] In another embodiment, β can also be obtained from the above four types of factors through other quantifiable methods such as table lookup, fuzzy reasoning, or piecewise functions.

[0202] After obtaining β, the final cross-sectional corrected average velocity is calculated as follows: :

[0203] ;

[0204] When the flow field is stable and the model is reliable, β approaches 1, and the reconstructed flow velocity dominates the flow rate. Under non-equivalent channels and mild distortion, this significantly improves the compensation accuracy compared to "directly discarding faulty channels". When the distortion is severe or the model is unreliable, β approaches 0, degenerating into a normalized weighted average of the remaining normal channels, ensuring metrological robustness. This achieves a smooth transition to "adapt to flow field distortion", rather than a simple compromise to the fault state.

[0205] The calculation process described in this application embodiment can be applied to the flow rate diagnosis and compensation of a single faulty channel. If there are multiple faulty channels, the above calculation process can be analogized to the flow rate diagnosis and compensation of multiple faulty channels, such as:

[0206] Assuming the set of faulty channels is F and the set of normal channels is S, for k∈F, the measured flow velocities of the channels in S are used to deduce the flow rate using the above process. When a channel in the normal channel set S subsequently fails, its reconstructed flow rate is included in the available set. The measured values ​​of the remaining normal channels and the reconstructed values ​​are used to extrapolate the results. The new weighted average flow rate data of the latest normal channel set is then used to perform subsequent continuous correction and weighted confidence fusion to achieve cascaded compensation for progressive faults.

[0207] S5, Flow Accumulation and Status Output;

[0208] Cross-sectional corrected average flow velocity Perform integration to obtain the final flow rate Q, and then output it.

[0209] The calculation process is as follows:

[0210] ;

[0211] Where A is the cross-sectional area of ​​the pipe. The cross-sectional corrected average flow velocity.

[0212] After calculating the final flow rate Q, the instrument also outputs the current metering mode, such as normal mode, degraded mode, or flow field distortion alarm.

[0213] During fault recovery, due to The original preset values ​​remain unchanged throughout the process, and the flow totalization smoothly switches back from the "fault-state fusion value" to the "full-channel weighted value" without any step change caused by weight re-decomposition.

[0214] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for compensating for channel faults in a multi-channel ultrasonic flowmeter that adapts to flow field distortion, characterized in that, The ultrasonic flow meter includes N non-equivalent channels, where N≥3, and the preset weight of each non-equivalent channel is... ,and For i∈[1,2,…,N], the method includes the following steps: S1. Identify whether the ultrasonic flow meter is a pipe-type or insertion-type instrument. If it is a pipe-type instrument, execute S11; if it is an insertion-type instrument, execute S12. S11. Perform factory calibration on pipe-type instruments. During use, calculate the flow velocity ratio between the external and internal channels under steady-state conditions. and based on Ratio to the calibrated flow rate Depending on the size relationship, different strategies are implemented; S12. Set a scrolling data window with a length of W, and set a data filtering strategy to filter valid flow rate data into the scrolling data window. S2. Monitor the signal-to-noise ratio, transit time, and sound velocity deviation of each channel in real time and make data deviation judgments. If at least one data deviates from the nominal value, the corresponding channel i is judged as a faulty channel, the data is frozen, and the scroll window update is stopped until the fault is recovered or the instrument is restarted. S3. Based on the flow rates of all normal channels, calculate the virtual flow rate of the faulty channel. ; S4, Weighted average flow rate based on all normal channels For virtual flow rate Physical constraint correction is performed to obtain the corrected virtual corrected flow velocity. ; Based on virtual corrected flow rate Reconstructed cross-sectional average flow velocity ; Based on cross-sectional average flow velocity Weighted average flow rate of all normal channels The cross-sectional corrected average flow velocity was obtained by confidence-weighted fusion calculation. ; S5, Flow Accumulation and Status Output; Cross-sectional corrected average flow velocity Perform integration to obtain the final flow rate Q, and then output it.

2. The channel fault compensation method for a multi-channel ultrasonic flowmeter adapting to flow field distortion according to claim 1, characterized in that, Based on S11 Ratio to the calibrated flow rate The size relationship, and the different strategies employed, include the following steps: S111, Judgment Does it belong to [ If it belongs to the range, the factory coefficient is selected; otherwise, proceed to S112. S112, Judgment Does it belong to [ (inside) or ( If it falls within the range, then correction is performed and regression coefficients are obtained. If it does not belong to the category, proceed to S113; S113, determined to be severely distorted, and switched to degraded mode.

3. The channel fault compensation method for a multi-channel ultrasonic flowmeter adapting to flow field distortion according to claim 1, characterized in that, The data filtering strategy in S12 includes the following steps: S121. Calculate the measured sound velocity of each channel at the current time t. Based on each measured sound velocity Calculate the average speed of sound Then, based on each measured sound velocity With average speed of sound The relative range of each channel was calculated. And filter the relative range The data enters the sampling sequence, where, The first preset threshold; S122. For each channel i, take the flow rate of the previous m sample sequences at the current time. and based on Calculate the average flow velocity Then, based on the flow velocity sequence of the first m sampling windows With average flow velocity The standard deviation was calculated. and based on standard deviation With average flow velocity The relative fluctuation amplitude was calculated. ; Filter out relative fluctuation range The effective flow rate data is entered into the scrolling data window, where... This is the second preset threshold.

4. The channel fault compensation method for a multi-channel ultrasonic flowmeter adapting to flow field distortion according to claim 1, characterized in that, The data filtering strategy in S12 also includes the following steps: S123. When the data in the scrolling data window reaches the set length W, the earliest data is removed in chronological order, and the latest data is added to the scrolling data window. At the same time, the average flow rate of each channel is updated in real time. Standard deviation and the cross-correlation matrix of standardized variables ; judge If the rate of change is continuously greater than the third preset threshold within a period of time T, then the system will enter a downgrade mode.

5. A method for channel fault compensation in a multi-channel ultrasonic flowmeter adapting to flow field distortion according to claim 2 or 4, characterized in that, The downgrade mode is as follows: Weighted average flow rate based on normal vocal tract The final flow rate Q is obtained by integration.

6. The method for channel fault compensation of a multi-channel ultrasonic flowmeter adapting to flow field distortion according to claim 1, characterized in that, S3 includes the following steps: S31. Virtual flow velocity calculation for pipe-type instruments; Retrieve the regression coefficients corresponding to the current flow segment The measured flow velocity vectors of all normal audio channels Substitute the values ​​into a multiple linear regression model for calculation: ; in, Let j be the virtual flow rate, j be the set of normal audio channels, and i be the faulty audio channel; S32. Virtual flow rate calculation for insertion-type instruments; The correlation coefficient vector between the faulty channel i and the normal channel is maintained by a rolling data window before the fault and frozen at the time of the fault. and the cross-correlation matrix between normal vocal tracts A simplified weighted average algorithm based on the correlation coefficient amplitude is used to calculate the standardized virtual flow velocity of the faulty channel. Then, the standardized virtual flow rate was... Perform denormalization to obtain the virtual flow rate. .

7. The method for channel fault compensation of a multi-channel ultrasonic flowmeter adapting to flow field distortion according to claim 1, characterized in that, S4 includes the following steps: S41. Calculate the weighted average flow rate of all normal channels. ; ; S42, Based on virtual flow rate With weighted average flow velocity The corrected virtual corrected flow rate was calculated. The calculation process is as follows: ; in, For virtual flow rate; S43, Based on virtual corrected flow rate Reconstructed cross-sectional average flow velocity ; ; S44, Based on cross-sectional average velocity With weighted average flow velocity Confidence-weighted fusion was performed to calculate the cross-sectional corrected average flow velocity. ; 。 8. The method for channel fault compensation of a multi-channel ultrasonic flowmeter adapting to flow field distortion according to claim 7, characterized in that, The calculation process for the final flow rate Q in S5 is as follows: ; Where A is the cross-sectional area of ​​the pipe. The cross-sectional corrected average flow velocity.

Citation Information

Patent Citations

  • Fault diagnosis and compensation method for multi-channel ultrasonic gas flow meter

    CN106643987A

  • Fault sound channel compensation method based on crossed four-sound-channel ultrasonic flowmeter

    CN116952316A

  • Self-adaptive flow calculation method and system for multichannel gas ultrasonic flowmeter

    CN118225194A

  • Flow compensation method of multichannel ultrasonic water meter, ultrasonic water meter, equipment and medium

    CN121113210A

  • Large-caliber cold and hot water flow metering system based on double-track ultrasonic detection

    CN121475348A