Multivariate coupling calibration method for water meter error curve
By dividing the flow range in water meter error calibration, constructing a partitioned deviation sample set and fitting the nonlinear coupling mapping relationship between water pressure and water temperature, a multivariable coupled error correction field is generated. This solves the nonlinear coupling effect of water pressure and water temperature on water meter measurement error, and improves the measurement accuracy and calibration reliability of water meters under various operating conditions.
Patent Information
- Application Number
- CN202611483129.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-22
- Publication Date
- 2026-11-27
AI Technical Summary
Existing water meter calibration technology fails to effectively characterize the nonlinear coupling modulation effect of water pressure and water temperature on water meter measurement error, resulting in calibration results that are only valid under standard laboratory conditions. When multiple variables fluctuate synchronously in the field, the error curve shape deviates systematically from the calibration results.
By dividing historical error data of water meters into flow ranges, a partitioned deviation sample set is constructed. The nonlinear coupling mapping relationship between water pressure and water temperature on error offset is fitted to generate a multivariate coupling weight matrix. Continuity constraint processing is applied to the boundary between adjacent ranges to form a multivariate coupling error correction field. Finally, the correction amount is superimposed node by node to generate the water meter error curve after multivariate coupling calibration.
It significantly improves the metering accuracy and calibration reliability of water meters under actual operating conditions across various operating conditions, and solves the problem of systematic deviation between the error curve shape and calibration results of existing methods when multiple variables fluctuate synchronously.
Smart Images

