A method for diagnosing compliance and precision of on-site detection of water meters of river self-provided water users

CN117990189BActive Publication Date: 2026-10-27ZHEJIANG INST OF HYDRAULICS & ESTUARY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410002065.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-02
Publication Date
2026-10-27
Estimated Expiration
2044-01-02

AI Technical Summary

Technical Problem

[0003]本申请实施例的目的是提供一种河道自备取水户水表现场检测合规性及精度诊断方法,以解决相关技术中存在的无法满足实验室严格检测条件、现场检测依靠经验出现合规性误判、精度诊断可靠性不明确的技术问题

Benefits of technology

[0059]由上述实施例可知,本申请通过现场被测水表的环境条件参数,以为标准水表的安装提供信息参考,控制所述被测水表与所述标准水表在相同的工作环境,能够消除现场不满足实验室检测条件下的大部分外部环境因素影响;根据现场被测水表与标准水表第一次同步数据获取,采用ICC系数判断水表间读数的一致性,确定水表读数是否正常,克服了简单比测的经验误判,并为是否需要第二次读数提供必要判断依据;在第一次读数不正常情况下进行必要的第二次数据同步读取,通过第二次ICC一致性检测,采用贝叶斯修正技术方法,进一步提升所述被测水表是否合规判定的准确性;根据现场获取的环境流量参数、被测水表最大允许误差、第一次和必要的第二次同步数据,采用ROC曲线诊断技术,克服了现场检测精度不明确问题,能够做出被测水表精度估计及可靠性诊断。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117990189B_ABST
    Figure CN117990189B_ABST
Patent Text Reader

Abstract

The application discloses a kind of methods suitable for river self-provided water user water meter field detection compliance and precision diagnosis, comprising: obtaining the environmental condition parameter of field measured water meter, control measured water meter and standard water meter in the same working environmental condition;Synchronous data acquisition is carried out to measured water meter and standard water meter, first consistency test is carried out, whether the reading of measured water meter is normal is judged, and whether the necessity of second consistency test is judged;Under the condition of first reading abnormal, second synchronous data acquisition is carried out to measured water meter and standard water meter, second consistency test is carried out, whether the reading of measured water meter is normal is judged, and whether the compliance detection result of measured water meter is given;According to the results of first and second consistency test, the standard deviation precision of measured water meter reading is calculated, and the precision diagnosis result is given.The application relies on one-time simple comparison experience misjudgment, and meets the actual demand of corresponding scientific method supporting field water meter measurement detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of on-site water meter detection and diagnosis technology, and in particular to a method for diagnosing the compliance and accuracy of on-site water meter detection for self-supplied water users in rivers. Background Technology

[0002] Water meters, as instruments used for water measurement and billing, require mandatory testing under national metrology regulations and management supervision, whether regular or random. The existing testing method, "Verification Procedure for Drinking Cold Water Meters JJG162-2019," requires compliance verification and error calculation of water meters with clear markings, multiple flow characteristic test ranges, and strict external environmental conditions in a qualified laboratory using clean water with high quality standards. In current water resource management practice, most commercially available clean water meters with laboratory testing capabilities operate normally, requiring relatively few meters to be tested. Verification agencies are capable of undertaking the relevant testing services. However, for self-supplied water users, especially those using river water, the water quality in rivers is not very clean, the number of self-supplied water users is large, and many of the water meters installed do not have laboratory testing facilities. In addition, there is a lack of technically standardized testing on-site. In practice, supervision often relies on simple experience-based testing, which may lead to misjudgments of the compliance of the tested water meters and unclear accuracy and reliability. Scientific methods are needed to support and address practical needs. Summary of the Invention

[0003] The purpose of this application is to provide a method for on-site testing of the compliance and accuracy of water meters for self-supplied water users in rivers, in order to solve the technical problems existing in related technologies, such as the inability to meet the strict testing conditions of laboratories, the reliance on experience in on-site testing leading to misjudgments of compliance, and the unclear reliability of accuracy diagnosis.

[0004] According to a first aspect of the embodiments of this application, a method for on-site testing and accuracy diagnosis of water meter readings for self-supplied water users in river channels is provided, including:

[0005] The environmental condition parameters of the water meter being tested are obtained on-site to provide information for the installation of the standard water meter. The tested water meter and the standard water meter are controlled to operate under the same environmental conditions. The environmental condition parameters include at least the water meter's operating flow rate parameters and the maximum permissible error.

[0006] The water meter under test and the standard water meter are synchronized and acquired once. A first consistency test is performed based on the acquired data. Based on the result of the first consistency test, it is determined whether the water meter under test has a normal reading and whether a second consistency test is required.

[0007] If a second consistency test is required, the tested water meter and the standard water meter will be synchronized and acquired for the second time. A second consistency test will be conducted based on the acquired data. Based on the result of the second consistency test, it will be determined whether the tested water meter is reading normally and the water meter compliance test result will be given.

