Gate group time sequence flow abnormity diagnosis method based on statistical error analysis

Through the gate group timing flow abnormality diagnosis method based on statistical error analysis, the outlier value detection problem in gate group regulation is solved, the consistency and reliability of the monitoring data are improved, and more efficient abnormal diagnosis and data correction are achieved.

CN119004329AActive Publication Date: 2024-11-22CHINA SOUTH-TO-NORTH WATER DIVERSION GRP MIDDLE LINE CO LTD +1

Patent Information

Application Number
CN202411119761.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-11-22
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

The existing technology in the control of gate group due to environmental changes and equipment failures, resulting in reduced consistency of real-time monitoring data, affecting the reliability of engineering scheduling decisions, and machine learning-based methods require a large amount of labeled data and The decision-making process is poorly interpretable.

Method used

The gate group timing flow abnormality diagnosis method based on statistical error analysis is used, and the data is preprocessed through filtering method, the error distribution is analyzed, the reasonable error range is fitted, and the theoretical flow is calculated based on historical water situation information, and the abnormal data is judged and corrected.

Benefits of technology

It improves the accuracy of abnormal diagnosis, reduces the rate of missed or false detection, enhances the interpretability and flexibility of the model, adapts to the monitoring efficiency of different gates, and can adjust internal parameters as data updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119004329A_ABST
    Figure CN119004329A_ABST
Patent Text Reader

Abstract

The invention discloses a gate group time sequence flow anomaly diagnosis method based on statistical error analysis, and the method comprises the following steps: S1, carrying out the flow data preprocessing based on a filtering method; s2, flow error distribution analysis; s3, determining a reasonable flow error range based on a kup / down-sigma rule; s4, carrying out lockage flow coefficient relation curve fitting; s5, theoretical gate station flow calculation; and S6, abnormal traffic data diagnosis and correction. The method has the advantages that the specific monitoring error distribution characteristics and the monitoring variable mapping relation of different gate stations can be fully utilized, and the missing detection rate or the false detection rate is reduced. In the abnormal data diagnosis model, the real error distribution of the flow monitoring data is introduced, the specific monitoring error range of a specific project is determined, and the reliability of the flow abnormity diagnosis process is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of water conservancy information research, and in particular to a method for diagnosing abnormal flow of a gate group based on statistical error analysis. Background Art

[0002] Water monitoring data directly affects the results of sluice group regulation decisions. As an important indicator for real-time monitoring, flow rate can fully reflect the changes in water flow and is an important basis for sluice group regulation decisions. However, factors such as environmental changes, equipment failures, human intervention, and line transmission may lead to the appearance of abnormal values, reducing the consistency of real-time monitoring data, and thus affecting the reliability of engineering scheduling decisions and hydraulic simulation rehearsals.

[0003] Data cleaning is a necessary step to ensure the quality of monitoring data. Common data cleaning methods can be divided into two categories: statistical methods and machine learning methods. Most statistical methods use the 3σ rule to define a reasonable range and use indicators such as distance, clustering, deviation, and density to achieve abnormal diagnosis. The 3σ rule requires that the monitoring data obey the normal distribution, which may not be consistent with the actual situation, resulting in missed judgments and misjudgments in the cleaning process. The abnormal monitoring method based on machine learning converts the detection problem into a classification or prediction problem through models such as convolutional neural networks (CNN), and combines models such as recurrent neural networks (RNN) and long short-term memory networks (LSTM) to achieve anomaly detection of time series data. However, machine learning models require a large amount of labeled data for training. In practical applications, the labeled information of abnormal data is often difficult to obtain, and the black box model characteristics lead to poor interpretability of its decision-making process, which has limited application in practical engineering. Summary of the invention

[0004] The object of the present invention is to provide a method for diagnosing abnormal flow of gate group timing sequence based on statistical error analysis, so as to solve the above-mentioned problems existing in the prior art.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0006] A method for diagnosing abnormal flow of gate group timing sequence based on statistical error analysis comprises the following steps:

[0007] S1. Flow data preprocessing based on filtering method:

[0008] Perform median filtering on the real-time collected gate station flow data, and perform recursive average filtering on the median filtered data to obtain the final filtering result;

[0009] S2. Flow error distribution analysis:

