Wind power abnormal data detection method based on quartile and improved isolated nearest neighbor

The wind power power abnormal data detection method that combines the quartile method and the improved isolated nearest neighbor method solves the problems of complex calculations and large errors in the existing technology, achieves efficient identification and removal of wind power power abnormal data, and improves wind power efficiency. Accuracy of power prediction.

CN114841275BActive Publication Date: 2024-08-23SHIJIAZHUANG TIEDAO UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210520033.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-13
Publication Date
2024-08-23
Estimated Expiration
2042-05-13

AI Technical Summary

Technical Problem

Existing wind power power abnormal data detection methods are complex in calculation, inefficient and have large errors. It is difficult to effectively identify and process different types of abnormal data, which affects the accuracy of wind power power prediction.

Method used

The wind power power anomaly data detection method based on quartile and improved isolated nearest neighbor is adopted. The quartile method is used for preliminary detection and the improved isolated nearest neighbor method is used for secondary detection. Combined with the influence of the global hypersphere radius, the detection accuracy and accuracy are improved. efficiency.

Benefits of technology

It effectively identifies and removes abnormal data caused by faults, maintenance, noise, etc. in wind farms, improves the reliability of data and the accuracy of wind power prediction, and improves the detection effect of traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114841275B
    Figure CN114841275B
Patent Text Reader

Abstract

The present invention relates to a method for detecting abnormal data of wind power based on quartiles and improved isolated nearest neighbors, comprising the following steps: step 1, removing the accumulated abnormal data near the power value of 0; step 2, dividing the wind speed interval; step 3, using the quartile method to perform preliminary detection on the abnormal value of wind power; step 4, using the improved isolated nearest neighbor method to perform secondary detection on the abnormal value of wind power. The present invention uses the quartile method to perform preliminary detection; for the part that is not thoroughly detected by the quartile method, the isolated nearest neighbor method is used for secondary detection, thereby improving the recognition rate of abnormal detection; at the same time, the abnormal scoring method in the isolated nearest neighbor method is improved, and the global coefficient is increased under the influence of the overall hypersphere radius, thereby improving the detection accuracy of the method, which has high practical prospects and research significance for ensuring accurate data analysis of wind power.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a wind power detection method, in particular to a wind power abnormal data detection method based on quartile and improved isolated nearest neighbor. Background Art

[0002] With the proposal of the "dual carbon goals", the status of renewable energy generation in the power system is gradually improving. However, wind power generation, due to its temporal and spatial randomness and volatility, has an impact on the dispatching and planning of the power grid. If there is no reasonable prediction and planning of wind power, it will lead to the phenomenon of wind and power abandonment, which will seriously affect the safe and stable operation of the power system.

[0003] The principle of wind power prediction is to establish a mathematical model that maps future power data based on the input of relevant data. The prediction accuracy of the model is closely related to the data. A large amount of comprehensive and accurate wind power data is the guarantee of model accuracy. In the process of collecting raw data for wind farm monitoring, due to the influence of equipment maintenance, electromagnetic interference and other aspects, the on-site environment is very complex, which may cause a lot of noise in the wind power data, violate normal values, and even cause data missing. Therefore, the detection of raw data is of great significance for the subsequent accurate prediction of wind power.

[0004] See also Figure 1 Due to the influence of complex factors such as wind shear and turbulence, the power curve of the wind turbine in actual operation will have a certain deviation from the standard vP curve, usually in the shape of a data band centered on the standard vP curve; at the same time, due to equipment defects, artificial power restrictions and other reasons, there are a certain number of outliers that deviate from the wind speed-power curve. These points are usually called abnormal data of wind power. These abnormal data are usually divided into the following two types:

[0005] 1) Accumulated abnormal data

[0006] Accumulated abnormal data usually appear in the lower part of the curve, and the main distribution shape is a horizontal data band of non-rated power. Among them, the accumulated abnormal data with a mean value near 0 is mainly caused by maintenance or equipment failure. The abnormal data points distributed in the middle of the curve are mainly data abnormalities caused by artificial control of wind turbine output limitation or equipment failure, and their output power value is lower than the rated power.

[0007] 2) Dispersed abnormal data