[0008] Based on the water meter's operating flow rate parameters, maximum permissible error, the results of the first consistency test, and the results of the second consistency test, the standard deviation accuracy of the water meter's reading is calculated, and the accuracy reliability is diagnosed.

[0009] Furthermore, a first consistency check is performed based on the acquired data. Based on the results of the first consistency check, it is determined whether the water meter reading is normal and whether a second consistency check is needed, including:

[0010] The differences between the data from the tested water meter and the standard water meter and the initial reading data are calculated separately, and these differences are used as valid data for consistency calculation.

[0011] At a significance level of 0.05, the Intraclass Correlation Coefficient (ICC) is calculated. If the ICC coefficient is higher than 0.8, the two sets of readings are in good agreement, the water meter readings are considered normal, and the tested water meter is compliant. If the ICC coefficient is lower than 0.8, the significance test is not passed, the readings are not in good agreement, but it is still not possible to determine whether the water meter is compliant. A second consistency test is required.

[0012] The characteristic is that the ICC coefficient is calculated using the following formula:

[0013]

[0014] MS R -Mean square of multiple flow intervals measured;

[0015] MS E -Square of the total error term between the tested water meter and the standard water meter;

[0016] MS T -Square metric between the tested water meter and the standard water meter;

[0017] n - Number of valid synchronous readings.

[0018] Furthermore, based on the results of the first consistency test, a judgment is made on whether the water meter reading is normal or not. The Bayesian correction formula is used to determine the compliance of the water meter, as follows:

[0019]

[0020] P(A|B1) - The normal operation rate of the tested water meter when the first reading matches the standard water meter reading:

[0021] P(B1|A) - The probability that the measured water meter's first reading is consistent with the standard water meter under normal conditions. The value is determined based on the water meter's accuracy.

[0022] P(A) - The prior probability that the water meter being tested is normal, estimated based on the year of manufacture, usage environment, material, and degree of damage of the water meter;