[0010] According to the error between the preprocessed flow data and the real-time monitoring flow data, analyze whether the flow error distribution is a bell-shaped curve similar to the normal distribution;

[0011] S3, based on k up / down -Determination of reasonable flow error range of σ law:

[0012] Fit the cumulative frequency curve of the flow error of the regulating gate to obtain the cumulative distribution function Φ of the regulating gate error; and refer to the 3σ rule and use the probability formula to backcalculate the k value, and determine the reasonable flow error range of the gate station based on the k value;

[0013] S4, gate flow coefficient relationship curve fitting:

[0014] Based on the historical gate water conditions and engineering monitoring information, the relationship between the gate flow coefficient and the gate opening and the water level difference before and after the gate is fitted;

[0015] S5. Theoretical sluice station flow calculation:

[0016] Calculate theoretical gate flow based on historical gate flow coefficient relationship;

[0017] S6. Diagnosis and correction of abnormal traffic data:

[0018] Whether the monitored flow data is abnormal is determined based on whether the real-time gate flow error is within a reasonable flow error range, and the abnormal monitored flow data is corrected based on the theoretical gate station flow.

[0019] Preferably, the median filtering is specifically to continuously sample multiple times at the same time, sort the sample values ​​by size, and take the middle value as the current sampling value.

[0020] Preferably, the recursive average filtering is specifically to construct a data buffer with a fixed length, input the sampled values ​​after median filtering into the buffer, remove the maximum and minimum values ​​in the buffer, and calculate the average of the remaining values ​​as the result of this filtering; use the first-in-first-out principle to update the data in the buffer, continue the above process, realize real-time recursive filtering of time series data, and finally output the filtered traffic data.

[0021] Preferably, whenever a new traffic data point enters the data queue, median filtering and recursive average filtering calculations are performed, and the new mean is output as the filtering result, the new data point is added to the end of the data queue, and the oldest data point is removed to keep the data queue length unchanged.

[0022] Preferably, step S2 specifically comprises calculating the error between the filtered data and the monitoring data to obtain the long-sequence flow monitoring error; calculating the mean μ and standard deviation σ of the long-sequence flow monitoring error and drawing an error histogram to determine whether the flow monitoring error is a bell-shaped curve similar to a normal distribution.

[0023] Preferably, step S3 specifically includes the following contents:

[0024] S301, draw the cumulative frequency curve of the flow error of the regulating gate, use the Boltzmann function to fit the cumulative frequency curve, and use the determination coefficient R 2 Evaluate the fitting accuracy of the fitting curve and obtain the cumulative distribution function Φ of the flow error of the regulating gate;

[0025] S302, setting the value of the cumulative distribution function Φ of the flow error of the control gate, and using the probability formula to reversely calculate the k value with reference to the 3σ rule; the meaning of the k value is that 99.73% of the data points in the long sequence flow monitoring error should fall within the range of μ±kσ;

[0026] S303, calculate the reasonable flow error range of the gate station [μ-k down σ,μ+k up σ], when the flow error is within this interval, the flow data is considered normal, and when the flow error is outside this interval, the flow data is considered abnormal.

[0027] Preferably, step S4 specifically includes collecting historical water conditions and working conditions data including gate opening, water level before the gate, water level after the gate, gate flow rate, gate hole width;

[0028] The ratio of gate opening to water level difference before and after the gate is taken as the independent variable, and the gate discharge coefficient is taken as the dependent variable. The relationship between historical gate discharge coefficients is fitted based on the principle of least squares method, and the determination coefficient R is used to calculate the gate discharge coefficient. 2 Discriminant function fitting effect.

[0029] Preferably, step S5 specifically comprises calculating the theoretical gate flow coefficient from the historical gate flow coefficient relationship according to the real-time gate opening, the water level before the gate, and the water level after the gate, and calculating the theoretical gate station flow according to the theoretical gate flow coefficient.

[0030] Preferably, step S6 specifically includes the following contents:

[0031] S601, determine whether the real-time gate flow error is within a reasonable flow error range [μ-k down σ,μ+k up If so, the flow rate data monitored at this moment is determined to be a normal value and retained; otherwise, the flow rate data monitored at this moment is determined to be an abnormal value;

[0032] S602. For abnormal values, data correction is performed according to the theoretical gate station flow value, thereby ensuring the accuracy and reliability of the gate flow monitoring data.

[0033] The beneficial effects of the present invention are: 1. The method of the present invention analyzes the real error distribution of the flow monitoring data and tailors the reasonable error range of the specific engineering monitoring data. Compared with the direct application of the 3σ rule, it can give full play to the abnormal monitoring efficiency of different gates, effectively improve the accuracy of abnormal diagnosis, and reduce the missed detection or false detection rate. 2. The method of the present invention combines the theoretical calculation formula with the actual monitoring data, and while giving full play to the interpretability and generalization ability of the abnormal diagnosis model, it has certain flexibility and learnability advantages. With the rolling update of the monitoring data, the internal parameters of the abnormal diagnosis model can be updated. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 is a flow chart of a diagnostic method in an embodiment of the present invention;

[0035] Figure 2 is a flow error histogram of the regulating gate at the outlet of the inverted siphon of the waterfall river in the embodiment of the present invention;

[0036] Figure 3 is a graph showing the cumulative frequency of the error of the regulating gate at the outlet of the inverted siphon of the waterfall river in the embodiment of the present invention;

[0037] Figure 4 is a flow data diagnosis effect diagram based on the diagnosis method in an embodiment of the present invention;

[0038] Figure 5 It is a flow data diagnosis effect diagram based on the traditional 3σ method in an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation methods described herein are only used to explain the present invention and are not used to limit the present invention.

[0040] Embodiment 1

[0041] like Figure 1 As shown, in this embodiment, in order to solve the problem of abnormal data management in the flow monitoring of sluice stations in water conservancy projects, a method combining filtering algorithm and statistical analysis is provided to diagnose abnormal values, and interpolate abnormal values ​​based on the stable flow relationship of the sluice station. Using the error distribution and stable mapping relationship of the actual sluice station project monitoring data, a management framework for sluice station flow monitoring data is tailored to further reduce the proportion of misjudgment and wrong judgment, and improve the reliability and consistency of monitoring data. It specifically includes the following parts:

[0042] 1. Traffic data preprocessing based on filtering method

[0043] The real-time collected gate station flow data is subjected to median filtering, and the median filtered data is subjected to recursive average filtering to obtain the final filtering result.

[0044] In this embodiment, the time series data is preprocessed based on the filtering method. Compared with the traditional filtering method, the recursive median mean filtering has a stronger anti-interference ability, can effectively eliminate the abnormal values ​​with noise, and improve the quality of the monitoring data. The recursive median mean filtering algorithm combines the advantages of median filtering and mean filtering. Its basic principle is to store data in time series and build a data buffer with a fixed length. The data is updated in the buffer using the first-in-first-out principle. Its core includes two parts: median calculation (median filtering) and mean calculation (recursive average filtering).

[0045] 1. Median filtering: Continuously sample multiple times at the same time, sort the sample values ​​by size, and take the middle value as the current sample value

[0046] 2. Recursive average filtering: To reduce the impact of extreme values, remove the maximum and minimum values ​​in the buffer and calculate the mean of the remaining values.

[0047] Construct a data buffer with a fixed length, input the sampled values ​​after median filtering into the buffer, remove the maximum and minimum values ​​in the buffer, and calculate the mean of the remaining values ​​as the result of this filtering; use the first-in-first-out principle to update the data in the buffer, continue the above process, realize real-time recursive filtering of time series data, and finally output the filtered traffic data.

[0048] In this embodiment, whenever a new data point enters the queue, the above median and mean calculation steps are performed, and the new mean is output as the filtering result, the new data point is added to the end of the queue, and the oldest data point is removed to keep the queue length unchanged. The above process is continued to achieve real-time recursive filtering of time series data.

[0049] 2. Flow Error Distribution Analysis

[0050] According to the error between the preprocessed flow data and the real-time monitoring flow data, it is analyzed whether the flow error distribution is a bell-shaped curve similar to the normal distribution.

[0051] Specifically: calculate the error between the filtered data and the monitoring data to obtain the long-sequence flow monitoring error; calculate the mean μ and standard deviation σ of the long-sequence flow monitoring error and draw an error histogram to determine whether the flow monitoring error is a bell-shaped curve similar to the normal distribution.

[0052] According to the flow error distribution, the flow errors of each control gate present a bell-shaped curve similar to the normal distribution, but the statistical indicators show that it does not completely obey the normal distribution, and the kurtosis and skewness between the curves are different, so the 3σ rule cannot be directly used for outlier diagnosis.

[0053] 3. Based on k up / down -Determination of reasonable flow error range based on σ law

[0054] Fit the cumulative frequency curve of the flow error of the regulating gate to obtain the cumulative distribution function Φ of the regulating gate error; refer to the 3σ rule and use the probability formula to backcalculate the k value, and determine the reasonable flow error range of the gate station based on the k value. The specific steps include the following:

[0055] 3.1. Draw the cumulative frequency curve of the flow error of the regulating gate, use the Boltzmann function to fit the cumulative frequency curve, and use the determination coefficient R 2 The fitting accuracy of the fitting curve is evaluated and the cumulative distribution function Φ of the regulating gate flow error is obtained.

[0056] 3.2. Set the Φ value of the cumulative distribution function of the flow error of the regulating gate, and refer to the 3σ rule to use the probability formula to reversely calculate the k value; the meaning of the k value is that 99.73% of the data points in the long sequence flow monitoring error should fall within the range of μ±kσ.

[0057] 3.3、Calculate the reasonable flow error range of the gate station [μ-k down σ,μ+k up σ], when the flow error is within this interval, the flow data is considered normal, and when the flow error is outside this interval, the flow data is considered abnormal.

[0058] In this embodiment, when the data meets the standard normal distribution, the 3σ rule requires that 99.73% of the data fall within the range of μ±3σ, that is, points exceeding 3 times the standard deviation can be regarded as outliers or extreme values. For a bell-shaped curve similar to the normal distribution, a k-value similar to the 3σ rule can be used. up / down -σ rule determines the reasonable error range.

[0059] k up / down -σ rule The key to judging outliers is to determine k up / down It is necessary to draw the cumulative frequency curve of the flow error of the regulating gate, and use the Boltzmann function to fit the cumulative frequency curve to obtain the cumulative distribution function Φ. For example, when k up / down =3, Φ(3) is 0.99865, which means that the probability of the value being distributed in the interval (μ-3σ, μ+3σ) is 99.73%, and the probability of being distributed outside this area is less than 0.3%, see formula (1). Therefore, when the value of the cumulative distribution function Φ at a specific point is known, the probability formula can be used to reversely solve the k value, see formula (2).

[0060] P{μ-3σ <x<μ+3σ}=2Φ(3)-1=2×0.99865-1=0.9973 (1)

[0061] P{μ-kσ <x<μ+kσ}=2Φ(k)-1=2×0.99865-1=0.9973 (2)

[0062] Among them, μ is the mean, σ is the standard deviation, and Φ(k) is the cumulative distribution function.

[0063] Similar to the 3σ rule, the lower limit of the reasonable error of the proposed gate station is μ-k down σ, the upper limit of reasonable error is μ+k up σ, when the flow error of the gate station is symmetrically distributed, k up / down The values ​​are the same.

[0064] 4. Curve fitting of the relationship between flow coefficient through the gate

[0065] Based on the historical gate water conditions and engineering monitoring information, the relationship between the gate flow coefficient and the gate opening and the water level difference before and after the gate is fitted.

[0066] Specifically: collect historical water conditions and engineering conditions data, including gate opening, water level before the gate, water level after the gate, gate flow rate, and gate hole width.

[0067] The gate flow coefficient is related to factors such as gate opening and water level difference before and after the gate. The ratio of gate opening to water level difference before and after the gate is taken as the independent variable, and the real-time gate flow coefficient is taken as the dependent variable. The historical gate flow coefficient relationship is fitted based on the principle of least squares method, and the determination coefficient R is used to determine the gate flow coefficient. 2 The discriminant function fitting effect.

[0068] 5. Theoretical sluice station flow calculation

[0069] The theoretical gate flow coefficient is calculated based on the historical gate flow coefficient relationship, and the theoretical gate station flow is calculated based on the theoretical gate flow coefficient.

[0070] Specifically: Based on the measured gate opening, water level before the gate, and water level after the gate, the different theoretical gate flow coefficients corresponding to different measured data are calculated using the historical gate flow coefficient relationship, and the corresponding theoretical gate flow value is calculated using formula (3).

[0071]

[0072] Where m is the flow coefficient through the gate; Q is the flow through the gate, m 3 / s; b is the gate hole width, m; g is the gravitational acceleration, which is 9.81m / s 2 ;H0 is the theoretical water depth before the gate, m; H 2 is the theoretical water depth behind the lock, m.

[0073] VI. Diagnosis and Correction of Abnormal Traffic Data

[0074] Whether the monitored flow data is abnormal is determined based on whether the real-time gate flow error is within a reasonable flow error range, and the abnormal monitored flow data is corrected based on the theoretical gate station flow.

[0075] Specifically: Determine whether the real-time gate flow error is within the reasonable flow error range [μ-k down σ,μ+k up If so, the flow rate data monitored at this moment is determined to be a normal value and retained; otherwise, the flow rate data monitored at this moment is determined to be an abnormal value;

[0076] For abnormal values, data correction is performed according to the theoretical sluice station flow value, thereby ensuring the accuracy and reliability of the sluice flow monitoring data.

[0077] Embodiment 2

[0078] In this embodiment, the execution process and effectiveness of the method of the present invention are specifically described by taking the Buhe inverted siphon outlet control gate as an example.

[0079] 1. Preprocessing of time series data based on filtering method

[0080] Based on the recursive median mean filtering algorithm, the flow data is stored in time series and a data buffer with a fixed length is constructed. The data in the buffer is sorted by value. To reduce the impact of extreme values, the maximum and minimum values ​​in the buffer are removed, and the mean of the remaining values ​​is calculated as the filtering result output. The buffer is updated on a first-in-first-out basis.

[0081] 2. Analysis of flow error distribution

[0082] Calculate the error between the filtered data and the monitoring data to obtain the long sequence flow monitoring error. Calculate the mean μ and standard deviation σ of the error and draw the error histogram. According to the flow error distribution, the flow error of each control gate presents a bell-shaped curve similar to the normal distribution, but the statistical indicators show that it does not completely obey the normal distribution, and the kurtosis and skewness between the curves are different, so the 3σ rule cannot be used directly for outlier diagnosis. Table 1 shows the statistical indicators obtained by analysis. Figure 2 is the error histogram.

[0083] Table 1 Error statistical indicators

[0084] Gate station name Skewness Kurtosis μ σ Puhe inverted siphon outlet control gate -1.68949 63.42421 -0.00144 0.45785

[0085] 3. Determine the reasonable error range

[0086] For a bell-shaped curve similar to the normal distribution, a k similar to the 3σ rule can be used up / down -σ rule determines the reasonable error range. To determine k up / down The value of the flow error of the regulating gate needs to be plotted, and the cumulative frequency curve is fitted using the Boltzmann function to obtain the cumulative distribution function Φ. Table 2 shows the fitting formula and R 2 result, Figure 3 It is the error accumulation frequency curve.

[0087] Table 2 Cumulative frequency curve fitting formula

[0088] Gate station name Cumulative frequency curve fitting formula <![CDATA[R 2 ]]> Puhe inverted siphon outlet control gate y=99.81654+(0.1958-99.81654) / (1+exp((k-0.09769) / 0.1731)) 0.99

[0089] The cumulative frequency curve fitting formula result of the inverted siphon outlet control gate of the waterfall river is y = 0.99865. The k value is calculated based on the cumulative frequency curve fitting formula, and the result is 8.10. Since the error distribution is approximately symmetrical, it can be considered that k up / down = ±8.10. According to μ±k up / down The reasonable error range of the regulating gate at the outlet of the inverted siphon of the Puhe River is calculated to be [-3.710025, 3.707145]. The calculation results are shown in Table 3.

[0090] Table 3 Reasonable error range

[0091] Gate station name μ kσ Reasonable error limit Reasonable upper limit of error Puhe inverted siphon outlet control gate -0.00144 ±3.708585 -3.710025 3.707145

[0092] 4. Fitting the relationship curve of gate flow coefficient based on historical data

[0093] The gate flow coefficient is related to factors such as gate opening and water level difference before and after the gate. The ratio of gate opening e and water level difference ΔH before and after the gate is taken as the independent variable, and the real-time gate flow coefficient M calculated from water conditions and engineering conditions is taken as the dependent variable. The function relationship is fitted based on the principle of least squares method, and the coefficient of determination R is used to determine the coefficient of flow. 2 The fitting effect of the function is judged, and the fitting results are shown in Table 4.

[0094] Table 4 Cumulative frequency curve fitting formula

[0095] Gate station name variable Gate flow coefficient formula <![CDATA[R 2 ]]> Puhe inverted siphon outlet control gate e / ΔH <![CDATA[M=0.0082(e / ΔH) 2 +0.9936(e / ΔH)-0.3307]]> 0.998

[0096] 5. Calculate the theoretical sluice station flow

[0097] According to the measured gate opening, water level before the gate and water level after the gate, the theoretical gate flow coefficients corresponding to different measured data are calculated by the gate flow coefficient fitting function, and the corresponding theoretical gate flow values ​​are calculated using formula (3).

[0098] VI. Diagnosis and Correction of Abnormal Traffic Data

[0099] Based on the reasonable error range of the flow rate passing through the gate at each moment [-3.710025, 3.707145] proposed by statistical error analysis, it is judged whether the error of the measured flow rate passing through the gate is within the reasonable error range. If it is within the reasonable error range, the monitoring data at this moment is considered to be a normal value and retained; if it is not within the reasonable error range, the monitoring data at this moment is determined to be an abnormal value. For abnormal values, the data is corrected according to the theoretical gate station flow value.

[0100] The method proposed in this invention is used to diagnose abnormal values ​​of the measured flow data of the 240-hour flow rate of the inverted siphon outlet control gate of the Puhe River in 2023. The results are as follows: Figure 4 As shown in Figure 2, when the time is 28h and 48h, the monitored flow exceeds the allowable error range and is diagnosed as an abnormal value. The traditional 3σ method is used to diagnose the measured data, and the results are as follows: Figure 5 As shown in the figure, in the first 60 hours, the measured flow data are almost all abnormal values, which are inconsistent with the actual situation. Therefore, through the method proposed in the present invention, a reasonable error range that is more in line with the specific gate characteristics can be formulated, effectively improving the accuracy of abnormal diagnosis and reducing the missed detection or false detection rate.

[0101] By adopting the above technical solution disclosed in the present invention, the following beneficial effects are obtained:

[0102] The present invention provides a method for diagnosing gate group time-series flow anomalies based on statistical error analysis. The method of the present invention analyzes the true error distribution of flow monitoring data and tailors the reasonable error range of specific engineering monitoring data. Compared with the direct application of the 3σ rule, it can give full play to the monitoring efficiency of different gate anomalies, effectively improve the accuracy of anomaly diagnosis, and reduce the missed detection or false detection rate. The method of the present invention combines theoretical calculation formulas with actual monitoring data. While giving full play to the interpretability and generalization ability of the anomaly diagnosis model, it has certain flexibility and learnability advantages. With the rolling update of monitoring data, the internal parameters of the anomaly diagnosis model can be updated.

[0103] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be considered as the scope of protection of the present invention.

Claims

1. A method for diagnosing abnormal flow of gate group timing based on statistical error analysis, characterized in that: The following steps are included: S1. Flow data preprocessing based on filtering method: Perform median filtering on the real-time collected gate station flow data, and perform recursive average filtering on the median filtered data to obtain the final filtering result; S2. Flow error distribution analysis: According to the error between the preprocessed flow data and the real-time monitoring flow data, analyze whether the flow error distribution is a bell-shaped curve similar to the normal distribution; S3, based on k up / down -Determination of reasonable flow error range of σ law: Fit the cumulative frequency curve of the flow error of the regulating gate to obtain the cumulative distribution function Φ of the regulating gate error; The k value is calculated by using the probability formula with reference to the 3σ rule, and the reasonable flow error range of the gate station is determined based on the k value; S4, gate flow coefficient relationship curve fitting: Based on the historical gate water conditions and engineering monitoring information, the relationship between the gate flow coefficient and the gate opening and the water level difference before and after the gate is fitted; S5. Theoretical sluice station flow calculation: Calculate theoretical gate flow based on historical gate flow coefficient relationship; S6. Diagnosis and correction of abnormal traffic data: Whether the monitored flow data is abnormal is determined based on whether the real-time gate flow error is within a reasonable flow error range, and the abnormal monitored flow data is corrected based on the theoretical gate station flow.

2. The method for diagnosing abnormal flow rate of a gate group based on statistical error analysis according to claim 1, characterized in that: The median filter is to take samples for multiple times at the same time, sort the sample values ​​by size, and take the middle value as the current sample value.

3. The method for diagnosing abnormal flow rate of a gate group based on statistical error analysis according to claim 2, characterized in that: The recursive average filtering is specifically to build a data buffer with a fixed length, input the sampled values ​​after median filtering into the buffer, remove the maximum and minimum values ​​in the buffer, and calculate the mean of the remaining values ​​as the result of this filtering; the data is updated in the buffer using the first-in-first-out principle, and the above process is continued to realize real-time recursive filtering of time series data. Finally, the filtered traffic data is output.

4. The method for diagnosing abnormal flow rate of a gate group based on statistical error analysis according to claim 3, characterized in that: Whenever a new traffic data point enters the data queue, median filtering and recursive average filtering calculations are performed, and the new mean is output as the filtering result. The new data point is added to the end of the data queue and the oldest data point is removed to keep the data queue length unchanged.

5. The method for diagnosing abnormal flow rate of a gate group based on statistical error analysis according to claim 1, characterized in that: Step S2 specifically calculates the error between the filtered data and the monitoring data to obtain the long-sequence flow monitoring error; calculates the mean μ and standard deviation σ of the long-sequence flow monitoring error and draws an error histogram to determine whether the flow monitoring error is a bell-shaped curve similar to a normal distribution.

6. The method for diagnosing abnormal flow rate of a gate group based on statistical error analysis according to claim 5, characterized in that: Step S3 specifically includes the following contents: S301, draw the cumulative frequency curve of the flow error of the regulating gate, use the Boltzmann function to fit the cumulative frequency curve, and use the determination coefficient R 2 Evaluate the fitting accuracy of the fitting curve and obtain the cumulative distribution function Φ of the flow error of the regulating gate; S302, setting the value of the cumulative distribution function Φ of the flow error of the control gate, and using the probability formula to reversely calculate the k value with reference to the 3σ rule; the meaning of the k value is that 99.73% of the data points in the long sequence flow monitoring error should fall within the range of μ±kσ; S303, calculate the reasonable flow error range of the gate station [μ-k down σ,μ+k up σ], when the flow error is within this interval, the flow data is considered normal, and when the flow error is outside this interval, the flow data is considered abnormal.

7. The method for diagnosing abnormal flow rate of a gate group based on statistical error analysis according to claim 1, characterized in that: Step S4 specifically includes collecting historical water conditions and working conditions data including gate opening, water level before the gate, water level after the gate, gate flow rate, gate hole width; The ratio of gate opening to water level difference before and after the gate is taken as the independent variable, and the gate discharge coefficient is taken as the dependent variable. The relationship between historical gate discharge coefficients is fitted based on the principle of least squares method, and the determination coefficient R is used to calculate the gate discharge coefficient. 2 Discriminant function fitting effect.

8. The method for diagnosing abnormal flow rate of a gate group based on statistical error analysis according to claim 7, characterized in that: Step S5 specifically includes calculating the theoretical gate flow coefficient from the historical gate flow coefficient relationship according to the real-time gate opening, water level before the gate, and water level after the gate, and calculating the theoretical gate station flow according to the theoretical gate flow coefficient.

9. The method for diagnosing abnormal flow rate of a gate group based on statistical error analysis according to claim 6, characterized in that: Step S6 specifically includes the following contents: S601, determine whether the real-time gate flow error is within a reasonable flow error range [μ-k down σ,μ+k up If so, the flow rate data monitored at that moment is considered normal and retained; Otherwise, the monitored flow data at this moment is determined to be an abnormal value; S602. For abnormal values, data correction is performed according to theoretical sluice station flow values, thereby ensuring the accuracy and reliability of the sluice flow monitoring data.

Citation Information

Patent Citations

  • Cascaded multi-ditch gate lockage discharge coefficient calibration method

    CN106874622A

  • Real-time anomaly diagnosis and interpolation method for water regime monitoring data

    CN111307123A

  • Reservoir gate discharge curve calibration method and system based on water recession process fitting

    CN114021500A

  • Real-time abnormity-diagnosing and interpolation method for water regime-monitoring data

    US20230015731A1

Cited By

  • Pump station and gate station working condition detection method based on current-video bidirectional analysis

    CN120449110A