[0008] Dispersed abnormal data is manifested as random and sparsely distributed numerical points outside the boundary of the vP curve. The causes of this are random factors such as extreme weather and signal noise. Therefore, this type of abnormal data point usually has no obvious pattern and may appear in all areas of the vP curve. Its randomness is difficult to measure through specific function distribution.

[0009] Whether it is accumulated abnormal data or dispersed abnormal data, if it exists proportionally in the original data, it will seriously affect the reliability of the data and the accuracy of power prediction. Therefore, it is necessary to detect and process these abnormal data.

[0010] The detection methods of abnormal wind power data can generally be divided into two categories: statistical method and data mining method. As shown in Table 1, the existing abnormal wind power data detection methods have the following problems:

[0011] Table 1: Problems with traditional wind power abnormal data detection methods

[0012] Summary of the invention

[0013] The purpose of the present invention is to provide a wind power abnormal data detection method based on quartile and improved isolated nearest neighbor to solve the problems of complex calculation, low efficiency and large error in existing detection and processing methods, and to realize the detection of different types of abnormal data.

[0014] The present invention provides a method for detecting abnormal wind power data based on quartile and improved isolated nearest neighbor, comprising the following steps:

[0015] Step 1: Remove the accumulated abnormal data near the power value of 0;

[0016] Step 2: Divide the wind speed intervals;

[0017] Step 3: Use the quartile method to conduct preliminary detection of abnormal wind power values;

[0018] Step 4: Use the improved isolated nearest neighbor method to perform secondary detection on wind power anomalies.

[0019] Furthermore, the specific method of step 1 is: according to the cut-in wind speed provided by the factory parameters of the wind turbine generator set, select the operating data greater than the wind speed value, determine whether the corresponding wind power value meets the rejection threshold, retain the value greater than the threshold, and remove the value less than the threshold, and the threshold is set to 5% of the rated power of the wind turbine generator set.

[0020] Furthermore, the specific division method of step 2 is: the wind speed is divided into intervals of 0.5 m / s between the minimum and maximum values, and the power values ​​in each wind speed interval are sorted from small to large.

[0021] Furthermore, the specific operation method of step 3 is:

[0022] For each wind speed interval, the power value p kSort from small to large to get the power value sequence in each wind speed range: p = [p1, p2, ..., p n ];

[0023] Calculate the 25% quantile Q1 and the 75% quantile Q3 of the above power value sequence:

[0024]

[0025]

[0026] Calculate the interquartile range I from quantile Q1 and quantile Q3 QR :

[0027] I QR =Q3-Q1 (3)

[0028] Define the range of normal values ​​[R1, R2]:

[0029] [R1, R2] = [Q1-1.5I QR ,Q3+1.5I QR ] (4)

[0030] In the formula, R1 is the lower boundary of the normal value interval, and R2 is the upper boundary of the normal value interval;

[0031] By calculating the lower boundary R1 and the upper boundary R2 of the normal value interval, the normal value range is obtained as [R1, R2]. Values ​​that exceed the inner limit of the normal value range [R1, R2] are abnormal values ​​identified by the quartile method; values ​​that meet the inner limit of the normal value range [R1, R2] are retained.

[0032] Furthermore, the specific operation method of step 4 is:

[0033] Define the number of classifiers as C, and the cth classifier (c = 1, 2, ..., C) is generated as follows: randomly and uniformly select a subsample ψ from the training sample ψ c , let ψ c The number of samples is Nc; the subsample ψ c Each sample point p in is taken as the center, and a set of Nc hyperspheres is constructed. Each hypersphere takes the Euclidean distance between its nearest neighbor samples as the radius; among them, the Euclidean distance between two samples {||a,b||,a,b∈ψ c} is defined as:

[0034]

[0035] Where N is the dimension of the sample;

[0036] Definition η pis the nearest neighbor sample of sample point p; B(p) is centered at sample point p and has a radius of τ(p) = ||p-η p ||'s hypersphere; given a test point x, calculate the corrected anomaly score of the test point by determining the radius of the hypersphere where the test point x is located and the radius of the nearest neighbor hypersphere for:

[0037]

