Error correction method, error correction device and flow sensing system
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of intelligent meter measurement, in particular to an error correction method, an error correction device and a flow sensing system.
[ background of the invention ]
The flow sensor is used for measuring the branch flow of the air supply or water supply or oil supply system or heat supply system. For example, water, gas, oil, or heat meters are common flow sensors. In reality, flow sensors have many problems: the flow sensor has errors which need to be detected; the error detection of the flow sensor needs special equipment and personnel, vacuum detection (measures such as water cut-off, gas cut-off and the like) is needed, and due to the large number of the flow sensors, the comprehensive error detection is work which consumes large time and resources. Moreover, the error of the flow sensor changes along with the service life, and the workload of error detection of the flow sensor and the consumption of human and property resources are increased.
Currently, with the development of computers, networks and big data technologies, much work is done globally on the research of flow sensor technology and flow metering technology. The main research has focused on: the research of the intelligent flow meter aims at improving the measurement precision and reducing the data error; the research of the intelligent flow meter calibration pipeline technology accelerates the error detection speed of the flow meter laboratory.
The problem that the flow sensor in reality has errors and the detection errors are difficult still cannot be solved by the scheme. In view of the above, overcoming the drawbacks of the prior art is an urgent problem in the art.
[ summary of the invention ]
The invention aims to solve the technical problem of how to solve the problems of errors of a flow sensor device and difficulty in error detection.
The invention adopts the following technical scheme:
in a first aspect, the present invention provides an error correction method for a flow sensor device, wherein a flow sensing system to be corrected comprises one or more flow sensor devices;
the error correction method includes:
acquiring original flow data of each flow sensor device in the flow sensing system to be corrected;
setting an error reference standard;
and acquiring the measurement error of each flow sensor device in the flow sensing system to be corrected based on the error reference standard, and correcting corresponding original flow data based on the measurement error of each flow sensor device.
Preferably, the obtaining a measurement error of each flow sensor device in the flow sensing system to be corrected based on the error reference standard, and the correcting the corresponding raw flow data based on the measurement error of each flow sensor device includes:
acquiring a reference measurement error of each flow sensor device in the flow sensing system to be corrected based on the error reference standard;
and correcting the corresponding original flow data according to the reference measurement error of each flow sensor device to obtain compensated flow data of each flow sensor device, wherein the error value of the compensated flow data of each flow sensor device is equal to the system error of the flow sensing system to be corrected.
Preferably, the obtaining a measurement error of each flow sensor device in the flow sensing system to be corrected based on the error reference standard, and the correcting the corresponding raw flow data based on the measurement error of each flow sensor device further includes:
acquiring a system error of the flow sensing system to be corrected;
and correcting the compensated flow data of each flow sensor device according to the system error of the flow sensor system to be corrected to obtain error-free flow data of each flow sensor device.
Preferably, the obtaining of the system error of the flow sensing system to be corrected comprises:
optionally selecting a flow sensor device in the flow sensing system to be calibrated;
removing the selected flow sensor device and measuring the actual measurement error of the selected flow sensor device;
and subtracting the reference measurement error of the selected flow sensor device from the actual measurement error of the selected flow sensor device to obtain the system error of the flow sensing system to be corrected.
Preferably, the obtaining of the system error of the flow sensing system to be corrected comprises:
a flow sensor device with known error is connected in series with a branch of any flow sensor device in the flow sensing system to be corrected;
in the operation process of the flow sensing system to be corrected, respectively reading the flow data of the flow sensor devices connected in series and the flow data of the flow sensor devices on the branch circuits, and determining the actual measurement error of the selected flow sensor devices;
and subtracting the reference measurement error of the selected flow sensor device from the actual measurement error of the selected flow sensor device to obtain the system error of the flow sensing system to be corrected.
Preferably, the flow sensing system to be corrected and the flow sensing system with known system errors have an intersection relationship or a subset relationship;
the step of obtaining the system error of the flow sensing system to be corrected comprises the following steps:
determining a target flow sensor device in the flow sensing system to be corrected, wherein the target flow sensor device is the same as the flow sensing system with the known system error;
calculating to obtain an actual measurement error of the target flow sensor device based on the flow sensing system with the known system error;
and subtracting the reference measurement error of the target flow sensor device from the actual measurement error of the target flow sensor device to obtain the system error of the flow sensing system to be corrected.
Preferably, the setting error reference standard includes:
in the flow sensing system to be corrected, any selected flow sensor device is used as an error reference standard;
and the measurement error of the error reference standard is designated as a designated value, wherein the difference value between the error designated value of the error reference standard and the actual error value of the error reference standard is equal to the system error of the flow sensing system to be corrected.
Preferably, the setting error reference standard includes:
selecting a flow sensor device as an error reference standard in the flow sensing system to be corrected, wherein the selected flow sensor device belongs to another flow sensing system with known system error;
and determining the measurement error of the error reference standard according to the flow sensing system with the known system error.
Preferably, the obtaining a measurement error for each flow sensor device based on the error reference criteria comprises:
establishing an energy conservation relation according to a first formula, wherein the first formula specifically comprises:
wherein, WiRaw flow data, X, of a flow sensor device representing the ith incoming lineiA measurement error of the flow sensor device representing the ith incoming line; wjRaw flow data, X, for a flow sensor device representing the jth outgoing linejA measurement error of the flow sensor device representing the jth outgoing line;
and substituting the original flow data corresponding to the error reference standard, the measurement error corresponding to the error reference standard and the original flow data of other flow sensor devices into a formula I to obtain the measurement error of each flow sensor device.
Preferably, the flow sensor device is a water meter, a gas meter, a heat meter or an oil meter.
Preferably, a flow sensor device is selected from the flow sensing system to be corrected one by one, a measurement error of the selected flow sensor device is set to a specified value, and measurement errors of other flow sensor devices are calculated;
determining the qualification rate of the flow sensor device in the flow sensing system to be corrected according to the relation between the measurement error of the flow sensor device and the standard measurement error;
and when the qualified rate is greater than a preset qualified rate threshold value, the correspondingly selected flow sensor device is used as an error reference standard.
Preferably, the number of error reference criteria is two, the error reference criteria including a first error reference criteria and a second error reference criteria;
the setting of the error reference standard further comprises:
setting a weight value corresponding to the first error reference standard as a first weight value, and setting a weight value corresponding to the second error reference standard as a second weight value;
calculating a first measurement error value for the other flow sensor devices according to the first error reference standard;
calculating second measurement error values of other flow sensor devices according to the second error reference standard;
determining measurement errors of other flow sensor devices according to the first measurement error value, the first weighting value, the second measurement error value, and the second weighting value.
Preferably, the setting error reference standard includes:
if no flow sensor device capable of meeting the condition that the qualified rate is greater than a preset qualified rate threshold value exists in the flow sensing system to be corrected, searching a reference flow sensing system capable of covering the flow sensing system to be corrected;
and gradually selecting flow sensor devices in the reference flow sensing system until the flow sensor devices which can meet the condition that the qualification rate is greater than a preset qualification rate threshold value are found, and setting the flow sensor devices as error reference standards.
In a second aspect, the present invention further provides an error correction apparatus for implementing the error correction method of the first aspect, the error correction apparatus including:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor and programmed to perform the error correction method of the first aspect.
In a third aspect, the present invention also provides a flow sensing system comprising one or more flow sensor devices, one or more error correction devices as described in the second aspect;
the error correction device is used for calculating the measurement error of each flow sensor device so as to correct the raw flow data.
In a fourth aspect, the present invention also provides a non-transitory computer storage medium having stored thereon computer-executable instructions for execution by one or more processors for performing the error correction method of the first aspect.
The invention provides an error correction method of a flow sensor device, which comprises the following steps: acquiring original flow data of each flow sensor device in a flow sensing system to be corrected; setting an error reference standard; and acquiring the measurement error of each flow sensor device in the flow sensing system to be corrected based on the error reference standard, and correcting corresponding original flow data based on the measurement error of each flow sensor device. By the error correction method, the original flow data of each flow sensor device is corrected, equal-error flow data or error-free flow data can be obtained, corrected flow data of all branches in the flow sensing system to be corrected can be quickly obtained, and an error process of measuring each flow sensor device is also avoided. The error correction method can accurately measure the flow data and effectively solve the problem of inaccurate flow data caused by errors of the conventional flow sensor device.
Furthermore, the error correction method can be used for carrying out real-time error monitoring or automatic detection on the flow sensor device, and can solve the technical problem that the traditional flow sensor device is difficult to detect errors.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below. It is obvious that the drawings described below are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic flow chart illustrating an error correction method for a flow sensor device according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first implementation manner of step 11 in FIG. 1 according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a flow sensing system to be calibrated according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of a second implementation manner of step 11 in FIG. 1 according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a flow sensing system to be calibrated and a flow sensing system with known system errors according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating an implementation manner of step 11 in FIG. 1 according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a first implementation manner of step 121 in FIG. 6 according to an embodiment of the present invention;
FIG. 8 is a flowchart illustrating a second implementation manner of step 121 in FIG. 6 according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of a flow sensing system to be calibrated for errors with another known system according to an embodiment of the present invention;
FIG. 10 is a flowchart illustrating a third implementation manner of step 121 in FIG. 6 according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of a summary and sub-table relationship of a water supply system provided by an embodiment of the present invention;
fig. 12 is a schematic structural diagram of an error correction apparatus according to an embodiment of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the description of the present invention, the terms "inner", "outer", "longitudinal", "lateral", "upper", "lower", "top", "bottom", and the like indicate orientations or positional relationships based on those shown in the drawings, and are for convenience only to describe the present invention without requiring the present invention to be necessarily constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.
In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
To facilitate understanding of the technical aspects of the present invention, the present invention is first specifically explained by terms appearing hereinafter.
The flow sensor device according to the present invention refers to a device for measuring a flow rate through a branch, and includes various types depending on usage scenarios, for example, the flow sensor may be a water meter for measuring a flow rate of water, or a gas meter for measuring a flow rate of natural gas or gas, or an oil meter for measuring an amount of oil, or a heat meter for measuring an amount of heat. The flow sensor apparatus of the present invention measures raw flow data with measurement errors.
The error reference standard according to the present invention refers to a standard or data as a reference for error. Whether using physical experimentation or mathematical calculation, the measurement of any one quantity is relative to a reference; the detection of any one measurement error is relative to an error reference, and the standard or data for the error reference is referred to as the error reference. For example, the "standard table" in the experiment of error checking of the conventional flow meter is an error reference standard. When calculating the error using the flow data, the data error of the flow sensor used as the reference datum is the error reference standard calculated this time.
The equal error data according to the present invention means: for any erroneous flow sensor device, when its measurement error is detected, the error of the corrected flow data obtained after error correction processing is performed on the original flow data (with error) of the flow sensor device by using the detected error value is equal to the error caused by the detection error method. These corrected flow data are referred to as "equal error" data. The equal error is an error caused by an error measurement method, is equal to an error value of an error reference standard, and is also a system error of the flow sensing system. Under the equal error concept, after error correction processing, the measurement error of each flow data of the flow sensing system is the same.
The error-free data of the invention refers to: for any equal error data, when its "equal error" is measured and corrected, the resulting data is error-free data. Considering that it is theoretically impossible to have absolute error-free data, it can be said in other words that error-free data is data with no or negligible errors.
The flow sensing system according to the present invention is: the entire flow sensor apparatus used to measure the flow of all the branches of a flow sensing system is considered to be a collection or a complete system. The flow of all incoming lines of the system is equal to the flow consumed by all outgoing lines, and the system conforms to the law of conservation of relative energy (the system is called as the law of conservation of relative energy due to factors such as leakage and the like). One of the characteristics of the flow sensing system is that the measuring objects are all branches of a complete system; the second characteristic of the flow sensing system is that all the flow data measured by the flow sensing system is equal error data or error-free data. Based on the error correction method, the flow sensing system can output error-free flow data.
Example 1:
in order to solve the problems of errors and difficulty in error detection in the flow sensor devices, this embodiment provides an error correction method for a flow sensor device, and by using the error correction method, the original flow data of each flow sensor device is corrected, so that equal-error flow data or error-free flow data can be obtained, and corrected flow data of all branches in a flow sensing system to be corrected can be quickly obtained.
Furthermore, the flow sensing system is adopted to replace the existing error checking method of the flow meter, so that the working efficiency can be improved, and the high cost caused by flow meter checking and flow meter rotation can be reduced.
In this embodiment, the flow sensing system to be corrected includes one or more flow sensor devices, wherein the error correction method of this embodiment is implemented based on the principle of conservation of energy, and the flow sensing system to be corrected satisfies the law of conservation of relative energy.
Wherein one or more flow sensor devices in the flow sensing system to be corrected conform to a correct network topology relationship. The network topology refers to the connection and affiliation between a flow sensor device on the incoming line side and a flow sensor device on the outgoing line side, wherein the concept of the incoming line side flow sensor device and the outgoing line side flow sensor device is relatively speaking, and is a relationship between a flow sum table and a flow sub table.
Referring to fig. 1, one implementation of the error correction method of the flow sensor device of the present embodiment is described. The error correction method comprises the following steps:
step 10: and acquiring original flow data of each flow sensor device in the flow sensing system to be corrected.
In this embodiment, raw flow data of the individual flow sensor devices may be automatically collected by the concentrator and transmitted to the database server. Wherein the raw flow data is in error due to errors in the flow sensor device.
In an actual application scene, different time periods can be divided according to habits of people on water use, gas use, heat use or oil filling, so that original flow data can be acquired in time periods. For example, in the water supply field, the original flow data of each flow sensor device may be collected in the morning, and in the flow sensing system to be corrected, there may be some flow sensor devices whose original flow data are zero, which may reduce the data amount and the difficulty of data processing. In this embodiment, after the actual measurement error of a part of the flow sensor devices is determined, the data collection may be performed again, for example, the raw flow data of each flow sensor device is collected in the daytime to determine the raw flow data of the remaining flow sensor devices. Since the actual measurement errors of a part of the flow sensor devices are determined in the foregoing process, the data processing amount can be greatly reduced, and the error correction rate can be improved. The gas supply field, the oil supply field or the heat supply field also have the condition that the original flow data of the flow sensor device is zero in a certain time period, and the data can be acquired in different time periods and error correction can be performed step by step so as to improve the operation efficiency.
Step 11: an error reference standard is set.
In this embodiment, in order to correct the original flow data, an error reference standard needs to be set first, and then the original flow data needs to be corrected based on the error reference standard to eliminate the error, so as to obtain more accurate flow data. There are at least several ways to set the error reference criteria.
The first method is as follows: the error reference standard is set using the method shown in fig. 2.
Step 1111: in the flow sensing system to be corrected, any selected flow sensor device is used as an error reference standard.
Referring to fig. 3, the flow sensing system to be corrected includes n flow sensor devices, where the flow sensor device 0 is a general table in the flow sensing system to be corrected and is used to measure incoming line flow, the flow sensor devices 1 to n-1 are branch tables and are used to measure branch line flow, the flow sensor device 0 and the flow sensor devices 1 to n-1 form a correct network topology relationship, and whether the network topology relationship is correct or not can be determined according to a correlation method.
A flow sensor device may be selected as the error reference standard from any one of the flow sensor devices 0 to n-1.
Step 1112: and the measurement error of the error reference standard is designated as a designated value, wherein the difference value between the error designated value of the error reference standard and the actual error value of the error reference standard is equal to the system error of the flow sensing system to be corrected.
In an optional embodiment, a numerical value is automatically designated as the error designated value according to an actual situation, or a numerical value is selected from a standard measurement error interval as the designated value. The specified value may deviate from the actual measurement error of the flow sensor device and may not actually reflect the measurement error of the flow sensor device. And the difference value between the error designated value of the error reference standard and the actual error value of the error reference standard is equal to the system error of the flow sensing system to be corrected. As explained further below.
The second method comprises the following steps: the error reference standard is set using the method shown in fig. 4.
Step 1121: in the flow sensing system to be corrected, a flow sensor device is selected as an error reference standard, wherein the selected flow sensor device belongs to another flow sensing system with known system error.
Referring to fig. 5, the flow sensor device n-1 belongs to the flow sensing system to be corrected, the flow sensor device n-1 also belongs to another flow sensing system with known system errors, and the flow sensor device n-1 can be selected as an error reference standard.
Step 1122: and determining the measurement error of the error reference standard according to the flow sensing system with the known system error.
In this embodiment, the measurement error of the error reference standard may be determined according to the flow sensing system with the known system error, and the measurement error determined according to this method is a known value, and the known value can reflect the true error value of the flow sensor device n-1 (error reference standard) without considering the calculation error or the detection error.
In the second method, when the error reference standard is set, the measurement error of each flow sensor device obtained in the following step 12 is the actual measurement error of each flow sensor device, and the error-free flow data can be obtained by correcting the corresponding raw data according to the actual measurement error.
In other ways, a calibration table may also be incorporated into the flow sensing system to be calibrated, the calibration table serving as an error reference. The setting manner of the error reference standard is selected according to actual conditions, and is not particularly limited herein.
Step 12: and acquiring the measurement error of each flow sensor device in the flow sensing system to be corrected based on the error reference standard, and correcting corresponding original flow data based on the measurement error of each flow sensor device.
In the embodiment of the present invention, in order to improve the accuracy of the calculation, a leakage parameter variable may be further provided, but for the purpose of indirect consideration of description, the leakage parameter variable is not introduced in the following detailed description process. Specifically, the following method may be adopted to obtain the measurement error of each flow sensor device.
For a flow sensing system having m incoming lines and n outgoing lines, the flow sensing system comprising at least (m + n) flow sensor devices, the flow through the flow sensing system conforms to the relative conservation of energy law, i.e.: the sum of the input flows is the sum of the user consumption flows.
In this embodiment, the energy conservation relation is established according to the formula one, wherein the formula one is specifically:
wherein,Wiraw flow data, X, of a flow sensor device representing the ith incoming lineiA measurement error of the flow sensor device representing the ith incoming line; wjRaw flow data, X, for a flow sensor device representing the jth outgoing linejIndicating the measurement error of the flow sensor device of the j-th outgoing line.
Then, the raw flow data corresponding to the error reference standard, the measurement error corresponding to the error reference standard, and the raw flow data of other flow sensor devices are substituted into a formula I to obtain the measurement error of each flow sensor device.
After each flow sensor device is compensated with a reference measurement error, the error between the resulting compensated flow data and the actual flow data is equal to the systematic error (i.e., equal error) of the flow sensing system. That is, the (m + n) flow data at any one time point given by the flow sensing system will have a same error. The system error is an equal error, is caused by an error measurement method, and is an error of an error reference standard in the error measurement method. This means that the equal error of one data is detected using any method, and the error value of the remaining (m + n-1) data is also known, thereby obtaining the true value of the flow rate value (error-free data).
However, when the error reference standard is set differently, the data correction method corresponding to step 12 also differs.
When the error reference standard is set in the second mode or the standard table is directly quoted as the error reference standard, the measurement error of each flow sensor device in the flow sensing system to be corrected is obtained based on the error reference standard, the measurement error is the actual measurement error of each flow sensor device, and then the corresponding original flow data is corrected based on the actual measurement error of each flow sensor device to obtain error-free data.
When the error reference standard is set in the first mode, the measurement error of each flow sensor device in the flow sensing system to be corrected is obtained based on the error reference standard, where the measurement error is a reference measurement error of each flow sensor device and may not be equal to an actual measurement error. The original flow data is corrected according to the reference measurement error to obtain compensated flow data, and for the flow sensing system to be corrected, the compensated flow data corresponding to each flow sensor device is equal error data, and error-free data can be obtained after the equal error is required to be eliminated. The raw flow data may specifically be corrected as follows. Referring to fig. 6, step 12 specifically includes the following sub-steps:
step 121: and acquiring the reference measurement error of each flow sensor device in the flow sensing system to be corrected based on the error reference standard.
When the error reference standard is one of the flow sensor devices in the flow sensing system to be corrected, each of the flow sensor devices is the other flow sensor device excluding the error reference standard. When introducing an external flow sensor device into the flow sensing system to be corrected, each flow sensor device refers to all flow sensor devices included in the flow sensing system to be corrected, and does not include an external flow sensor device.
Step 122: and correcting the corresponding original flow data according to the reference measurement error of each flow sensor device to obtain compensated flow data of each flow sensor device, wherein the error value of the compensated flow data of each flow sensor device is equal to the system error of the flow sensing system to be corrected.
In this embodiment, according to the equal error theory, the corresponding raw flow data is corrected according to the reference measurement error of each flow sensor device, so as to obtain compensated flow data of each flow sensor device, wherein an error value of the compensated flow data of each flow sensor device is equal to a system error of the flow sensing system to be corrected.
Step 123: and acquiring the system error of the flow sensing system to be corrected.
In order to obtain error-free flow data, a system error of the flow sensing system to be corrected needs to be obtained, wherein the system error of the flow sensing system to be corrected is equal to a difference value between an error specified value of an error reference standard and a self-measured error value (an actual measured error value).
Due to the equal error theory, the actual measurement error of each flow sensor device minus the reference measurement error thereof is correspondingly equal to the system error of the flow sensing system to be corrected. Therefore, a flow sensor device can be selected at will to obtain the actual measurement error of the flow sensor device, so as to obtain the system error of the flow sensing system to be corrected, and further, the compensated flow data of other flow sensor devices is corrected, so that error-free flow data is obtained.
Step 124: and correcting the compensated flow data of each flow sensor device according to the system error of the flow sensor system to be corrected to obtain error-free flow data of each flow sensor device.
In this embodiment, after the system error of the flow sensing system to be corrected is obtained, the compensated flow data of each flow sensor device is corrected according to the system error of the flow sensing system to be corrected, so as to obtain error-free flow data of each flow sensor device, where the error-free flow data is data with no error theoretically or data with negligible error.
In step 123, there are multiple optional ways to obtain the system error of the flow sensing system to be corrected, which are specifically as follows:
the first method is as follows: the method shown in fig. 7 is adopted to obtain the system error of the flow sensing system to be corrected.
Step 1231 a: optionally, a flow sensor device is included in the flow sensing system to be calibrated.
In this embodiment, a flow sensor device may be selected arbitrarily, or a flow sensor device serving as an error reference standard may be selected, and this is not particularly limited.
Step 1232 a: the selected flow sensor device is removed and the actual measurement error of the selected flow sensor device is measured.
In the process of carrying out the measurement, the selected flow sensor device is removed and sent to a laboratory, and the error is detected by using the traditional method, so that the actual measurement error of the selected flow sensor device is obtained. The actual measurement error may also have an error with respect to the actual situation, but the error is small and negligible.
Step 1233 a: and subtracting the reference measurement error of the selected flow sensor device from the actual measurement error of the selected flow sensor device to obtain the system error of the flow sensing system to be corrected.
The second method comprises the following steps: the method shown in fig. 8 is adopted to obtain the system error of the flow sensing system to be corrected.
Step 1231 b: and a flow sensor device with known error is connected in series with a branch of any flow sensor device in the flow sensing system to be corrected.
In this embodiment, a branch where a flow sensor device is located may be selected at will, and a branch where a flow sensor device serving as an error reference standard is located may also be selected, which is not specifically limited herein.
The flow sensor device with known error can be understood as a standard table, and the actual measurement error of the flow sensor device on the corresponding branch is obtained through the standard table.
Because water or gas can accumulate in the pipeline, in order to ensure the accuracy of the test, the flow sensor device which is connected in series is arranged adjacent to the flow sensor on the branch.
Step 1232 b: and respectively reading the flow data of the flow sensor devices which are connected in series and the flow data of the flow sensor devices on the branch circuits in the operation process of the flow sensing system to be corrected, and determining the actual measurement error of the selected flow sensor device.
Step 1233 b: and subtracting the reference measurement error of the selected flow sensor device from the actual measurement error of the selected flow sensor device to obtain the system error of the flow sensing system to be corrected.
The third method comprises the following steps: as shown in fig. 5, the flow sensor device n-1 belongs to both the flow sensing system to be corrected and the flow sensing system with known system error, and an intersection relationship exists between the flow sensing system to be corrected and the flow sensing system with known system error; as shown in fig. 9, the flow sensing system to be corrected belongs to a flow sensing system with a known system error, and the flow sensing system to be corrected is a subset of the flow sensing system with the known system error, and a subset relationship exists between the flow sensing system to be corrected and the flow sensing system with the known system error.
The method shown in fig. 10 is adopted to obtain the system error of the flow sensing system to be corrected.
Step 1231 c: in the flow sensing system to be corrected, a target flow sensor device is determined, wherein the target flow sensor device is identical to the flow sensing system with the known system error.
Step 1232 c: and calculating the actual measurement error of the target flow sensor device based on the flow sensing system with the known system error.
Step 1233 c: and subtracting the reference measurement error of the target flow sensor device from the actual measurement error of the target flow sensor device to obtain the system error of the flow sensing system to be corrected.
In the relation diagram shown in fig. 5, the flow sensor device n-1 can be used as a target flow sensor device, and through a flow sensing system with known system errors, the actual measurement error of the flow sensor device n-1 can be obtained, so as to obtain the system error of the flow sensing system to be corrected.
In the relation diagram shown in fig. 9, the flow sensor device 0 in the flow sensing system to be corrected, the flow sensor device 0 may be used as a target flow sensor device, and an actual measurement error of the flow sensor device 0 may be obtained by the flow sensing system with known system errors, so as to obtain the system error of the flow sensing system to be corrected.
Example 2:
here, a specific case is described: in an industrial park, a water supply system includes that 1 flow sensor device measures this water supply system's inlet wire flow, and 6 flow sensor devices measure respectively that corresponding outlet wire flow is individual.
As shown in fig. 11, the flow sensor device M1' is provided on the water supply system inlet side as a summary table for measuring inlet flow data, and the flow sensor devices M1 to M6 are provided on the user outlet side as branch tables for measuring line flow data.
For the first formula in example 1, taking m as 1 and n as 6, the following equation is obtained:
for the aforementioned equation, it must be assumed that the measurement error of the flow sensor device on one branch (whether it is incoming or outgoing) is a known value. Otherwise, the aforementioned equation is a homogeneous equation, which is an equation without a unique solution.
In an alternative implementation, given that the error value of the flow sensor device of a branch is a specified value (the flow sensor device is an error reference standard), the difference between the specified value of the error value of the flow sensor device and the true value of the error of the flow sensor device forms an equal error. And solving error values of other individual flow sensor devices in the equation to obtain a reference measurement error of each flow sensor device, and compensating the original flow data according to the reference measurement error to obtain compensated flow data (equal error flow data), as follows:
W′i=Wi(1+Xi)
W′j=Wj(1+Xj)
wherein, W'i,W′jRepresenting flow data after the ith incoming line and the jth outgoing line are compensated, except for the system error of a flow sensing system, W'i,W′jIs equal errorAnd (4) data.
In this process, the compensated flow data corresponding to the flow sensing system has a common system error (equal error), and the equal error data is also error-free data under the condition that the error designated value of the set error reference standard is accurate.
After the equal error data is obtained, it is necessary to obtain a system error of the flow sensor device to correct the equal error data to obtain error-free data.
In practical application scenarios, the actual measurement error of any flow sensor device in the flow sensing system, for example, the actual measurement error X of the ith flow sensor device, can be detected by using conventional detection techniques and methodsicThen, the following formula two can be obtained:
X′i=Xic-Xi
wherein, X'iIndicating the systematic error, X, of the flow sensing systemicRepresents the actual measurement error of the ith flow sensor device; xiIndicating the reference measurement error of the ith flow sensor device.
After the system error of the flow sensing system is obtained, the actual measurement error of each flow sensor device can be obtained, and then the flow data is corrected to obtain error-free flow data.
In this case, the flow sensing system is installed and configured as follows: comprises 7 sets of flow sensors; the original flow data of the individual flow sensor devices are automatically collected through the concentrator and transmitted to the database server. And a mathematical model and an algorithm program of the flow sensing system are installed in the database server, and the original flow data transmitted by the individual flow sensor device is calculated to calculate the reference measurement error of the individual flow sensor device. In the database server, the original flow data of the individual flow sensor device is compensated according to the reference measurement error to obtain equal error flow data. And finally, acquiring the system error of the flow sensing system to eliminate the equal error and obtain error-free flow data.
In this case, the hardware of the flow sensing system is composed of an individual flow sensor device, a concentrator and a database server; the software includes communication software and error calculation compensation software. The error calculation of the individual flow sensor devices may be done in the individual flow sensor devices or in a calculation circuit installed in a component thereof, or may be done in a dedicated calculation device (e.g. a concentrator). In addition, the computing process may be specifically implemented by edge computing, cloud computing, or fog computing.
Example 3:
for the error reference standard set in the above embodiment 1, this embodiment further provides an optional scheme as follows:
successively selecting flow sensor devices from the flow sensing system to be corrected, setting the measurement error of the selected flow sensor device as a specified value, and calculating the measurement errors of other flow sensor devices; determining the qualification rate of the flow sensor device in the flow sensing system to be corrected according to the relation between the measurement error of the flow sensor device and the standard measurement error; and when the qualified rate is greater than a preset qualified rate threshold value, the correspondingly selected flow sensor device is used as an error reference standard.
By adopting the error reference standard set in the mode, the error designated value of the error reference standard is probably closer to the error true value, and under a special application scene, the process of determining the system error can be omitted, and the error correction efficiency is improved.
In an alternative embodiment, the number of error reference criteria is two, the error reference criteria comprising a first error reference criteria and a second error reference criteria; the setting of the error reference standard further comprises: and setting the weighted value corresponding to the first error reference standard as a first weighted value, and setting the weighted value corresponding to the second error reference standard as a second weighted value, wherein the first weighted value and the second weighted value can be determined according to the respective qualification rates corresponding to the first error reference standard system and the second error reference standard, and the weighted value corresponding to the error reference standard with high qualification rate is relatively large. Calculating first measurement error values of other flow sensor devices according to the first error reference standard; calculating second measurement error values of other flow sensor devices according to the second error reference standard; determining measurement errors of other flow sensor devices according to the first measurement error value, the first weighting value, the second measurement error value, and the second weighting value.
In this embodiment, the measurement errors of other flow sensor devices are determined by means of weighted averaging, so that the accuracy can be improved and the method is closer to the actual situation.
When the error reference standard is selected in the foregoing manner, all flow sensor devices in the flow sensing system to be corrected may not meet the condition that the yield is greater than the preset yield threshold, that is, any flow sensor device in the flow sensing system to be corrected may not be set as the error reference standard, so that the calibration process may not be implemented. In order to solve the problem, in the present embodiment, an improvement is made based on the foregoing scheme, an area range to which the error reference standard belongs is continuously extended, and in a specific application scenario, a flow sensing system larger than the flow sensing system to be corrected exists, and the larger flow sensing system covers the flow sensing system to be corrected, and here, for convenience of description, the larger flow sensing system capable of covering the flow sensing system to be corrected and having a network topology relationship with the flow sensing system to be corrected is described as a reference flow sensing system. An error reference criterion can be selected from the reference flow sensing system to correct the raw flow data. The specific scheme is as follows:
and if the flow sensor device which can meet the condition that the qualified rate is greater than a preset qualified rate threshold value does not exist in the flow sensing system to be corrected, searching for a reference flow sensing system which can cover the flow sensing system to be corrected. And gradually selecting flow sensor devices in the reference flow sensing system until the flow sensor devices which can meet the condition that the qualification rate is greater than a preset qualification rate threshold value are found, and setting the flow sensor devices as error reference standards.
In this embodiment, when all the flow sensor devices in the flow sensing system to be corrected cannot be used as the error reference standard, the upstream backtracking is performed, and the screening is continuously traversed until a suitable error reference standard is found, so as to correct the data. A better error correction method is provided for special application scenes, and the application scenes of the error correction method are widened.
After the error reference standard is determined, the flow data may be corrected in the manner of embodiment 1, and specifically, reference may be made to embodiment 1, which is not described herein again.
Example 4:
fig. 12 is a schematic structural diagram of an error correction apparatus according to an embodiment of the present invention. The error correction apparatus of the present embodiment includes one or more processors 41 and a memory 42. In fig. 12, one processor 41 is taken as an example.
The processor 41 and the memory 42 may be connected by a bus or other means, and fig. 12 illustrates the connection by a bus as an example.
The memory 42, as a nonvolatile computer-readable storage medium for storing an error correction method, may be used to store nonvolatile software programs and nonvolatile computer-executable programs, such as the error correction methods in embodiments 1 to 3. The processor 41 executes the error correction method by executing non-volatile software programs and instructions stored in the memory 42.
The memory 42 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 42 may optionally include memory located remotely from processor 41, which may be connected to processor 41 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
It should be noted that, for the information interaction, execution process and other contents between the modules and units in the apparatus and system, the specific contents may refer to the description in the embodiment of the method of the present invention because the same concept is used as the embodiment of the processing method of the present invention, and are not described herein again.
Those of ordinary skill in the art will appreciate that all or part of the steps of the various methods of the embodiments may be implemented by associated hardware as instructed by a program, which may be stored on a computer-readable storage medium, which may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Example 5:
this embodiment provides a flow sensing system comprising one or more flow sensor devices, one or more error correction devices as described in embodiment 4, the error correction devices being configured to calculate a measurement error for each of the flow sensor devices to correct raw flow data.
Wherein, flow sensor device is water gauge, gas meter, hotlist or oil meter, is provided with corresponding metering chip and/or communication circuit in the flow sensor device, can accomplish the collection and the transmission of data.
The error correction device is used for realizing a calculation process through edge calculation, cloud calculation or fog calculation.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.