Figure CN123175402A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of error correction and data processing technology for flow meters, and more specifically, to a multivariable coupling calibration method for water meter error curves. Background Technology
[0002] As a fundamental terminal device in the urban water supply metering system, the accuracy of water meters directly affects the operational efficiency of water supply companies and the consumer rights of end users. In recent years, with the deepening of smart water management and the large-scale deployment of smart water meters, water meter calibration technology has evolved from traditional offline calibration to online dynamic calibration. Early water meter calibration mainly relied on standard flow calibration devices under laboratory conditions. Under idealized environmental control such as constant temperature and pressure, and constant temperature water bath, the indication error of the water meter at several discrete flow points was measured, and then a complete error curve was generated through interpolation or fitting. With the integration of IoT technology and sensor technology, real-time acquisition and remote transmission of water meter operating status data have become possible. A number of water meter operating error calibration methods based on IoT services have been proposed. The core idea is to deploy standard meters or reference metering devices in the water supply network to obtain the indication error of the water meter under actual operating conditions and perform calibration. Meanwhile, research on multi-parameter compensation for temperature, pressure, and other parameters in the field of flow meters has also made progress. Existing studies have employed methods such as decoupled curve fitting and bivariate surface fitting to correct the instrument coefficients of gear flow meters under variable temperature and pressure conditions. Some researchers have also attempted to analyze the contribution of various interference factors to the error of smart water meters by setting up single-factor and composite-factor test groups. These technological advancements indicate that water meter calibration is developing from a single flow dimension towards multi-factor comprehensive calibration.
[0003] However, existing water meter calibration technologies still have several fundamental shortcomings. First, regarding calibration benchmarks, current mainstream methods still use the error curve under a single flow variable as the calibration basis, assuming that the water meter's measurement error is only related to the instantaneous flow rate, and that water pressure and temperature are only used as environmental control conditions for verification rather than as sources of error. This assumption holds largely true under constant pressure and temperature conditions in the laboratory, but in actual water supply networks, water pressure fluctuates continuously due to user water usage timing and network scheduling, and water temperature exhibits periodic drift with seasonal changes and variations in the water source. Studies have shown that the steady-state measurement characteristics of liquid flow meters are inherently temperature and pressure dependent, and their error curves need to be measured within the applicable temperature and pressure range. Second, in terms of how water pressure and temperature are handled, existing methods typically treat them as independent single-factor correction terms, employing linear superposition or piecewise linear compensation strategies. This fails to effectively characterize the nonlinear coupling modulation effect of water pressure and temperature on the response characteristics of the water meter's measuring mechanism—that is, the degree of influence of water pressure on error may change with changes in water temperature, and vice versa. Furthermore, in terms of the spatial structure of the error curve, most existing calibration methods employ a uniform correction coefficient or global fitting function across the entire flow range, neglecting the nonlinear distribution of the coupling influence coefficients of water pressure and temperature as they change with the flow range. This results in calibration results being effective only under specific operating conditions, with the error curve shape deviating systematically from the calibration results across different operating conditions. The essence of the above problem is that when the coupling influence of water pressure and temperature on water meter measurement error exhibits a nonlinear distribution as the flow range changes, existing error curves calibrated based on a single flow dimension cannot map the multivariate coupling effect to the error correction amount for the corresponding flow range. Summary of the Invention
[0004] To address the aforementioned technical problems, this invention provides a multivariate coupling calibration method for water meter error curves. This method addresses, to some extent, the problem that existing error curves calibrated based on a single flow dimension cannot map the multivariate coupling effect to the error correction amount of the corresponding flow range when the coupling influence coefficients of water pressure and water temperature on water meter measurement error exhibit a nonlinear distribution as the flow range changes. This leads to the failure of error curve calibration under cross-operating conditions.
[0005] According to one aspect of the present invention, a multivariate coupled calibration method for water meter error curves is provided, comprising:
[0006] Based on the water pressure and water temperature reference values under laboratory calibration conditions, the historical error data of the water meter are divided into flow ranges and a partitioned deviation sample set is constructed. The partitioned deviation sample set includes the representative value of flow, water pressure deviation status, water temperature deviation status, and error offset.
[0007] Using the water pressure deviation and water temperature deviation in each flow range as inputs and the error offset as a supervision label, the nonlinear coupling mapping relationship between water pressure and water temperature and the error offset in each flow range is fitted to obtain the partition coupling weight matrix.
[0008] The coupling correction amount of each flow interval error curve node is calculated based on the partition coupling weight matrix, and the coupling correction amount at the boundary of adjacent flow intervals is subjected to continuity constraint processing to obtain the multivariate coupling error correction field.
[0009] Using the multivariable coupled error correction field as a reference, the error curve nodes of each flow interval are superimposed with the coupling correction amount node by node to obtain the water meter error curve after multivariable coupled calibration.
[0010] Furthermore, the method for dividing the flow range includes: using the flow range between adjacent calibration nodes in the laboratory calibration error curve as the basic flow range;
[0011] If the error offset of historical samples within a certain basic flow range varies with the flow location, then an auxiliary flow node is added within that basic flow range. The auxiliary flow node is determined by the quantile position of the sample flow distribution within that range, the local slope change of the calibration error curve, and the uncertainty of the reference metering device. The range of adjacent nodes after adding the auxiliary flow node is taken as the flow range.
[0012] Furthermore, the nonlinear coupling mapping relationship includes:
[0013] The dimensionless deviations of water pressure and water temperature are constructed as nonlinear coupled feature vectors containing constant terms, first-order terms and interaction terms. The representative value of flow rate is constructed as the flow rate location basis function. The partitioned coupling weight matrix is obtained by fitting the error offset as the supervision label.
[0014] The rows of the partitioned coupling weight matrix correspond to the coupling features, and the columns correspond to the nodes of the error curve.
[0015] Furthermore, the partition coupling weight matrix is obtained according to the following objective function:
[0016]
[0017] in, The number of valid samples in the m-th flow interval; This is the error offset. This represents the sample flow rate. The sample water pressure and water temperature are in dimensionless deviation state; For sample reliability weights; This is the scale of the error offset; This is a difference operator along the direction of the flow node; and These are the node direction smoothing constraint coefficient and the initial weight consistency constraint coefficient, respectively. The initial weight matrix, This represents the basis function vector representing the flow position of flow q within the m-th flow interval; This represents the nonlinear coupling characteristic vector within the m-th flow interval; Here is the candidate weight matrix to be optimized.
[0018] Furthermore, the continuity constraint processing includes:
[0019] At the shared boundary of adjacent flow intervals, the original boundary correction values calculated for the left and right flow intervals are obtained respectively. The two flow intervals are then weighted and fused according to their reliability under the target state to obtain a unique continuous boundary correction value.
[0020] The reliability is determined by the sample coverage density near the target state, the distance between the target state and the sample distribution center of the flow range, the verification residual, and the uncertainty of the reference meter.
[0021] Furthermore, the continuity constraint processing also includes: after determining the continuity boundary correction amount of the shared boundary, the coupling correction amount after continuity constraint in the m-th flow interval is determined as follows:
[0022]
[0023]
[0024] in, This represents the coupling correction amount after continuity constraint within the m-th flow interval; This is the original coupling correction amount; and These are the left and right boundary flows of the m-th flow interval, respectively; For traffic The dimensionless position within this interval; and These are the continuous boundary corrections obtained by fusing the reliability of adjacent intervals at the left and right boundaries, respectively. and It is a dimensionless boundary transition function.
[0025] Furthermore, the multivariable coupling error correction field is obtained based on the coupling correction amount. Calculate the correction at any flow location within each flow interval, and then combine the continuous boundary corrections of adjacent intervals at the shared boundary after reliability fusion. Endpoint constraints ensure that the correction amount is continuous at the boundaries of adjacent intervals, ultimately forming a multivariate coupled error correction field that covers the entire flow range and can be queried under different water pressure and temperature conditions.
[0026] According to another aspect of the present invention, a multivariable coupled calibration system for water meter error curves is provided, comprising:
[0027] The data reading and partitioning module is used to divide the historical error data of the water meter into flow ranges and construct a partitioned deviation sample set based on the water pressure reference value and water temperature reference value under laboratory calibration conditions. The partitioned deviation sample set includes the flow representative value, water pressure deviation status, water temperature deviation status and error offset.
[0028] The partition coupling weight solution module is used to fit the nonlinear coupling mapping relationship between water pressure and water temperature on error offset in each flow interval, with the water pressure deviation state and water temperature deviation state of each flow interval as input and the error offset as supervision label, to obtain the partition coupling weight matrix.
[0029] The correction field generation module is used to calculate the coupling correction amount of each flow interval error curve node based on the partition coupling weight matrix, and to perform continuity constraint processing on the coupling correction amount at the boundary of adjacent flow intervals to obtain a multivariable coupling error correction field.
[0030] The calibration curve output module is used to superimpose the error curve nodes of each flow range with the coupling correction amount node by node, based on the multivariable coupling error correction field, to obtain the water meter error curve after multivariable coupling calibration.
[0031] Compared with existing technologies, the multivariate coupling calibration method for water meter error curves provided by this invention divides historical error data into multiple flow intervals along the flow axis using water pressure and water temperature reference values under laboratory calibration conditions. It then constructs a partitioned deviation sample set for each interval, including water pressure deviation, water temperature deviation, and error offset. Using each partitioned sample set as training data, it fits a nonlinear coupling mapping relationship between water pressure and water temperature and the error offset to obtain a partitioned coupling weight matrix. Based on this matrix, it calculates the coupling correction amount for each flow interval error curve node and applies continuity constraints to the boundaries of adjacent intervals to form a continuously queryable multivariate coupling error correction field in the three-dimensional space of flow, water pressure, and water temperature. Finally, it superimposes the laboratory calibration error curve with the coupling correction amount corresponding to the target state in the correction field node by node to obtain the multivariate coupled calibration water meter error curve. This approach overcomes the limitations of traditional single-variable calibration methods that neglect or linearize the effects of water pressure and temperature. It quantifies and maps the nonlinear coupling effect of water pressure and temperature on water meter measurement errors to the error curve nodes of the corresponding flow intervals. This effectively solves the technical problem that existing calibration results are only valid under standard laboratory conditions and that the error curve shape deviates systematically from the calibration results when multiple variables fluctuate synchronously in the field. As a result, it significantly improves the measurement accuracy and calibration reliability of water meters under actual operating conditions across various operating conditions, providing technical support for the refined metering management of water supply networks. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:
[0033] Figure 1 This is a system block diagram of a multivariate coupling calibration method for water meter error curves according to an embodiment of the present invention.
[0034] Figure 2 This is a comparison diagram of the water meter error curves before and after calibration using the multivariate coupling calibration method for water meter error curves according to an embodiment of the present invention.
[0035] Figure 3 This diagram illustrates an application scenario of the multivariate coupling calibration method for water meter error curves according to an embodiment of the present invention. Detailed Implementation
[0036] Hereinafter, exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments of the present invention. It should be understood that the present invention is not limited to the exemplary embodiments described herein.
[0037] Figure 1 This is a system block diagram of a multivariate coupled calibration method for water meter error curves according to an embodiment of the present invention. Figure 1 As shown, the multivariate coupling calibration method for water meter error curves includes:
[0038] S1. The calibration processing device first reads the basic calibration data generated by the water meter under laboratory calibration conditions. Using the water pressure and water temperature reference values in the basic calibration data as references, it divides the historical error data of the water meter into multiple flow intervals along the flow axis. Then, within each flow interval, it extracts the deviation of the sample water pressure relative to the water pressure reference value, the deviation of the sample water temperature relative to the water temperature reference value, and the error offset of the sample measured error relative to the laboratory calibration error curve, forming a partitioned deviation sample set corresponding to each flow interval. This partitioned deviation sample set is used to enable subsequent processing to establish the coupling relationship between water pressure and water temperature and the water meter error offset in different flow intervals, rather than using a uniform single-variable calibration curve across the entire flow range to characterize the on-site error state.
[0039] Specifically, the basic calibration data read by the calibration processing device includes calibration flow nodes, calibration errors corresponding to each calibration flow node, water pressure reference values, and water temperature reference values. The calibration flow nodes are discrete flow points on the laboratory calibration error curve, and may include minimum flow, boundary flow, common flow, overload flow, and supplementary calibration points in between. The calibration error is the error value formed by the water meter relative to a standard metering device under laboratory reference operating conditions. The water pressure reference value is the stable pressure reference used to form the laboratory calibration error curve. The water temperature reference value is the stable temperature reference used to form the laboratory calibration error curve. To ensure that subsequent error offsets, coupling corrections, and post-calibration errors can be calculated within the same error coordinate system, the calibration processing device unifies the measured error, calibration error, error offset, and coupling correction to the same error unit. In one embodiment, both the calibration error and the measured error are expressed as percentage errors, while the error offset and coupling correction are expressed as percentage points.
[0040] Furthermore, the calibration processing device determines the flow range based on the flow nodes of the laboratory calibration error curve and the variation segment of the water meter's metering characteristics. If the basic calibration data already includes metering-significant nodes such as minimum flow, boundary flow, normal flow, and overload flow, the calibration processing device uses the flow range between adjacent calibration nodes as the basic flow range. If there are many historical samples within a certain basic flow range, and the offset of the measured error relative to the laboratory calibration error curve shows a significant curvature with the flow position, the calibration processing device, combined with the quantile position of the sample flow distribution within that range, the local slope variation of the calibration error curve, and the uncertainty of the reference metering device, adds auxiliary flow nodes within that basic flow range, and uses the range of adjacent nodes after adding auxiliary flow nodes as the new flow range. The resulting flow range is jointly determined by the water meter calibration nodes, the metering agency response segment, and the historical sample distribution, ensuring that the coupling relationship fitted within each subsequent flow range corresponds to a clearly defined flow operating segment.
[0041] Subsequently, the calibration processing device reads historical error data generated during on-site operation, multi-condition verification tests, or historical calibration retests. This historical error data includes multiple sample measurement windows, each containing at least a representative value for flow rate, a representative value for water pressure, a representative value for water temperature, and a measured error. The measured error can be obtained through standard meter comparison, the standard container method, online reference metering devices, or other reference metering devices with metrological traceability. For example, within the same measurement window, the cumulative volume of the water meter to be calibrated is... The cumulative volume of the reference measuring device is Then the calibration processing device can Convert the measured error to the measurement window and convert its unit to the error unit consistent with the laboratory calibration error.
[0042] Furthermore, the calibration processing device performs metering window alignment processing on each historical sample. If the sampling frequencies of flow rate, water pressure, and water temperature are different, the calibration processing device maps each sampling point to the same metering window that forms the measured error according to the sampling timestamp, and calculates representative values for flow rate, water pressure, and water temperature based on time proportion or volume contribution. For water meters where cumulative volume error is the primary evaluation object, a volume-weighted method is preferably used to form the window representative value, so that pressure or temperature disturbances with short duration but small volume contribution are not excessively amplified. Through this alignment processing, the measured errors of flow rate, water pressure, water temperature, and water temperature in the sample correspond to the same hydraulic operation process.
[0043] After the sample measurement windows are aligned, the calibration processing device determines the flow range to which the sample belongs based on the representative value of the sample flow rate. If the representative value of the sample flow rate is located between the left and right boundaries of a flow range, the sample is assigned to that flow range. If the representative value of the sample flow rate is located near the shared boundary of adjacent flow ranges and is representative of both sides, the calibration processing device records the sample as a boundary sample and uses it as the basis for samples near the shared boundary in subsequent continuity constraint processing. After determining the flow range to which the sample belongs, the calibration processing device obtains the calibration error corresponding to the sample flow rate location on the laboratory calibration error curve. If the sample flow rate does not completely coincide with the calibration flow rate node, a conformal piecewise interpolation method consistent with the laboratory calibration curve generation method is used to determine the calibration error of the flow rate location, so that the interpolation result maintains the error variation trend between adjacent calibration nodes.
[0044] Subsequently, the calibration processing device calculates the error offset of the sample's measured error relative to the calibration error. This error offset is the difference between the sample's measured error and the laboratory calibration error at the same flow rate location, characterizing the error curve shift of the sample relative to the laboratory reference conditions under the combined effects of actual water pressure and actual water temperature. Simultaneously, using the water pressure and temperature reference values under the laboratory calibration conditions as references, the calibration processing device calculates the water pressure deviation of the sample's representative water pressure value relative to the water pressure reference value, and the water temperature deviation of the sample's representative water temperature value relative to the water temperature reference value. Since water pressure and water temperature are different physical quantities, the calibration processing device does not directly input their difference into the subsequent coupling mapping. Instead, it converts them into dimensionless deviation states based on the water pressure normalized reference value and water temperature normalized reference value for the corresponding flow range. The water pressure normalization reference quantity is determined by the water pressure distribution span of historical stable samples within the flow range, the effective range of the pressure sensor, and the allowable working pressure range of the water meter; the water temperature normalization reference quantity is determined by the water temperature distribution span of historical stable samples within the flow range, the effective range of the temperature sensor, and the actual operating temperature range of the water supply system.
[0045] Furthermore, the calibration processing device writes the representative value of the sample flow rate, dimensionless deviation of water pressure, dimensionless deviation of water temperature, error offset, the flow range to which the sample belongs, and sample reliability information into the corresponding partitioned deviation sample set. The sample reliability information is jointly determined by the uncertainty of the reference metering device, the data integrity within the sample metering window, the flow rate operation stability, and the coverage of the flow range by the sample's operating conditions. This information is used to adjust the contribution of different samples to the coupling mapping relationship during subsequent matrix fitting. If the reference metering device of a historical sample is in an abnormal state, the measured error metering window does not correspond to the flow rate, water pressure, and water temperature records, or the pressure and temperature records are missing and cannot be recovered from valid data within the same window, the calibration processing device will not write this sample into the valid partitioned deviation sample set. If there are short-term pressure spikes or temperature sampling spikes in the sample, the calibration processing device performs smoothing processing based on the sensor calibration curve and the trend of continuous data changes within the same metering window, so that the deviation status written into the sample set reflects the continuous operating conditions that actually affect the cumulative metering error of the water meter.
[0046] In one implementation, a certain flow range is [0.8, 1.6] m^3 / h, the laboratory-calibrated water pressure reference value is 0.30 MPa, the water temperature reference value is 20 degC, the water pressure normalized reference value determined by historical stable samples and the effective operating range of the sensor in this range is 0.10 MPa, and the water temperature normalized reference value is 10 degC; the flow rate representative value of a certain field verification sample is... The water pressure is represented by a value of 0.34 MPa, the water temperature by a value of 24 degC, and the measured error is 1.10%. The calibration error at 1.2 m³ / h, obtained through interpolation from the laboratory calibration curve, is 0.82%. Therefore, the calibration processing device obtains a dimensionless deviation of 0.4 for the water pressure and 0.4 for the water temperature, with an error offset of 0.28 percentage points. This sample is then written into... The sample set of zone deviations corresponding to the flow range. The above example is only used to illustrate the process of forming zone deviation samples and does not limit the actual flow range, water pressure range, water temperature range or error value of the water meter.
[0047] S2. For each partition deviation sample set obtained in S1, the calibration processing device extracts the dimensionless deviation of water pressure, dimensionless deviation of water temperature, representative value of flow rate, and error offset for each sample within that flow range. It constructs the dimensionless deviations of water pressure and water temperature as coupled features containing univariate terms, interaction terms, and nonlinear terms. It constructs the representative value of flow rate as a flow location basis function and uses the error offset as a supervision label to fit the nonlinear coupled mapping relationship between water pressure and water temperature on the error offset within that flow range, obtaining the partition coupling weight matrix corresponding to that flow range. The partition coupling weight matrix is used to represent the contribution of water pressure, water temperature, and their interaction changes to the correction amount of the error curve nodes within the corresponding flow range.
[0048] Specifically, the calibration processing device establishes a partitioned coupled mapping model for the m-th flow interval. The input to this model is not a single water pressure deviation or water temperature deviation, but a coupled characteristic vector composed of both dimensionless water pressure and dimensionless water temperature deviations. This coupled characteristic vector may include a constant term, a first-order term for water pressure deviation, a first-order term for water temperature deviation, a product term for water pressure and water temperature deviations, a squared term for water pressure deviation, a squared term for water temperature deviation, and local basis function terms. The constant term is used to absorb the overall bias of this flow interval relative to the laboratory reference condition; the first-order terms for water pressure and water temperature deviations are used to describe the directional contribution of single variable changes to the error offset; the product term describes the coupling relationship between water pressure influence and water temperature state changes, or vice versa; the squared term and local basis function terms describe the nonlinear response where the error offset no longer changes linearly after the deviation amplitude increases.
[0049] Furthermore, if the number of samples or the sample coverage is narrow within the m-th flow interval, the calibration processing device can employ a coupled feature vector composed of constant terms, first-order terms, interaction terms, and square terms to reduce free parameters without sample support. If the sample coverage within the flow interval is sufficient, and the water pressure and temperature states have multiple densely distributed regions in the dimensionless plane, the calibration processing device can add a two-dimensional radial basis function term or a bivariate spline basis function term. The center position of the local basis function term is determined by the cluster center or quantile position of the samples within the same flow interval on the dimensionless deviation planes of water pressure and water temperature, and the scale is jointly determined by the distance between adjacent centers and the sample density. Since the input of the local basis function is a dimensionless deviation, its distance operation, exponential operation, or spline operation are all completed in the dimensionless space, avoiding the problem of directly adding the dimensions of water pressure and water temperature.
[0050] Subsequently, the calibration processing device constructs a flow location basis function based on the position of the representative sample flow rate value within the corresponding flow range. If the flow range is defined only by two error curve nodes, the flow location basis function uses left and right node shape functions; the closer the sample is to the left node, the larger the left node shape function component, and the closer the sample is to the right node, the larger the right node shape function component. If the flow range includes auxiliary flow nodes, the flow location basis function uses a piecewise spline shape function or a locally supported shape function, allowing the sample error offset to be distributed across multiple error curve nodes within the range. All components of the flow location basis function are dimensionless, and the sum of the components at the same flow location is one, ensuring that the subsequently calculated error correction corresponds to the calibration error curve nodes.
[0051] In one implementation, the coupling correction amount within the m-th flow interval is determined according to the following core mapping relationship:
[0052]
[0053] in, This represents the state of deviation in flow rate q, water pressure, and water temperature within the m-th flow interval. The error correction amount caused by the coupling of water pressure and water temperature is expressed in percentage points or error units consistent with the error curve. This represents the state vector composed of dimensionless deviations in water pressure and water temperature; This represents the nonlinear coupling characteristic vector within the m-th flow interval, where each component is a dimensionless quantity. This represents the partition coupling weight matrix of the m-th flow interval, where its rows correspond to the coupling characteristics and its columns correspond to the error curve nodes or auxiliary nodes within that flow interval. Let f(q) represent the basis function vector of flow position in the m-th flow interval, where each component is dimensionless.
[0054] The above core mapping relationship indicates that the calibration processing device first utilizes The deviations in water pressure and temperature are converted into nonlinear coupling characteristics, and then the partitioned coupling weight matrix is used. The coupling characteristics are mapped to the correction contributions of each error curve node within the flow range, and finally utilized... The nodal correction contribution is projected onto the specific flow location. Therefore, the coupled effects of water pressure and temperature are no longer treated as a uniform, fixed correction coefficient across the entire flow range, but are instead mapped to the corresponding flow interval and the corresponding error curve nodes.
[0055] Furthermore, the calibration processing device uses the error offset in the partitioned deviation sample set as a supervision label to obtain... In one implementation, the partition coupling weight matrix is determined according to the following objective function, and the regularization parameter is adaptively scaled with the sample support capability:
[0056]
[0057]
[0058] in, represents the number of valid samples within the m-th flow interval; i is the sample number. S1 represents the error offset obtained from S1, in percentage points. This represents the sample flow rate. The sample water pressure and water temperature are in dimensionless deviation state; The sample reliability weight is dimensionless and is calculated from the reference measurement uncertainty, data integrity within the measurement window, flow operation stability, and operating condition coverage, and is normalized within the same flow range. The scale of the error offset within the m-th flow interval is expressed in percentage points and is determined by the dispersion of the error offset in that interval and the uncertainty of the reference metering device. It is a difference operator along the direction of the flow node, used to constrain the change range of the corresponding weights of adjacent nodes within the same flow interval; is the node direction smoothing constraint coefficient, which is dimensionless; is the initial consistency constraint coefficient for the weights, which is dimensionless; The initial weight matrix can be the zero matrix, the weight matrix of the previous calibration period, or the historical weight matrix of the same model of water meter. The number of matrix parameters to be determined in the m-th flow interval can be obtained by multiplying the coupling feature dimension by the number of nodes; The effective sample size for this flow range can be obtained by summing the sample reliability weights; and To determine and embed global reference coefficients into the calibration processing unit based on offline typical water meter datasets, Here is the candidate weight matrix to be optimized.
[0059] Using the adaptive scaling method described above, when the effective sample size for a certain traffic range is relatively small compared to the number of parameters to be determined, and Follow The increased size and strength of the constraint allow both the node direction smoothing constraint and the overall matrix magnitude constraint to suppress overfitting. When the effective sample size is sufficient, the constraint strength decreases accordingly, allowing the true nonlinear coupling relationships in the samples to be fitted. Therefore, the calibration processing device does not need to perform numerous cross-validation searches in each flow range, making it suitable for deployment in MCUs, industrial PCs, or edge computing units. For the first calibration where the weight matrix from the previous calibration period is unavailable, the calibration processing device can... Set to zero matrix, the third term then degenerates into a pair. The overall Frobenius norm magnitude constraint is equivalent to limiting the overall matrix gain when sample support is insufficient, avoiding the high-dimensional coupled features and auxiliary nodes from jointly causing perfect fitting of historical samples and weakening the generalization ability across working conditions.
[0060] Once the objective function is established, the calibration processing device will... and The outer product is expanded into a regression design vector, and the solution is obtained using matrix least squares with regularization constraints. The solution can be obtained using closed-form matrix solving, QR decomposition, singular value decomposition, or recursive least squares. If historical samples are processed offline, the calibration processing device can complete the matrix solution on a server or industrial PC and then output the obtained results. The data is distributed to the field edge; if the field edge receives new samples online, the calibration processing device only recursively updates the weight matrix of the flow interval to which the new sample belongs. If the effective sample size of a certain flow interval is insufficient to support the current coupled feature dimension and number of nodes, the calibration processing device prioritizes reducing the number of local basis function terms or auxiliary nodes, or continues to use... This serves as a conservative weight matrix for the interval until the number of new samples reaches a stable solution level.
[0061] When the m-th flow interval After the calculation is completed, the calibration processing device stores the matrix along with the corresponding flow interval number, coupling feature construction parameters, flow location basis function parameters, sample scale, and verification residual information. The device then performs the same processing on the next flow interval until all flow intervals have obtained their corresponding partitioned coupling weight matrices. Because each flow interval independently fits its weight matrix, the coupling influence coefficients of water pressure and water temperature on the error offset can change with the flow interval, thus expressing the nonlinear offset differences caused by the different response characteristics of the metering institution in low-flow, commonly used, and high-flow segments.
[0062] In one implementation, a certain flow range employs a six-dimensional coupling feature. And constrained by the nodes of the left and right error curves, then The matrix is 6×2. For a given sample, the dimensionless deviation of water pressure is 0.4, and the dimensionless deviation of water temperature is 0.4, then the coupling feature is [1, 0.4, 0.4, 0.16, 0.16, 0.16]. If the sample flow rate is located at the midpoint of the interval, then the flow rate location basis function is [0.5, 0.5]. If the error offset of the sample is 0.28 percentage points, then the calibration processing device substitutes this sample and other samples in the same interval into the objective function to obtain the result. When the solved matrix provides correction contributions of 0.24 percentage points and 0.32 percentage points for the left and right nodes respectively under the same water pressure and temperature conditions, the coupling correction at the midpoint flow rate is obtained as 0.28 percentage points through projection onto [0.5, 0.5]. This example is only used to illustrate the input, processing, and output results of the partitioned coupling weight matrix and does not limit the feature dimension, number of nodes, or matrix solution method.
[0063] S3. The calibration processing device first reads the partition coupling weight matrix of each flow interval obtained in S2, as well as the corresponding coupling feature construction parameters and flow position basis function parameters; then it determines the target water pressure and target water temperature states that need to generate correction results, and converts the target water pressure and target water temperature into dimensionless deviation states within each flow interval; once the target states are determined, the calibration processing device calculates the original coupling correction amount in each flow interval according to the partition coupling weight matrix, and performs reliability fusion and continuity constraint processing on the original coupling correction amounts at the shared boundaries of adjacent flow intervals to obtain a multivariate coupling error correction field that can be queried in the three dimensions of flow, water pressure, and water temperature.
[0064] Specifically, if this step is used for real-time on-site calibration, the calibration processing device uses the representative values of water pressure and water temperature within the current metering window as the target water pressure and target water temperature. If this step is used to generate a family of calibration curves for multiple operating conditions, the calibration processing device selects multiple combinations of target water pressure and target water temperature within the water meter's allowable operating pressure range, allowable operating temperature range, and historical sample coverage area. For each target state, the calibration processing device converts the target water pressure and target water temperature into dimensionless deviations of water pressure and water temperature according to the normalized reference quantity of the corresponding flow range in S1, and generates them according to the same coupling feature construction method in S2. Subsequently, the calibration processing device will... The partition coupling weight matrix of the m-th flow interval and the flow location basis function for flow location q within this interval. Substituting the core mapping relationship, we obtain the original coupling correction amount within this traffic range. .
[0065] Furthermore, the calibration processing device calculates the original coupling correction for the left and right boundaries of each flow interval, as well as the target flow positions within each interval. This is because different flow intervals... The original correction values are obtained by fitting samples from their respective partitions. Adjacent flow intervals may produce two different original correction values at the shared flow boundary. If the original correction values of adjacent intervals are directly spliced into the entire error correction curve, an abrupt change will occur at the shared boundary. Therefore, the calibration processing device first obtains the original boundary correction values calculated for the left and right flow intervals at each shared boundary, and then fuses them according to the reliability of the two flow intervals near the target state to obtain a unique continuous boundary correction value.
[0066] In one possible implementation, for shared traffic boundaries The flow range on the left is denoted as L, and the flow range on the right is denoted as R. The calibration processing device first performs numerical stabilization processing on the covariance matrix used for reliability calculation, and then calculates the continuous boundary correction:
[0067]
[0068]
[0069]
[0070]
[0071]
[0072] in, Represents shared traffic boundaries The continuous boundary correction amount, in percentage points or error units consistent with the error curve; For the left flow range in the target state The stabilization reliability weight is dimensionless and is used to represent the reliability of the correction amount at the shared boundary of the left interval; For the right-hand flow range in the target state The stabilization reliability weight is dimensionless and is used to represent the reliability of the correction amount at the shared boundary of the right interval; and These represent the original boundary correction amounts calculated at the shared boundary for the left and right flow intervals, respectively. This represents a reliable quantification of the flow range g under the target state; This represents a reliable quantified value after the addition of numerical protection; It is a positive protection quantity determined by the floating-point calculation accuracy and reliability data format of the calibration processing device, used to avoid division by zero when both left and right reliability values underflow to zero simultaneously; The reliability weight of the prior boundary correction can be determined by the boundary correction of the previous calibration cycle, the offline calibration results of the same type of water meter, or the laboratory reference without correction. This is the corresponding prior boundary correction amount, which can be taken as zero when there is no historical correction field; The sample coverage coefficient near the target state is dimensionless and can be obtained by normalizing the kernel density or neighborhood sample distribution density of the samples in the dimensionless water pressure and temperature plane within the flow range. This represents the normalized root mean square residual of the flow range on the validation sample, which is dimensionless; This indicates the error uncertainty corresponding to the reference measuring device, and the unit is the same as the error offset. A scale representing the error offset within this flow range, with units of 1 and 2. Consistent; It is a positive denominator protection quantity determined by the floating-point calculation precision and the verification residual record precision, used to prevent the denominator from losing its numerical meaning under the ideal zero residual condition.
[0073] Furthermore, This represents the dimensionless distance after numerical stabilization. This represents the dimensionless state center of the valid samples within the flow range; This represents the covariance matrix after eigenvalue protection. The original covariance matrix eigenvector matrix; and These are the eigenvalues of the original covariance matrix in the two principal directions; This is the minimum positive eigenvalue protection value determined jointly by the dimensionless bias data resolution, sample size, and floating-point precision of the computing platform. If the original covariance matrix exhibits zero or near-zero eigenvalues due to strong correlation between water pressure and temperature, insufficient sample size, or sample distribution approximately falling on a curve, the calibration processing device will... The covariance matrix is elevated to an invertible matrix. If the edge computing power is insufficient to perform eigenvalue decomposition, the calibration processing device can use a distance calculation method that retains only the diagonal variance term. If the diagonal variance term also lacks effective sample support, the Euclidean distance in the dimensionless bias space is used as a degenerate calculation method. The above processing ensures that the reliability calculation will not be interrupted due to the invertibility of the covariance matrix in the MCU or industrial control computer environment.
[0074] The above reliability fusion method indicates that when a certain flow interval has more comprehensive sample coverage near the target state, smaller verification residuals, lower reference measurement uncertainty, and the target state is closer to the sample center of that interval, the original boundary correction corresponding to that interval has a higher weight in the continuous boundary correction; when the target state is in an extrapolation region where historical samples from both intervals lack support, ... and Together, numerical fallback is provided, ensuring that the continuous boundary correction amount falls back to the conservative fusion result of the original correction amounts on both sides and the prior boundary correction amount, without resulting in undefined operations of 0 / 0. The reliability is jointly determined by the sample distribution, verification residuals, measurement uncertainty, and numerical accuracy of the computing platform, rather than by manually specifying a fixed proportion.
[0075] Furthermore, after determining the continuity boundary correction amount for the shared boundary, the calibration processing device applies this boundary correction amount to the original correction function within adjacent flow intervals, ensuring that the endpoint correction amount of each flow interval is consistent with the shared boundary correction amount. In one embodiment, the coupling correction amount within the m-th flow interval after continuity constraint is determined according to the following formula:
[0076]
[0077]
[0078] in, This represents the flow rate q and target state within the m-th flow interval. The multivariable coupling error correction amount after continuity constraint, in percentage points or error units consistent with the error curve; The original coupling correction amount is calculated from the core mapping relationship in S2; and Let be the left and right boundary flows of the m-th flow interval, respectively; xi is the dimensionless position of flow q within this interval. and These are the continuous boundary corrections obtained by fusing the reliability of adjacent intervals at the left and right boundaries, respectively. and For dimensionless boundary transition functions, the following methods can be used respectively: and Alternatively, other dimensionless functions that satisfy the requirements of boundary endpoint constraints and smooth changes within the interval can be used.
[0079] The meaning of the above continuity constraint processing is that the calibration processing device retains... The expressed nonlinear coupling correction form for water pressure and temperature within this flow range is achieved by adjusting the correction amount at the interval endpoints to a continuous boundary correction amount shared by adjacent intervals using left and right boundary difference terms. Furthermore, a dimensionless transition function is used to gradually change the boundary adjustment amount along the interior of the interval. In this way, adjacent flow ranges have the same correction amount at the shared boundary, while the interior of the interval is still mainly determined by the partitioned coupling weight matrix obtained by fitting samples from this interval.
[0080] After the continuous coupling correction for all flow intervals is calculated, the calibration processing device organizes the correction results into a multivariate coupled error correction field according to three dimensions: flow rate, water pressure deviation, and water temperature deviation. If stored in function parameter form, the correction field includes the partitioned coupling weight matrix for each flow interval, coupling feature construction parameters, flow location basis function parameters, boundary reliability fusion parameters, numerical protection parameters, and boundary transition function parameters. If stored in discrete grid form, each record in the correction field includes the flow node or flow location, dimensionless water pressure deviation, dimensionless water temperature deviation, continuous coupling correction, the flow interval to which it belongs, and the weight matrix version identifier. During subsequent queries, if the target water pressure and target water temperature are located between the generated state points, the calibration processing device obtains the corresponding correction amount in the dimensionless deviation plane using interpolation methods consistent with the local basis functions, bilinear interpolation, or bicubic interpolation. Since the interpolation coordinates are all dimensionless deviations, the different dimensions of water pressure and water temperature are not directly mixed.
[0081] In one implementation, two adjacent flow intervals share a boundary. At, for the target state , The left flow interval, based on its partition coupling weight matrix, receives an original boundary correction of 0.31 percentage points, while the right flow interval receives 0.25 percentage points. If the left flow interval has more comprehensive sample coverage and smaller validation residuals near this state, and the reliability of the left side is twice that of the right side according to the reliability quantification method, then the calibration processing device obtains a shared boundary continuity correction of approximately (2×0.31+1×0.25) / (2+1)=0.29 percentage points through reliability fusion. If the target state is in a region where both sides lack support, causing the reliability on both sides to approach numerical underflow, then the calibration processing device... The prior boundary correction is incorporated into the fusion process to avoid a zero denominator and to limit the boundary correction to a conservative range determined by existing calibration information and the original corrections on both sides. This example is only used to illustrate the reliability fusion, numerical protection, and continuity constraint processing procedures and does not limit the reliability calculation method, the number of flow intervals, or the form of the transition function.
[0082] S4. The calibration processing device first reads the laboratory calibration error curve and the multivariable coupling error correction field obtained in S3; then it determines the target calibration state and obtains the continuous coupling correction amount corresponding to each flow node from the multivariable coupling error correction field under the target calibration state; after the coupling correction amount of each flow node is obtained, the calibration processing device superimposes the laboratory calibration error and the corresponding coupling correction amount node by node to obtain the water meter error curve after multivariable coupling calibration.
[0083] Specifically, the target calibration state can be the representative values of water pressure and water temperature within the current metering window, or it can be a combination of water pressure and water temperature used to generate a family of multi-condition calibration curves. The calibration processing device converts the target water pressure and target water temperature into dimensionless deviations of water pressure and water temperature under the corresponding flow range, according to the normalized reference quantity determined in S1. Then, it iterates through all flow nodes in the laboratory calibration error curve, performing a correction query for each flow node. If the flow node is located within a certain flow range, the calibration processing device obtains the coupled correction quantity of the node from the continuous correction function or correction field grid corresponding to that flow range. If the flow node is located at the shared boundary of adjacent flow ranges, the calibration processing device uses the continuous boundary correction quantity obtained after reliability fusion in S3, instead of using the original boundary correction quantities of the left and right flow ranges respectively.
[0084] Furthermore, the calibration processing device superimposes the laboratory calibration error of each flow node with the corresponding continuous coupling correction in the same unit to obtain the post-calibration error of that flow node. If the laboratory calibration error is expressed as a percentage error and the coupling correction is expressed as a percentage point, the two are directly added under the same error coordinate. If the laboratory calibration error is expressed in other error units, the calibration processing device first converts the coupling correction to the same unit before superposition. For each node that has been superimposed, the calibration processing device generates a node record, which includes the flow node value, laboratory calibration error, target water pressure, target water temperature, dimensionless deviation of water pressure, dimensionless deviation of water temperature, coupling correction, post-calibration error, flow range, and correction field version identifier.
[0085] Subsequently, the calibration processing device arranges all calibrated error nodes in ascending order of flow rate and generates a continuous error curve using a curve generation method consistent with the laboratory calibration curve. In one embodiment, the calibration processing device uses conformal piecewise interpolation to generate curve segments between nodes, ensuring that the calibrated error curve passes through all calibrated nodes and maintains the changing trend between adjacent nodes. If an auxiliary flow node is set in S1 for a certain flow range, the auxiliary flow node also participates in the generation of the calibrated curve, so that the nonlinear offset caused by the coupling of water pressure and water temperature within that range can be reflected in the local shape of the curve. Since S3 has performed reliability fusion, numerical stability protection, and continuity constraints on the correction amount at the shared boundary of adjacent flow ranges, the calibration processing device will not form repeated nodes, step discontinuities, or undefined correction amounts due to extrapolation at the boundary of the range when generating the continuous curve.
[0086] Once the error curve for a single target calibration condition is generated, the calibration processing device can output the curve as a field calibration curve, an error compensation curve, or a verification curve. If multiple actual operating conditions need to be covered, the calibration processing device sequentially selects multiple combinations of target water pressure and target water temperature, repeatedly performs correction amount lookup and node-by-node superposition processing, generating multiple multivariate coupled calibration error curves. Alternatively, these multiple curves can be organized into a three-dimensional calibration surface with flow rate, water pressure, and water temperature as inputs and the post-calibration error as the output. This three-dimensional calibration surface can be used for error lookup under field operating conditions, and can also be used to generate a family of error curves in a cross-condition verification report.
[0087] Optionally, when new on-site verification samples or periodic calibration samples are subsequently obtained, the calibration processing device will classify the new samples into the corresponding flow range according to method S1, and update the partition coupling weight matrix of the corresponding flow range while keeping the laboratory calibration benchmark unchanged. If the new samples only cover a certain flow range, the calibration processing device will only update the continuity correction amount at that flow range and its adjacent shared boundaries, while other flow ranges will retain the original correction field version. If the new samples cover multiple flow ranges, the calibration processing device will update the partition coupling weight matrix of the corresponding flow ranges respectively, and re-execute the shared boundary continuity constraint processing in S3. Through this local update method, the newly added multivariate operating condition information can be mapped to the error correction amount of the corresponding flow range without causing unfounded changes in flow ranges not covered by the new samples.
[0088] In one implementation, the calibration error of the laboratory calibration curve at the 1.6 m³ / h flow rate node under the target calibration condition is 0.82%, and the continuous coupling correction amount given by the multivariate coupled error correction field at this node is 0.29 percentage points. The calibration processing device then superimposes these two values to obtain a calibrated error of 1.11% for this node. If the calibration error at the 3.2 m³ / h flow rate node is 0.45%, corresponding to a continuous coupling correction amount of 0.18 percentage points, then the calibrated error for this node is 0.63%. The calibration processing device arranges these nodes together with other flow rate nodes and interpolates to obtain a complete water meter error curve under the target water pressure and target water temperature conditions. This example is only used to illustrate the process of generating a calibrated error curve by superimposing nodes one by one, and does not limit the actual number of flow rate nodes, the number of target operating conditions, or the range of error values.
[0089] In summary, in one implementation method, such as Figure 2As shown, the laboratory calibration error curve, the field measured error curve without multivariate coupling calibration, and the error curve calibrated by the present invention are compared and displayed in the same coordinate system. It can be seen that the field measured error curve has a systematic deviation from the laboratory calibration curve in multiple flow ranges, indicating that field operating conditions such as water pressure and water temperature will change the shape of the water meter error curve. After the water pressure and water temperature coupling correction based on flow zone of the present invention, the calibrated error curve is closer to the laboratory calibration curve as a whole again, indicating that the multivariate coupling error correction can map and compensate for the error offset caused by field operating conditions to the corresponding flow range.
[0090] In summary, the multivariate coupling calibration method for water meter error curves based on embodiments of the present invention is explained. It involves dividing historical error data into multiple flow intervals along the flow axis using water pressure and temperature reference values under laboratory calibration conditions as a reference. Each interval contains a partitioned deviation sample set including water pressure deviation, water temperature deviation, and error offset. Then, using each partitioned sample set as training data, a nonlinear coupling mapping relationship between water pressure and water temperature and the error offset is fitted to obtain a partitioned coupling weight matrix. Based on the partitioned coupling weight matrix, the coupling correction amount for each flow interval error curve node is calculated, and continuity constraints are applied to the boundaries of adjacent intervals to form a continuously queryable multivariate coupling error correction field in the three-dimensional space of flow, water pressure, and water temperature. Finally, the laboratory calibration error curve is superimposed node by node with the coupling correction amount under the corresponding target state in the correction field to obtain the multivariate coupled calibration water meter error curve. This approach overcomes the limitations of traditional single-variable calibration methods that neglect or linearize the effects of water pressure and temperature. It quantifies and maps the nonlinear coupling effect of water pressure and temperature on water meter measurement errors to the error curve nodes of the corresponding flow intervals. This effectively solves the technical problem that existing calibration results are only valid under standard laboratory conditions and that the error curve shape deviates systematically from the calibration results when multiple variables fluctuate synchronously in the field. As a result, it significantly improves the measurement accuracy and calibration reliability of water meters under actual operating conditions across various operating conditions, providing technical support for the refined metering management of water supply networks.
[0091] Here, those skilled in the art will understand that the specific operations of each step in the multivariable coupled calibration system for the water meter error curve described above have been referenced above. Figures 1 to 3 The multivariate coupling calibration method for water meter error curves has been described in detail, and therefore, its repeated description will be omitted.
[0092] According to another aspect of the present invention, a multivariable coupled calibration system for water meter error curves is provided, comprising:
[0093] The data reading and partitioning module is used to divide the historical error data of the water meter into flow ranges and construct a partitioned deviation sample set based on the water pressure reference value and water temperature reference value under laboratory calibration conditions. The partitioned deviation sample set includes the flow representative value, water pressure deviation status, water temperature deviation status and error offset.
[0094] The partition coupling weight solution module is used to fit the nonlinear coupling mapping relationship between water pressure and water temperature on error offset in each flow interval, with the water pressure deviation state and water temperature deviation state of each flow interval as input and the error offset as supervision label, to obtain the partition coupling weight matrix.
[0095] The correction field generation module is used to calculate the coupling correction amount of each flow interval error curve node based on the partition coupling weight matrix, and to perform continuity constraint processing on the coupling correction amount at the boundary of adjacent flow intervals to obtain a multivariable coupling error correction field.
[0096] The calibration curve output module is used to superimpose the error curve nodes of each flow range with the coupling correction amount node by node, based on the multivariable coupling error correction field, to obtain the water meter error curve after multivariable coupling calibration.
[0097] In summary, the multivariate coupling calibration system for water meter error curves based on embodiments of the present invention is explained. It divides historical error data into multiple flow intervals along the flow axis, using water pressure and temperature reference values under laboratory calibration conditions as a reference. It then constructs a partitioned deviation sample set within each interval, containing water pressure deviation, water temperature deviation, and error offset. Using each partitioned sample set as training data, it fits a nonlinear coupling mapping relationship between water pressure and water temperature and the error offset to obtain a partitioned coupling weight matrix. Based on this matrix, it calculates the coupling correction amount for each flow interval error curve node and performs continuity constraint processing at the boundaries of adjacent intervals to form a continuously queryable multivariate coupling error correction field in the three-dimensional space of flow, water pressure, and water temperature. Finally, it superimposes the laboratory calibration error curve with the coupling correction amount corresponding to the target state in the correction field node by node to obtain the multivariate coupled calibration water meter error curve. This approach overcomes the limitations of traditional single-variable calibration methods that neglect or linearize the effects of water pressure and temperature. It quantifies and maps the nonlinear coupling effect of water pressure and temperature on water meter measurement errors to the error curve nodes of the corresponding flow intervals. This effectively solves the technical problem that existing calibration results are only valid under standard laboratory conditions and that the error curve shape deviates systematically from the calibration results when multiple variables fluctuate synchronously in the field. As a result, it significantly improves the measurement accuracy and calibration reliability of water meters under actual operating conditions across various operating conditions, providing technical support for the refined metering management of water supply networks.
Claims
1. A multivariate coupled calibration method for water meter error curves, characterized in that, include: Based on the water pressure and water temperature reference values under laboratory calibration conditions, the historical error data of the water meter are divided into flow ranges and a partitioned deviation sample set is constructed. The partitioned deviation sample set includes the representative value of flow, water pressure deviation status, water temperature deviation status, and error offset. Using the water pressure deviation and water temperature deviation in each flow range as inputs and the error offset as a supervision label, the nonlinear coupling mapping relationship between water pressure and water temperature and the error offset in each flow range is fitted to obtain the partition coupling weight matrix. The coupling correction amount of each flow interval error curve node is calculated based on the partition coupling weight matrix, and the coupling correction amount at the boundary of adjacent flow intervals is subjected to continuity constraint processing to obtain the multivariate coupling error correction field. Using the multivariable coupled error correction field as a reference, the error curve nodes of each flow interval are superimposed with the coupling correction amount node by node to obtain the water meter error curve after multivariable coupled calibration.
2. The multivariable coupling calibration method for water meter error curves according to claim 1, characterized in that, The method for dividing the flow range includes: using the flow range between adjacent calibration nodes in the laboratory calibration error curve as the basic flow range; If the error offset of historical samples within a certain basic flow range varies with the flow location, then an auxiliary flow node is added within that basic flow range. The auxiliary flow node is determined by the quantile position of the sample flow distribution within that range, the local slope change of the calibration error curve, and the uncertainty of the reference metering device. The range of adjacent nodes after adding the auxiliary flow node is taken as the flow range.
3. The multivariable coupling calibration method for water meter error curves according to claim 2, characterized in that, The nonlinear coupling mapping relationship includes: The dimensionless deviations of water pressure and water temperature are constructed as nonlinear coupled feature vectors containing constant terms, first-order terms and interaction terms. The representative value of flow rate is constructed as the flow rate location basis function. The partitioned coupling weight matrix is obtained by fitting the error offset as the supervision label. The rows of the partitioned coupling weight matrix correspond to the coupling features, and the columns correspond to the nodes of the error curve.
4. The multivariable coupling calibration method for water meter error curves according to claim 3, characterized in that, The partition coupling weight matrix is obtained according to the following objective function: in, The number of valid samples in the m-th flow interval; This is the error offset. This represents the sample flow rate. The sample water pressure and water temperature are in dimensionless deviation state; For sample reliability weights; This is the scale of the error offset; This is a difference operator along the direction of the flow node; and These are the node direction smoothing constraint coefficient and the initial weight consistency constraint coefficient, respectively. The initial weight matrix, This represents the basis function vector representing the flow position of flow q within the m-th flow interval; This represents the nonlinear coupling characteristic vector within the m-th flow interval; Here is the candidate weight matrix to be optimized.
5. The multivariable coupling calibration method for water meter error curves according to claim 4, characterized in that, The continuity constraint processing includes: At the shared boundary of adjacent flow intervals, the original boundary correction values calculated for the left and right flow intervals are obtained respectively. The two flow intervals are then weighted and fused according to their reliability under the target state to obtain a unique continuous boundary correction value. The reliability is determined by the sample coverage density near the target state, the distance between the target state and the sample distribution center of the flow range, the verification residual, and the uncertainty of the reference meter.
6. The multivariable coupling calibration method for water meter error curves according to claim 5, characterized in that, The continuity constraint processing further includes: after the continuity boundary correction amount of the shared boundary is determined, the coupling correction amount after continuity constraint in the m-th flow interval is determined as follows: in, This represents the coupling correction amount after continuity constraint within the m-th flow interval; This is the original coupling correction amount; and These are the left and right boundary flows of the m-th flow interval, respectively; For traffic The dimensionless position within this interval; and These are the continuous boundary corrections obtained by fusing the reliability of adjacent intervals at the left and right boundaries, respectively. and It is a dimensionless boundary transition function.
7. The multivariable coupling calibration method for water meter error curves according to claim 6, characterized in that, The multivariable coupling error correction field is obtained based on the coupling correction amount. Calculate the correction at any flow location within each flow interval, and then combine the continuous boundary corrections of adjacent intervals at the shared boundary after reliability fusion. Endpoint constraints ensure that the correction amount is continuous at the boundaries of adjacent intervals, ultimately forming a multivariate coupled error correction field that covers the entire flow range and can be queried under different water pressure and temperature conditions.
8. A multivariable coupled calibration system for water meter error curves, characterized in that, include: The data reading and partitioning module is used to divide the historical error data of the water meter into flow ranges and construct a partitioned deviation sample set based on the water pressure reference value and water temperature reference value under laboratory calibration conditions. The partitioned deviation sample set includes the flow representative value, water pressure deviation status, water temperature deviation status and error offset. The partition coupling weight solution module is used to fit the nonlinear coupling mapping relationship between water pressure and water temperature on error offset in each flow interval, with the water pressure deviation state and water temperature deviation state of each flow interval as input and the error offset as supervision label, to obtain the partition coupling weight matrix. The correction field generation module is used to calculate the coupling correction amount of each flow interval error curve node based on the partition coupling weight matrix, and to perform continuity constraint processing on the coupling correction amount at the boundary of adjacent flow intervals to obtain a multivariable coupling error correction field. The calibration curve output module is used to superimpose the error curve nodes of each flow range with the coupling correction amount node by node, based on the multivariable coupling error correction field, to obtain the water meter error curve after multivariable coupling calibration.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the multivariable coupling calibration method for the water meter error curve according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the multivariable coupling calibration method for the water meter error curve as described in any one of claims 1 to 7.