[0038] In the formula, ζ(x) represents the center of the smallest hypersphere where point x is located, η ξ ( x ) represents the neighboring point with the smallest hypersphere radius near ζ(x); max(τ(p)) is the subsample ψ c The radius of the largest hypersphere of the constructed hypersphere group, is the global coefficient;

[0039] After testing all the data, the abnormal scores of all the data are calculated, the scored data are sorted, and after setting the elimination ratio, the parts with higher scores are eliminated, thus completing the secondary detection of abnormal wind power values.

[0040] The present invention uses the quartile method to perform preliminary detection; for the part that is not thoroughly detected by the quartile method, the isolated nearest neighbor method is used for secondary detection, thereby improving the recognition rate of anomaly detection; at the same time, the anomaly scoring method in the isolated nearest neighbor method is improved, and the global coefficient is increased while considering the influence of the entire hypersphere radius, thereby improving the detection accuracy of the method.

[0041] The wind power abnormal data detection method of the present invention can detect the problem of abnormal data in data collection due to operational failures, maintenance and repairs, sensor errors, etc. of wind farms, and can detect different types of abnormal data in wind power abnormal data. Aiming at the problem that there are many abnormal values ​​in the historical data collected by wind farms, the present invention proposes a new abnormal value detection method. This method improves the problems of low effect and high false recognition rate of traditional abnormal value detection, and solves the problems of unreasonable abnormal scoring of the original isolated nearest neighbor method, thereby improving the detection efficiency and detection accuracy, and has high practical prospects and research significance for ensuring accurate data analysis of wind power. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a distribution diagram of abnormal wind power data.

[0043] Figure 2 It is a schematic diagram of anomaly score calculation.

[0044] Figure 3 It is a schematic diagram of calculating the anomaly score of a special point.

[0045] Figure 4 It is a flowchart of the detection method of the present invention.

[0046] Figure 5a This is the original data vP relationship diagram. Figure 5b It is the repaired vP relationship diagram.

[0047] Figure 6a is the original data vP curve fitting diagram, Figure 6b This is the repaired vP curve fitting diagram.

[0048] Figure 7a This is the test result in the wind speed range of 2.5 to 3.0 m / s. Figure 7b This is the test result for the wind speed range of 7.5 to 8.0 m / s. Figure 7c This is the test result in the wind speed range of 11.5 to 12.0 m / s. Figure 7d This is the detection result in the wind speed range of 15.5 to 16.0 m / s.

[0049] Figure 8a This is the cleaning effect of the present invention. Figure 8b is the quartile-iNNE cleaning effect, Figure 8c is the quartile-isolation forest method test result, Figure 8d is the quartile test result. Figure 8e It is the result of the isolation forest method. DETAILED DESCRIPTION

[0050] like Figure 4 As shown, the wind power abnormal data detection method of the present invention mainly includes the following steps:

[0051] Step 1: Remove the accumulated abnormal data near the power value of 0. The specific operation method is: according to the cut-in wind speed provided by the factory parameters of the wind turbine, select the operating data greater than the wind speed value, and judge whether the corresponding wind power value meets the removal threshold. If it is greater than the threshold, it will be retained, and if it is less than the threshold, it will be removed; the threshold is set to 5% of the rated power.

[0052] Step 2, divide the wind speed interval: divide the wind speed between the minimum and maximum values ​​into intervals of 0.5 m / s, and sort the power values ​​in each interval from small to large.

[0053] Step 3: Use the quartile method to conduct preliminary detection of wind power anomalies.

[0054] The steps of the quartile method are as follows:

[0055] Sort the power values ​​in each wind speed interval from small to large to obtain the power value sequence in each wind speed interval: p = [p1, p2, ..., p n] Calculate the 25% quantile Q1 and 75% quantile Q3 of the above power value sequence:

[0056]

[0057]

[0058] Calculate the interquartile range I from quantile Q1 and quantile Q3 QR :

[0059] I QR =Q3-Q1 (3)

[0060] Define the range of normal values ​​[R1, R2]:

[0061] [R1, R2] = [Q1-1.5I QR ,Q3+1.5I QR ] (4)

[0062] Where R1 is the lower boundary of the normal value interval, and R2 is the upper boundary of the normal value interval.