[0023] P(B1|A') - The probability that the measured water meter's first reading matches the standard water meter's reading under abnormal conditions, i.e., specificity;

[0024] P(A') - the probability that the water meter being tested is malfunctioning, P(A') = 1 - P(A);

[0025] If the first reading meets the required accuracy rate, the water meter has passed the compliance inspection, and the testing is stopped.

[0026] Furthermore, based on the results of the second consistency test, it is determined whether the water meter reading is normal, and the water meter compliance test result is given using the following formula:

[0027]

[0028] P(A|B1'B2) - The normality rate of the tested water meter when the first reading of the tested water meter is inconsistent with the standard water meter, but the second reading is consistent;

[0029] P(B2|A) - the probability that the second reading of the tested water meter is consistent with that of the standard water meter under normal conditions, P(B2|A) = P(B1|A);

[0030] P(A|B'1) - The normal operation rate of the tested water meter under the condition that the first reading of the tested water meter is inconsistent with that of the standard water meter.

[0031] P(B2|A') - the probability that the second reading of the tested water meter is consistent with that of the standard water meter under abnormal conditions, P(B2|A) = P(B1|A);

[0032] P(A'|B'1) - The abnormal rate of the water meter under the condition that the first reading of the water meter is inconsistent with the reading of the standard water meter, P(A'|B'1)=1-P(A|B'1);

[0033] If the readings match in the second test, the water meter is compliant; if the readings do not match, the water meter is non-compliant.

[0034] Furthermore, based on the water meter's operating flow rate parameters, maximum permissible error, and the results of the first and second consistency tests, the standard deviation accuracy of the tested water meter's readings is calculated, and the accuracy reliability is diagnosed, including:

[0035] Based on the first reading of the water meter being tested, or the second reading of the water meter being tested if the first reading is inconsistent, the difference in the obtained data readings is treated as a whole, and the standard deviation is calculated.

[0036] Based on the difference between the first and necessary second synchronized water meter readings, obtain n sample group data and plot the ROC (Receiver Operating Characteristic) curve;

[0037] The area under the ROC curve (AUC) is used to measure diagnostic accuracy.

[0038] Furthermore, based on the difference between the first and necessary second synchronized water meter readings, n sample group data were obtained, and ROC curves were plotted, including:

[0039] Based on the standard water meter reading and accuracy, the water meters being tested are divided into two groups: those whose readings do not exceed the allowable error and those whose readings exceed the allowable error. Using the specificity and sensitivity of the water meters being tested as coordinate axes, ROC curves are plotted to determine the trend characteristics of the curve changes.

[0040] Furthermore, the area under the ROC curve (AUC) is used to measure diagnostic accuracy, and the calculation formula is as follows:

[0041]

[0042]

[0043] The area under the AUC-ROC curve is between 0.5 and 1.

[0044] n1 - The number of readings of the water meter being measured does not exceed the allowable error;

[0045] n2 - The number of water meter readings that exceed the allowable error;

[0046] x k1 (i) - The n1 readings of the water meter being measured do not exceed the i-th reading in the allowable error group;

[0047] x k2 (j) The -n2 readings of the water meter being measured exceed the j-th reading in the allowable error group;

[0048] The reliability of the diagnosis is determined by AUC size and significance test.

[0049] According to a second aspect of the embodiments of this application, a device for on-site detection of compliance and accuracy of water meters for self-supplied water users in river channels is provided, comprising:

[0050] The acquisition module is used to acquire the environmental condition parameters of the water meter being tested on site, so as to provide information reference for the installation of the standard water meter and control the water meter being tested and the standard water meter to be under the same working environmental conditions. The environmental condition parameters include at least the water meter working flow condition parameters and the maximum permissible error.

[0051] The first inspection module is used to acquire the first synchronous data between the water meter under test and the standard water meter, perform the first consistency inspection based on the acquired data, determine whether the water meter under test has a normal reading based on the result of the first consistency inspection, and determine whether a second consistency inspection is required.

[0052] The second inspection module is used to perform secondary synchronization data acquisition between the water meter under test and the standard water meter if a second consistency inspection is required, perform a second consistency inspection based on the acquired data, determine whether the water meter under test has a normal reading based on the result of the second consistency inspection, and give the compliance test result of the water meter under test.

[0053] The diagnostic module is used to calculate the standard deviation accuracy of the water meter reading based on the water meter's operating flow condition parameters, maximum permissible error, the results of the first consistency test, and the results of the necessary second consistency test, and to diagnose the accuracy reliability.

[0054] According to a third aspect of the embodiments of this application, an electronic device is provided, comprising:

[0055] One or more processors;

[0056] Memory, used to store one or more programs;

[0057] When the one or more programs are executed by the one or more processors, the one or more processors perform the method as described in the first aspect.

[0058] The technical solutions provided by the embodiments of this application may include the following beneficial effects:

[0059] As can be seen from the above embodiments, this application provides information reference for the installation of standard water meters by using the environmental condition parameters of the water meters being tested on-site. By controlling the water meters being tested and the standard water meters to operate in the same environment, it can eliminate the influence of most external environmental factors that do not meet laboratory testing conditions on-site. Based on the first synchronous data acquisition between the water meters being tested and the standard water meters, the ICC coefficient is used to determine the consistency of the readings between the water meters, thus determining whether the water meter readings are normal. This overcomes the experience-based misjudgment of simple comparison tests and provides necessary judgment criteria for whether a second reading is needed. If the first reading is abnormal, a necessary second data synchronization reading is performed. Through the second ICC consistency test, a Bayesian correction technique is used to further improve the accuracy of determining whether the water meters being tested are compliant. Based on the environmental flow parameters obtained on-site, the maximum permissible error of the water meters being tested, and the first and necessary second synchronous data, ROC curve diagnostic technology is used to overcome the problem of unclear on-site testing accuracy, enabling the estimation of the accuracy and reliability diagnosis of the water meters being tested.

[0060] Based on the environmental conditions of water meter testing, on-site water meter testing data, and statistical analysis, and by reading data up to twice, the system addresses the lack of scientific basis and methodology for diagnosing the compliance and accuracy of water meters for self-supplied water users in river channels. This significantly improves the accuracy of water meter compliance assessment and provides a reliable basis for decision-making regarding water meter adjustment and replacement.

[0061] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description

[0062] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0063] Figure 1 This is a flowchart illustrating a method for on-site testing of compliance and accuracy of water meters for self-supplied water users in river channels, according to an exemplary embodiment.

[0064] Figure 2 This is an exemplary embodiment illustrating the installation of the water meter under test (water metering device) and the standard water meter (ultrasonic flow meter).

[0065] Figure 3 This is an exemplary embodiment illustrating the relationship between the normal reading rate, the number of readings, and the number of consistent readings of a water meter.

[0066] Figure 4 This is an ROC curve diagram illustrated according to an exemplary embodiment.

[0067] Figure 5This is an exemplary embodiment illustrating the on-site testing compliance and accuracy diagnosis of water meters for self-supplied water users in river channels.

[0068] Figure 6 This is a block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation

[0069] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0070] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0071] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0072] Explanation of the name:

[0073] River self-supplied water users refer to users who draw water from rivers through water intake facilities, mainly including waterworks, industrial enterprises, and service enterprises.

[0074] This paper proposes a new method to address the issue of water meters used by self-supplied water users, which require regular laboratory calibration but are numerous and lack the necessary laboratory calibration facilities. This method aims to overcome the current situation of lack of theoretical basis, reliance on one-time simple comparative tests leading to misjudgments, and the need for scientific methods to support national metrological testing. It also solves the problem of the lack of compliance and accuracy in on-site water meter testing.

[0075] Figure 1This is a flowchart illustrating a method for on-site testing and accuracy diagnosis of water meters for self-supplied water users in river channels, according to an exemplary embodiment. Figure 1 As shown, the following steps may be included:

[0076] S1: Obtain the environmental condition parameters of the water meter being tested on site to provide information reference for the installation of the standard water meter, and control the water meter being tested and the standard water meter to be in the same working environment conditions. The environmental condition parameters include at least the water meter working flow condition parameters and the maximum permissible error.

[0077] S2: Perform a synchronous data acquisition between the water meter under test and the standard water meter, perform a first consistency check based on the acquired data, determine whether the water meter under test has a normal reading based on the result of the first consistency check, and determine whether a second consistency check is required.

[0078] S3: If a second consistency test is required, the tested water meter and the standard water meter shall be synchronized and acquired twice. A second consistency test shall be performed based on the acquired data. Based on the result of the second consistency test, it shall be determined whether the tested water meter is reading normally and the water meter compliance test result shall be given.

[0079] S4: Based on the water meter's operating flow rate condition parameters, maximum permissible error, the results of the first consistency test, and the results of the second consistency test, calculate the standard deviation accuracy of the water meter's reading and diagnose its accuracy reliability.

[0080] As can be seen from the above embodiments, this application obtains environmental condition parameters of the water meter being tested on-site to provide information reference for the installation of the standard water meter, and controls the water meter being tested and the standard water meter to operate under the same environmental conditions; based on the first synchronous data acquisition of the water meter being tested and the standard water meter, the consistency of the readings between the water meters is judged, it is determined whether the water meter readings are normal and compliant, and it is determined whether a second reading is required; if the first reading is abnormal, a necessary second data synchronization reading is performed to conduct a second consistency test, further determining whether the reading of the water meter being tested is normal; at the same time, based on the environmental flow parameters obtained on-site, the maximum permissible error of the water meter being tested, and the first and necessary second synchronous data, the accuracy estimation and reliability diagnosis of the water meter being tested are made, realizing on-site testing compliance and accuracy diagnosis.

[0081] In the specific implementation of S1: the environmental condition parameters of the water meter being tested are obtained on site to provide information reference for the installation of the standard water meter, and the water meter being tested and the standard water meter are controlled to be in the same working environment conditions. The environmental condition parameters include at least the water meter working flow condition parameters and the maximum permissible error.

[0082] Specifically, the environmental condition parameters include at least the water meter's operating flow rate and maximum permissible error, and may also include auxiliary parameters such as production date, material, and pipe diameter. The acquired environmental condition parameters provide an empirical basis for subsequent judgments regarding the prior probability of the water meter's normal operation, normal readings, and accuracy diagnosis. The environmental condition parameters of the tested water meter also provide information for the installation of standard water meters. Figure 2 This is a schematic diagram showing the installation of the water meter under test (water metering device) and the standard water meter metering facility (ultrasonic flow meter).

[0083] In the specific implementation of S2: Synchronous data acquisition is performed between the water meter being tested and the standard water meter. A first consistency check is then performed based on the acquired data. Based on the result of the first consistency check, it is determined whether the water meter reading is normal and compliant, or whether a second consistency check is required, including:

[0084] S21: Based on the data from the first synchronous readings of the tested water meter and the standard water meter, discard the first two readings to avoid the influence of reading instability. The time interval should be no less than 1 minute, which can be determined according to actual work. The data volume should generally be no less than 30 sets. Calculate the difference between the two sets of data and the initial reading data as valid data for consistency calculation. Calculate the ICC coefficient at a significance level of 0.05. If the coefficient is higher than 0.8 and passes the significance test, the consistency between the two sets of readings is good, and the water meter reading is judged to be normal and the tested water meter is compliant. If the coefficient is lower than 0.8 and fails the significance test, the reading consistency is not high, and it is still impossible to determine whether the tested water meter is compliant. A second data reading is required.

[0085] Specifically, based on the requirement of repeatability in field testing, a two-way mixed absolute consistency ICC coefficient considering systematic error within-group correlation coefficient is adopted. The inconsistency is tested according to the null hypothesis, and the consistency coefficient and the probability of rejecting the null hypothesis of 0.05 are obtained at the same time.

[0086]

[0087] MS R -Mean square of multiple flow intervals measured;

[0088] MS E -Square of the total error term between the tested water meter and the standard water meter;

[0089] MS T -Square metric between the tested water meter and the standard water meter;

[0090] n - Number of valid synchronous readings.

[0091] Based on the first test, the ICC coefficient was 0.273, which is lower than 0.8, and the significance level was 0.388, which is higher than 0.05, indicating that the first reading was inconsistent.

[0092] The Intraclass Correlation Coefficient (ICC) reflects the degree of individual variability within the overall population variability, ranging from 0 to 1. 0 indicates complete inconsistency, and 1 indicates complete consistency. For water meters being tested, due to the difficulty in achieving controlled laboratory testing conditions, it is generally considered that at a significance level of 0.05, a coefficient below 0.4 indicates poor consistency, while a coefficient above 0.8 indicates good consistency. This consistency assessment method can be performed on-site within the program after a set of data is read online or manually from the water meter.

[0093] S22: Based on the results of the first consistency test, determine whether the water meter reading is normal or not, and use the Bayesian correction formula to determine the compliance of the water meter.

[0094]

[0095] P(A|B1) - The normal operation rate of the tested water meter when the first reading matches the standard water meter reading:

[0096] P(B1|A) - The probability that the measured water meter's first reading is consistent with the standard water meter under normal conditions. The value is determined based on the water meter's accuracy.

[0097] P(A) - The prior probability that the water meter being tested is normal, estimated based on the year of manufacture, usage environment, material, and degree of damage of the water meter;

[0098] P(B1|A') - The probability that the measured water meter's first reading matches the standard water meter's reading under abnormal conditions, i.e., specificity;

[0099] P(A') - the probability that the water meter being tested is malfunctioning, P(A') = 1 - P(A);

[0100] If the first reading meets the required accuracy rate, the water meter has passed the compliance inspection, and the testing is stopped.

[0101] Specifically, based on the on-site investigation and readings, the prior probability of the water meter being normal is generally above 95%, the environmental flow conditions are within the normal working range, the water meter being tested is of class 2, and the reading error is within ±2%.

[0102] Figure 3 The relationship between the water meter reading accuracy rate, the number of readings, and the number of consistent readings is given by... Figure 3Theoretically, it is also explained that when the first reading is inconsistent, the curve changes more obviously and the slope changes more significantly. This can easily lead to misjudgment in actual comparison tests, and does not necessarily mean that the water meter is non-compliant. A second test is still required.

[0103] Using the Bayesian correction formula, the probability that the water meter is normal is calculated to be 27.56% when the first reading is inconsistent. At this point, it cannot be determined whether the water meter is normal and a second test is required.

[0104] In the specific implementation of S3: if a second consistency check is required, the tested water meter and the standard water meter will be synchronized and acquired a second time. A second consistency check will be performed based on the acquired data. Based on the result of the second consistency check, it will be determined whether the tested water meter reading is normal, and a water meter compliance test result will be given, including:

[0105] S31: Based on the data from the second synchronous reading of the tested water meter and the standard water meter, repeat the data processing method and formula required in S1 to calculate the ICC coefficient. If the coefficient is lower than 0.8 and fails the significance test, the water meter readings are not consistent and the tested water meter is non-compliant. If the coefficient is higher than 0.8 and passes the significance test, the readings are consistent and the tested water meter is deemed compliant.

[0106] The second test showed an ICC coefficient of 0.465, which is lower than 0.8, and a significance level of 0.261, which is higher than 0.05. Therefore, the second reading was inconsistent and the water meter was deemed non-compliant.

[0107] S32: Based on the results of the second consistency test, determine whether the water meter reading is normal or not, and use the Bayesian correction formula to determine the compliance of the water meter.

[0108]

[0109] P(A|B'1B2) - The normality rate of the tested water meter when the first reading of the tested water meter is inconsistent with the standard water meter, but the second reading is consistent;

[0110] P(B2|A) - the probability that the second reading of the tested water meter is consistent with that of the standard water meter under normal conditions, P(B2|A) = P(B1|A);

[0111] P(A|B'1) - The normal operation rate of the tested water meter under the condition that the first reading of the tested water meter is inconsistent with that of the standard water meter.

[0112] P(B2|A') - the probability that the second reading of the tested water meter is consistent with that of the standard water meter under abnormal conditions, P(B2|A') = P(B1|A');

[0113] P(A'|B'1) - The abnormal rate of the water meter under the condition that the first reading of the water meter is inconsistent with the reading of the standard water meter, P(A'|B'1)=1-P(A|B'1);

[0114] If the readings match in the second test, the water meter is compliant; if the readings do not match, the water meter is non-compliant.

[0115] Specifically, based on the on-site investigation and readings, the prior probability of the water meter being normal is generally above 95%, the environmental flow conditions are within the normal working range, the water meter being tested is of class 2, and the reading error is within ±2%.

[0116] Using the Bayesian correction formula, when the first and second readings are inconsistent, the probability of the water meter being normal is calculated to be 0.76%, while the probability of the water meter being abnormal exceeds 95%, indicating that the water meter is non-compliant.

[0117] This method primarily addresses the issue that in actual water meter field testing, drawing a compliance conclusion based on only a single, simple comparison can sometimes lead to misjudgments. This invention modifies Bayes' theorem, finding that in cases of inconsistency in a single comparison, the probability of the tested water meter being non-compliant is only small (usually less than 1 / 3), necessitating a second comparison. In the second judgment, if the readings match, the tested water meter is compliant; if the readings differ, the tested water meter is non-compliant.

[0118] The derivation of the Bayesian correction formula shows that, in most practical situations, compliance judgments with a confidence level of over 95% can be made as long as no more than two on-site comparisons are conducted. This not only has theoretical support, but more importantly, it greatly improves the level of empirical judgment on the compliance of water meters being tested on-site.

[0119] Based on historical water resource monitoring, a preliminary probability P(A) of the measured water meter being normal is given. This empirical value should roughly reflect the actual situation and has little impact as an initial preliminary value. The probability of the water meter being normal on-site is estimated based on its year of manufacture, usage environment, manufacturer, material, and degree of damage.

[0120] The reading of the water meter under test is consistent with that of the standard water meter under normal conditions, P(B|A). The value is determined by combining the accuracy and consistency of the water meter under test.

[0121] The false alarm rate is P(B|A') when the water meter reading is consistent with the standard water meter under abnormal conditions. This value is determined by combining the accuracy and consistency of the water meter being tested.

[0122] In the specific implementation of S4: based on the water meter's operating flow rate condition parameters, maximum permissible error, the results of the first consistency test, and the results of the second consistency test, the standard deviation accuracy of the measured water meter is calculated, and the accuracy reliability is diagnosed, including:

[0123] S41: Based on the data read from the first time by the water meter being tested, or the data read from the second time if the first reading is inconsistent, the difference in the acquired data readings is treated as a whole, and the standard deviation is calculated, which is the accuracy of the water meter being tested.

[0124]

[0125] Specifically, based on the difference between the first and necessary second synchronous readings of the water meter, n sample data are obtained. Using a sample-based unbiased estimation method based on standard deviation, a quasi-deviation estimate is calculated from the data obtained from the water meter being tested, thus obtaining the accuracy estimate of the water meter. This method addresses the reliability issues of accuracy and diagnostics of the water meter being tested on-site. Beyond verifying whether the water meter readings are normal and compliant, it further diagnoses the reliability of on-site accuracy detection and control, providing a basis for adjusting water meter errors or replacing the water meter with a new one.

[0126] When the first and second readings are inconsistent, the accuracy of the water meter being measured is ±0.047m. 3 The relative average change was ±13.2%.

[0127] S42: Based on the difference between the first and necessary second synchronous water meter readings, obtain n sample group data and plot the ROC (Receiver Operating Characteristic) curve;

[0128] Specifically, based on the tested water meter's class 2 and the maximum permissible error under normal environmental flow conditions of ±3%, and the standard water meter's ultrasonic flowmeter error of ±2%, and considering that the tested water meter does not have the stringent testing conditions required for laboratory testing, an error within ±5% of the reading is considered acceptable. The tested water meters with reading errors within ±5% of the compliant water meter are grouped into group n1, and those exceeding the error control are grouped into group n2. The reading sensitivity and specificity of the tested water meters are calculated, and ROC curves are plotted. Figure 4 As shown.

[0129] The advantage of using ROC curves is that they allow for a direct identification of the accuracy and specificity changes of the measured water meter under specific precision control, and further verification and comparison of flow rate changes.

[0130] S43: The area under the ROC curve (AUC) is used to measure diagnostic accuracy;

[0131]

[0132]

[0133] The area under the AUC-ROC curve is between 0.5 and 1.

[0134] n1 - The number of readings of the water meter being measured does not exceed the allowable error;

[0135] n2 - The number of water meter readings that exceed the allowable error;

[0136] x k1 (i) - The n1 readings of the water meter being measured do not exceed the i-th reading in the allowable error group;

[0137] x k2 (j) The -n2 readings of the water meter being measured exceed the j-th reading in the allowable error group;

[0138] The reliability of the diagnosis is determined by AUC size and significance test.

[0139] The AUC calculation showed an AUC of 0.835, which passed the significance test (higher than 0.7). This indicates that diagnoses based on an absolute error of no more than 5% have good reliability and can be used for practical judgment.

[0140] The AUC is between 0.5 and 1. Since it is difficult for the water meter being tested to meet the laboratory control test conditions, it is generally believed that an AUC of 0.7 indicates that the accuracy diagnosis has a certain degree of reliability.

[0141] The advantage of using AUC to diagnose errors is that it can identify reliability comparisons under various error controls. In practice, neither the strict, small detection error control used in the laboratory nor the large control error used is employed. A 5% error control can well balance the requirements of all parties.

[0142] Corresponding to the aforementioned embodiments of the method for on-site testing compliance and accuracy diagnosis of water meters for self-supplied water users in rivers, this application also provides embodiments of a device for on-site testing compliance and accuracy diagnosis of water meters for self-supplied water users in rivers.

[0143] Figure 5 This is a block diagram illustrating an on-site testing and accuracy diagnostic device for water meters used by self-supplied water users in river channels, according to an exemplary embodiment. (Refer to...) Figure 5 The device includes:

[0144] The acquisition module 1 is used to acquire the environmental condition parameters of the water meter under test on site, so as to provide information reference for the installation of the standard water meter and control the water meter under test and the compliant water meter to work under the same environmental conditions. The environmental condition parameters include at least the water meter working flow condition parameters and the maximum permissible error.

[0145] The first inspection module 2 is used to acquire synchronous data between the water meter under test and the standard water meter, perform a first consistency inspection based on the acquired data, and determine whether the water meter under test has a normal reading or whether a second consistency inspection is required based on the result of the first consistency inspection.

[0146] The second inspection module 3 is used to perform secondary synchronization data acquisition between the water meter under test and the standard water meter if a second consistency inspection is required, perform a second consistency inspection based on the acquired data, determine whether the reading of the water meter under test is normal based on the result of the second consistency inspection, and give the water meter compliance test result.

[0147] The diagnostic module 4 is used to calculate the standard deviation accuracy of the water meter reading based on the water meter's operating flow condition parameters, maximum permissible error, the results of the first consistency test, and the results of the second consistency test, and to diagnose the accuracy reliability.

[0148] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0149] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this application according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0150] Accordingly, this application also provides an electronic device, including: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the above-described method for on-site detection of compliance and accuracy of water meters for self-supplied water users in river channels. Figure 6 The diagram shown is a hardware structure diagram of any device with data processing capabilities, which is used for on-site testing compliance and accuracy diagnosis of water meters for self-supplied water users in river channels, according to an embodiment of the present invention. Except for... Figure 6 In addition to the processor and memory shown, any data processing device in the embodiment may also include other hardware depending on the actual function of the data processing device, which will not be described in detail here.

[0151] Accordingly, this application also provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the above-described method for on-site detection of compliance and accuracy of water meters for self-supplied water users in river channels. The computer-readable storage medium can be an internal storage unit of any device with data processing capabilities as described in any of the foregoing embodiments, such as a hard disk or memory. The computer-readable storage medium can also be an external storage device of a wind turbine, such as a plug-in hard disk, smart media card (SMC), SD card, flash card, etc., equipped on the device. Furthermore, the computer-readable storage medium can include both internal storage units of any device with data processing capabilities and external storage devices. The computer-readable storage medium is used to store the computer program and other programs and data required by the device with data processing capabilities, and can also be used to temporarily store data that has been output or will be output.

[0152] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of this application are indicated by the claims.

[0153] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A method for on-site testing and accuracy diagnosis of water meter readings from self-supplied water users in river channels, characterized in that, include: The environmental condition parameters of the water meter being tested are obtained on-site to provide information for the installation of the standard water meter, and the water meter being tested and the standard water meter are controlled to operate under the same environmental conditions. The environmental condition parameters include at least the water meter operating flow rate parameters and the maximum permissible error. The water meter under test and the standard water meter are synchronized and acquired once. A first consistency test is performed based on the acquired data. Based on the result of the first consistency test, it is determined whether the water meter under test has a normal reading and whether a second consistency test is required. If a second consistency test is required, the tested water meter and the standard water meter will be synchronized and acquired for the second time. A second consistency test will be conducted based on the acquired data. Based on the result of the second consistency test, it will be determined whether the tested water meter is reading normally and the water meter compliance test result will be given. Based on the water meter's operating flow rate condition parameters, maximum permissible error, the results of the first consistency test, and the results of the second consistency test, the reading standard deviation accuracy of the tested water meter is calculated, and the accuracy reliability is diagnosed. The process includes: conducting a first consistency check based on the acquired data; determining whether the water meter reading is normal based on the results of the first consistency check; and determining whether a second consistency check is needed, including: The differences between the data from the tested water meter and the standard water meter and the initial reading data are calculated separately, and these differences are used as valid data for consistency calculation. At a significance level of 0.05, the ICC coefficient is calculated. If the ICC coefficient is higher than 0.8, the two sets of readings are in good agreement, the water meter readings are considered normal, and the tested water meter is compliant. If the ICC coefficient is lower than 0.8, the significance test is not passed, the readings are not in good agreement, but at this point it is still impossible to determine whether the water meter is compliant, and a second consistency test is required. Based on the results of the second consistency test, the water meter's reading is determined to be normal, and the water meter's compliance test result is given using the following formula: ; - The normality rate of the tested water meter when the first reading of the tested water meter is inconsistent with the standard water meter but the second reading is consistent; - The probability that the second reading of the tested water meter is consistent with that of the standard water meter under normal conditions. = ; -The normal operation rate of the tested water meter under the condition that the first reading of the tested water meter is inconsistent with that of the standard water meter. = ; - The probability that the second reading of the tested water meter is consistent with that of the standard water meter under abnormal conditions. = ; - The rate of abnormality of the tested water meter when the first reading differs from the standard water meter reading. =1- ; If the readings match in the second test, the water meter is compliant; if the readings do not match, the water meter is non-compliant. Specifically, based on the water meter's operating flow rate parameters, maximum permissible error, and the results of the first and second consistency tests, the standard deviation accuracy of the tested water meter's readings is calculated, and the reliability of the accuracy is diagnosed, including: Based on the first reading of the water meter being tested, or the second reading of the water meter being tested if the first reading is inconsistent, the difference in the obtained data readings is treated as a whole, and the standard deviation is calculated. Based on the difference between the first and second synchronized water meter readings, obtain n sample group data and plot the ROC curve; The area under the ROC curve (AUC) is used to measure diagnostic accuracy.

2. The method according to claim 1, characterized in that, The formula for calculating the ICC coefficient is as follows: ; -Mean square of multiple flow intervals measured; -Square of the total error term between the tested water meter and the standard water meter; -Square metric between the tested water meter and the standard water meter; n - Number of valid synchronous readings.

3. The method according to claim 1, characterized in that, Based on the results of the first consistency test, a judgment is made on whether the water meter reading is normal or not. The compliance of the water meter is then determined using the Bayesian correction formula, as follows: ; - When the first reading of the tested water meter matches the reading of the standard water meter, the normal operation rate of the tested water meter is: - The probability that the water meter being tested will match the first reading of the standard water meter under normal conditions is determined by the water meter's accuracy. - The prior probability that the water meter under test is normal is estimated based on the year of manufacture, the environment in which it is used, the material it is made of, and the degree of damage it is damaged. - The probability that the measured water meter's first reading is consistent with the standard water meter's first reading under abnormal conditions, i.e., specificity; - The probability that the water meter being tested is malfunctioning ; If the first reading meets the required accuracy rate, the water meter has passed the compliance inspection, and the testing is stopped.

4. The method according to claim 1, characterized in that, Based on the difference between the first and second synchronized water meter readings, obtain n sample group data, and plot the ROC curve, including: Based on the standard water meter reading and accuracy, the water meters being tested are divided into two groups: those whose readings do not exceed the allowable error and those whose readings exceed the allowable error. Using the specificity and sensitivity of the water meters being tested as coordinate axes, ROC curves are plotted to determine the trend characteristics of the curve changes.

5. The method according to claim 1, characterized in that, The area under the ROC curve (AUC) is used to measure diagnostic accuracy, and the calculation formula is as follows: ; ; The area under the AUC-ROC curve is between 0.5 and 1. - The reading of the water meter being tested shall not exceed the number of permissible errors; - The readings of the water meter being tested exceed the number of permissible errors; - The n1 readings of the water meter being measured shall not exceed the i-th reading in the allowable error group; The -n2 readings of the water meter being measured exceed the j-th reading in the allowable error group; The reliability of the diagnosis is determined by AUC size and significance test.

6. A device for on-site testing and accuracy diagnosis of water meters used by self-supplied water users in river channels, characterized in that, The device is used to perform the on-site testing compliance and accuracy diagnosis method for water meters of self-supplied water users in river channels as described in claim 1, and includes: The acquisition module is used to acquire the environmental condition parameters of the water meter being tested on site, so as to provide information reference for the installation of the standard water meter and control the water meter being tested and the standard water meter to be under the same working environmental conditions. The environmental condition parameters include at least the water meter working flow condition parameters and the maximum permissible error. The first inspection module is used to acquire the first synchronous data between the water meter under test and the standard water meter, perform the first consistency inspection based on the acquired data, determine whether the water meter under test has a normal reading based on the result of the first consistency inspection, and determine whether a second consistency inspection is required. The second inspection module is used to perform secondary synchronization data acquisition between the water meter under test and the standard water meter if a second consistency inspection is required, perform a second consistency inspection based on the acquired data, determine whether the water meter under test has a normal reading based on the result of the second consistency inspection, and give the compliance test result of the water meter under test. The diagnostic module is used to calculate the standard deviation accuracy of the water meter reading based on the water meter's operating flow condition parameters, maximum permissible error, the results of the first consistency test, and the results of the second consistency test, and to diagnose the accuracy reliability.

7. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Household watermeter on-site calibration instrument and calibration method thereof

    CN104019871A

  • Flow instrument calibration system and method based on Internet of Things

    CN114543945A