[0063] By calculating R1 and R2, the normal value range [R1, R2] can be obtained. Values ​​beyond the inner limit of the normal value range [R1, R2] are identified as abnormal values ​​by the quartile method; values ​​that meet the inner limit of the normal value range [R1, R2] are retained.

[0064] Step 4: Use the improved isolated nearest neighbor method to perform secondary detection on wind power anomalies.

[0065] Since there are many scattered and accumulated abnormal data in the vP curve, the scattered data is manifested as data points that deviate from the standard vP curve and are relatively sparsely distributed; the accumulated data is manifested as a data band parallel to the wind speed axis in the vP curve, and in the power dimension, it is manifested as a value with a higher probability density near the abnormal value. Since the quartile method uses the distribution characteristics of the data to screen the data, there is an incomplete identification process when two abnormal values ​​exist at the same time. Therefore, it is necessary to re-identify the incompletely detected part based on the quartile method.

[0066] The isolation using nearest neighbor ensemble (iNNE) method combines the isolation idea in the isolation forest (iForest) with the nearest neighbor method, greatly reducing the computational complexity of the nearest neighbor method and improving the detection accuracy. Similar to the iForest method, iNNE first randomly samples data to build a classifier, and uses the classifier to perform isolation detection on the data. The difference is that each classifier of iNNE is composed of a set of multiple hyperspheres. Each hypersphere takes sample p' as the center of the sphere, and the radius of the hypersphere is determined by the distance between the nearest neighbor samples of sample p' in the training set, and the hypersphere only covers point p'. If sample p' is located in a sparse area, the radius of the corresponding hypersphere is larger; on the contrary, if sample p' is located in a dense area, the corresponding hypersphere is smaller. On this basis, by calculating the relative radius of the hypersphere and the adjacent hypersphere, it is possible to determine whether the sample point is a normal value. The specific steps are as follows:

[0067] Define the number of classifiers as C, and the cth classifier (c = 1, 2, ..., C) is generated as follows: randomly and uniformly select a subsample ψ from the training sample ψ c , let subsample ψ c The number of samples is Nc, with subsample ψ c With each sample point in as the center, a set of Nc hyperspheres is constructed, and each hypersphere takes the Euclidean distance between its nearest neighbor samples as the radius.

[0068] Among them, the Euclidean distance between two samples {||a,b||,a,b∈ψ c} can be defined as:

[0069]

[0070] Where N is the dimension of the sample. Define η p is the nearest neighbor sample of sample point p; B(p) is centered at p and has a radius of τ(p) = ||p-η p ||'s hypersphere. Given a test point x, the anomaly score S(x) of the test point can be calculated by determining the radius of the hypersphere where the test point x is located and the radius of the nearest neighbor hypersphere, which is defined as:

[0071]

[0072] In the formula, ζ(x) represents the center of the smallest hypersphere where point x is located, η ξ(x) represents the neighboring point with the minimum hypersphere radius near ζ(x).

[0073] because Therefore, the anomaly score S(x) takes values ​​in the range [0, 1]. The larger S(x) is, the more likely it is to be an outlier. Figure 2 As shown in the figure, B1, B2, B3 and B4 are hyperspheres, and points a and b are test data. Since point a does not belong to any hypersphere, its anomaly score is 1; point b belongs to hypersphere B1, The anomaly score of point a is: 1-r2 / r1. Since the anomaly score of point a is higher, point a is more likely to be an outlier than point b.

[0074] The original iNNE algorithm uses the local relative radius to evaluate the anomaly score. It can effectively evaluate the degree of anomaly of a data point by judging the data distribution through the relative radius of the adjacent hypersphere. However, iNNE lacks the evaluation of the global hypersphere radius, and some special points will cause a certain deviation between the anomaly score and the actual distribution characteristics. Figure 3 As shown in the figure, B1, B2, B3 and B4 are hyperspheres, and points a and b are test data. Point a belongs to hypersphere B1, and its anomaly score is 1-r1 / r1=0; point b belongs to hypersphere B4, and its anomaly score is 1-r2 / r2=0. At this time, the anomaly scores of points a and b are the same, both 0, and both are identified as normal data points. However, the radii of the hyperspheres where points a and b are located are not the same. Under this scoring mechanism, the same anomaly score does not seem reasonable. Therefore, it is necessary to correct the calculation method of the anomaly score and take the influence of the global hypersphere radius into account in the calculation method of the anomaly score.

[0075] Therefore, the modified anomaly score proposed by the present invention The calculation is as follows:

[0076]

[0077] In the formula, ζ(x) represents the center of the smallest hypersphere where point x is located, η ξ(x) represents the nearest neighbor point with the smallest hypersphere radius near ζ(x), max(τ(p)) is ψ c The radius of the largest hypersphere of the constructed hypersphere group, is the global coefficient.

[0078] By measuring the relative size of the radius of the hypersphere where the sample point is located in the total radius of the hypersphere, a more detailed evaluation of the abnormality of the data point can be made, thereby achieving differentiated detection of points with similar local relative radii and improving the accuracy of detection. In formula (6), The value range of is [0, 1], which still meets the normalization requirements.

[0079] Since the iNNE algorithm measures the sparsity between samples with Euclidean distance, the scales in the wind speed and power directions are the same, so normalization is required before data detection. After normalization, the improved isolated nearest neighbor method of the present invention is used to test all data and calculate the abnormality scores of all data. Since the closer the score is to 1, the higher the possibility of data abnormality, the data scores are sorted. After setting the elimination ratio, the parts with higher scores are eliminated, and the secondary detection of abnormal wind power values ​​can be completed.

[0080] Figure 5a The vP relationship diagram of the original data includes three types of accumulated abnormal data with 0kW, 600kW and 1100kW as the mean and scattered abnormal values ​​distributed at various positions of the vP curve. The vP relationship after cleaning by the detection method of the present invention is as follows: Figure 5b As shown. It can be seen that Figure 5b The scattered and accumulated abnormal data in Figure 5a As far as the above are concerned, they are all effectively detected and eliminated, and the quality of wind power data is effectively improved after cleaning.

[0081] The original data is fitted with the vP curve as follows Figure 6a As shown, the vP curve after fitting of the data cleaned by the detection method of the present invention is as follows Figure 6b As shown. It can be seen that the power curve fitted by the original data deviates significantly from the central part of the vP curve, and the deviation is more obvious when the wind speed is higher than 14m / s. This shows that when the vP curve is modeled by data containing a large number of outliers, there is a large error in the vP curve. The detection method of the present invention can detect abnormal data well, and the data information of the repaired data is more complete. The outliers superimposed on the normal data have been well eliminated, and the central dense data area around the vP curve has been clearly outlined.

[0082] In order to observe the detailed features of abnormal detection more clearly, the wind speed interval is divided into 0.5m / s, and the detection method of the present invention is used to detect the abnormal values ​​of each wind speed interval. The detection results of the representative wind speed sections of 2.5-3.0m / s, 7.5-8.0m / s, 11.5-12.0m / s and 15.5-16.0m / s are shown as follows: Figure 7a — Figure 7d shown.

[0083] As can be seen from FIG7 , each wind speed segment contains dispersed outliers, and the detection method of the present invention can effectively extract this type of outliers. Figure 7a The wind speed range is 2.5-3.0 m / s. The wind speed range mainly contains scattered abnormal data. The algorithm can better identify abnormal data in the range. Figure 7bThe wind speed range is 7.5-8.0 m / s. The wind speed range mainly contains scattered abnormal data and accumulated abnormal data distributed around 0 kW. It can be seen that the overall recognition is good in this range. Figure 7c The wind speed range is 11.5-12.0m / s. The wind speed range mainly contains scattered abnormal data and accumulated abnormal data distributed around 0kW, 500kW and 1100kW. In addition, the normal power value and the accumulated abnormal value overlap in this range. At this time, most of the accumulated abnormal values ​​can be better identified. Figure 7d The wind speed range is 15.5-16.0 m / s. This wind speed range mainly contains scattered abnormal data and a horizontal band accumulated near 1100 kW. The detection effect is also very obvious.

[0084] In summary, for the abnormal data in the above four intervals, the detection method of the present invention has good detection results.

[0085] After integrating each wind speed range, the quartile method (QM), the isolation forest method (iForest), the isolated nearest neighbor method (iNNE), and the quartile and isolated nearest neighbor method (QM-iNNE) were selected as control models. The data cleaning results of each control model are shown in the following table. Figure 8a — Figure 8e As shown. Figure 8a — Figure 8e It can be seen that for most outliers, the five algorithms can achieve relatively accurate recognition, but for discrete outliers and accumulated outliers, the detection capabilities of each algorithm are different. Among them, the detection method of the present invention has a strong detection effect on both discrete and accumulated data, while other methods fail to detect some points of accumulated data or have a high misrecognition rate.

Claims

1. A wind power abnormal data detection method based on quartile and improved isolated nearest neighbor, Its characteristics are: The following steps are involved: Step 1: Remove the accumulated abnormal data near the power value of 0; Step 2: Divide the wind speed intervals; Step 3: Use the quartile method to conduct preliminary detection of abnormal wind power values; Step 4: Use the improved isolated nearest neighbor method to perform secondary detection on wind power abnormal values; The specific operation method of step 3 is: For each wind speed interval, the power value p k Sort from small to large to get the power value sequence in each wind speed interval: p = [p 1 ,p 2 ,…,p n ]; Calculate the 25% quantile Q of the above power value sequence 1 and the 75% quantile Q 3 : By quantile Q 1 and quantile Q 3 Calculate the interquartile range I QR : I QR =Q 3 -Q 1 (3) Define the range of normal values ​​[R 1 ,R 2 ]: [R 1 ,R 2 ]=[Q 1 -1.5I QR ,Q 3 +1.5I QR ] (4) In the formula, R 1 is the lower boundary of the normal value interval, R 2 is the upper boundary of the normal value interval; By calculating the lower boundary R of the normal value interval 1 and the upper boundary of the normal value interval R 2 , the normal value range is: [R 1 ,R 2 ], for those beyond the normal range [R 1 ,R 2 ] are the values ​​within the limit, that is, the abnormal values ​​identified by the quartile method; for those that meet the normal value range [R 1 ,R 2 ], the value within the limit will be retained; The specific operation method of step 4 is: Define the number of classifiers as C, and the cth classifier (c = 1, 2, ..., C) is generated as follows: randomly and uniformly select a subsample ψ from the training sample ψ c , let ψ c The number of samples is Nc; the subsample ψ c Each sample point p in is taken as the center, and a set of Nc hyperspheres is constructed. Each hypersphere has the Euclidean distance between its nearest neighbor samples as the radius; among them, the Euclidean distance between two samples {||a,b||,a,b∈ψ c } is defined as: Where N is the dimension of the sample; Definition η p is the nearest neighbor sample of sample point p; B(p) is centered at sample point p and has a radius of τ(p) = ||p-η p ||'s hypersphere; given a test point x, calculate the corrected anomaly score of the test point by determining the radius of the hypersphere where the test point x is located and the radius of the nearest neighbor hypersphere for: In the formula, ζ(x) represents the center of the smallest hypersphere where point x is located, η ξ(x) represents the neighboring point with the smallest hypersphere radius near ζ(x); max(τ(p)) is the subsample ψ c The radius of the largest hypersphere of the constructed hypersphere group, is the global coefficient; After testing all the data, the abnormal scores of all the data are calculated, the scored data are sorted, and after setting the elimination ratio, the parts with higher scores are eliminated to complete the secondary detection of abnormal wind power values.

2. The method for detecting abnormal wind power data according to claim 1, Its characteristics are: The specific method of step 1 is: according to the cut-in wind speed provided by the factory parameters of the wind turbine, select the operating data greater than the wind speed value, determine whether the corresponding wind power value meets the rejection threshold, retain those greater than the threshold, and remove those less than the threshold. The threshold is set to 5% of the rated power of the wind turbine.

3. The method for detecting abnormal wind power data according to claim 2, Its characteristics are: The specific division method of step 2 is: divide the wind speed between the minimum and maximum values ​​into intervals of 0.5 m / s, and sort the power values ​​in each wind speed interval from small to large.

Citation Information

Patent Citations

  • Wind turbine generator power abnormal value detection method based on iterative statistics and hypothesis testing

    CN111275570A

  • Method for Detecting Abnormal Data in Sensor Network

    US20200374720A1