A Classification Method for Composite Power Quality Disturbance
Through the improved empirical wavelet transform and XGBoost model, the problem of insufficient frequency band division accuracy in power quality disturbance classification is solved, higher classification accuracy and noise robustness are achieved, and it is suitable for automatic classification of complex power quality disturbances.
Patent Information
- Application Number
- CN202110414078.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-16
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-04-16
AI Technical Summary
Existing power quality disturbance classification methods have shortcomings in spectrum resolution and classification performance. Especially when processing complex disturbance signals, the traditional empirical wavelet transform (EWT) has problems with the accuracy of frequency band division.
The improved empirical wavelet transform (MEWT) is combined with dynamic measurement and scale space representation to extract characteristic frequency points, and a power quality composite disturbance classification model is constructed through XGBoost. Bayesian optimization and forward sequence feature selection are used to optimize model training and transform multiple The labeling problem consists of multiple binary classification sub-problems.
It improves the analysis capabilities and feature expression capabilities of power quality disturbances, improves classification accuracy and noise robustness, and meets the needs for automatic classification of power quality disturbance events in actual engineering.
Smart Images

Figure CN113128396B
Abstract
Description
Technical Field
[0001] The invention relates to the field of power system automation, and in particular to a method for classifying power quality composite disturbances. Background Art
[0002] In recent years, with the widespread access of a large number of nonlinear loads and distributed power sources, the probability of power quality (PQ) disturbance events in the power grid has increased significantly. The cross-coupling between different disturbances has also made the disturbance types increasingly complex, posing a serious threat to the safe and economic operation of the power system. Faced with the massive disturbance data recorded by the monitoring device, the real-time and accurate classification of complex power quality disturbances is the key prerequisite for targeted analysis and governance of power quality problems, and therefore has important research significance.
[0003] After years of research, various PQ disturbance classification methods have emerged, but most of them can be summarized into two steps: feature extraction and disturbance classification. As a typical time-varying signal, time-frequency analysis methods are widely used in PQ disturbance feature extraction. Short Time Fourier Transform (STFT) can combine time-frequency domain information to characterize signal characteristics, but its window function is fixed and is only suitable for stationary signal analysis; although Discrete Wavelet Transform (DWT) has variable time-frequency resolution, its analysis effect is greatly affected by the number of decomposition layers and the selection of wavelet basis; S-Transform (ST) has both good noise resistance and time-frequency analysis performance, but it is still subject to the Heisenberg uncertainty principle and has poor real-time performance. Empirical Wavelet Transform (EWT) is a signal time-frequency analysis method based on the wavelet transform theory framework. It inherits the multi-scale characteristics of wavelet transform and the adaptability of empirical mode decomposition. It effectively suppresses the mode aliasing phenomenon while not relying on the selection of the mother wavelet, and has a small amount of computation. It has been widely used in engineering signal analysis. Existing related research shows that EWT has become one of the effective ways to analyze PQ signals, but when dealing with complex disturbance signals, its frequency band division accuracy still needs to be improved. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a power quality composite disturbance classification method based on MEWT and XGBoost in view of the shortcomings of the existing EWT technology in the field of power quality signal analysis and the shortcomings of the existing power quality disturbance classification methods in terms of the number of classification types and classification performance.
[0005] The purpose of the present invention can be achieved through the following technical solutions:
[0006] A method for classifying composite power quality disturbances comprises the following steps:
[0007] Step 1: Collect power quality disturbance signals;
[0008] Step 2: Scale space representation of power quality disturbance signal;
[0009] Step 3: dividing the frequency spectrum of the power quality disturbance signal into a plurality of continuous intervals to obtain a plurality of limited bandwidth natural modes;
[0010] Step 4: Construct empirical wavelet and implement improved empirical wavelet transform;
[0011] Step 5: Extract feature vectors from the results of improved empirical wavelet transform;
[0012] Step 6: Construct a power quality composite disturbance classification model based on XGBoost;
[0013] Step 7: Input the feature vector into the power quality disturbance classification model to obtain the classification and identification result of the power quality composite disturbance.
[0014] Optionally, in step 3, a dynamic measure is used to perform a detrending evaluation on the maximum points in the scale space representation, and a frequency point whose dynamic measure value is greater than a discrimination threshold is determined as a characteristic frequency point.
[0015] Optionally, in step 6, the multi-label problem of composite disturbance classification is converted into multiple binary classification sub-problems by using a binary association method, and several XGBoosts are selected as sub-classifiers to construct a power quality composite disturbance classification model.
[0016] Optionally, the following steps are also included: based on Bayesian optimization theory, each XGBoost parameter is adjusted by cross-validation.
[0017] Optionally, the power quality disturbance includes one or more of voltage swell, voltage interruption, voltage sag, harmonics, transient oscillation, transient pulse, and voltage flicker disturbance.
[0018] Optionally, in step 3, the middle frequency of two adjacent characteristic frequency points is taken to construct a frequency band boundary, and the frequency band boundary is translated and supplemented.
[0019] Application of any of the above methods in a power quality monitoring device or system.
[0020] Beneficial effects of the present invention:
[0021] (1) Aiming at the "over-slicing" phenomenon of spectrum in traditional EWT, the present invention designs a characteristic frequency point screening mechanism combining SSR and dynamic measurement, which improves the analysis and feature expression capabilities of EWT for complex power quality disturbances;
[0022] (2) The present invention fully considers the changing law of disturbance characteristics before and after the superposition of power quality disturbances, and designs feature vectors that can effectively describe different disturbance characteristics based on the time-frequency analysis results of MEWT;
[0023] (3) The present invention applies XGBoost, which is not prone to overfitting, has a higher loss function solution accuracy and supports sparse data processing, to the classification of power quality disturbances, and designs a model training method based on forward sequence feature selection and Bayesian hyperparameter tuning, so that the generalization performance of the BR-XGBoost classification model is further optimized;
[0024] (4) The present invention is an automatic classification method for power quality complex disturbances. Compared with the prior art, it has obvious advantages in distinguishable categories, classification accuracy and noise robustness, and can meet the application requirements of automatic classification of power quality disturbance events in actual engineering. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The present invention will be further described below in conjunction with the accompanying drawings.
[0026] Figure 1 It is the overall algorithm flow chart of the present invention;
[0027] Figure 2 It is the power quality signal waveform and its MEWT analysis result diagram;
[0028] Figure 3 It is BLIMF 1 Schematic diagram of extreme point envelope sequence;
[0029] Figure 4 It is the BR-XGBoost multi-label perturbation classification model framework;
[0030] Figure 5 Based on XGBoost j Perturbation label classification flow chart;
[0031] Figure 6 is the relative importance of the perturbation features corresponding to different labels;
[0032] Figure 7 It is the forward sequence feature selection result of label C1;
[0033] Figure 8 XGBoost before and after hyperparameter tuning j Performance comparison;
[0034] Fig. 9 are the perturbation classification results obtained by different sub-classifiers. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] The present invention provides a power quality composite disturbance classification method based on MEWT and XGBoost, such as Figure 1 As shown, the method comprises the following steps:
[0037] (1) Power quality (PQ) disturbance signal acquisition;
[0038] Various power quality disturbance signals are collected and recorded through the current and voltage transformers and secondary equipment in the substation, and the PQ disturbance signals are amplitude standardized and length uniformly cut.
[0039] (2) Using Modified Empirical Wavelet Transform (MEWT) to process power quality disturbance signals;
[0040] MEWT is used to process the power quality disturbance signal and decompose it into several band-limited intrinsic mode functions (BLIMFs). The BLIMF components are named BLIMF from low to high according to their main frequencies. 1 ,BLIM 2 , ...BLIMF N Among them, MEWT is an improvement on the traditional empirical wavelet transform (EWT). The key lies in adjusting the characteristic frequency determination method and frequency band division rules of the traditional EWT. MEWT mainly includes the following steps:
[0041] 1) Perform scale-space representation (SSR) on the spectrum of the disturbance signal. Assume that the discrete Fourier transform of the PQ disturbance signal f(t) is F(ω), and define the Gaussian kernel function as:
[0042]
[0043] Where n is the scale factor. Then the discrete form of the scale space representation of F(ω) can be defined as:
[0044]
[0045] Where: M is the approximate coefficient, when The discrete approximation error of the Gaussian kernel function can be ignored. The scale space representation can smooth the local interference peaks while retaining the spectrum feature information, which can significantly reduce the difficulty of distinguishing the characteristic frequency points.
[0046] 2) From the definition of SSR, it can be seen that the interference frequency point will gradually disappear as n increases, but the characteristic frequency point will also be submerged. In order to obtain a higher frequency domain resolution of the characteristic frequency point, and considering that there may still be interference extreme points with large amplitudes in the SSR at a smaller scale, in some embodiments of the present invention, a dynamic measurement is used to evaluate the detrending of the maximum points in the SSR. Let x u is a maximum point in L(ω,n). If there exists x in L(ω,n) u Higher point, then x u The dynamic measure D yn [x u ] is equal to the dynamic measure of the minimum path among all paths to equal height points, that is:
[0047] D yn [x u ]={i nf {D yn [l(x u ,x v )]};h alt (x u )=h alt (x v )}
[0048] Where: l(x u , x v ) represents x u Leading to the iso-height point x v Path; i nf {·} represents the infimum; h alt (·) indicates the height. At this time, if D yn [x u ] is greater than the discrimination threshold T d , we can determine x u is the characteristic frequency point. In the present invention, n=9, T d =5.
[0049] 3) Determine the characteristic frequency sequence Then, take the midpoint frequency between two adjacent characteristic frequency points to construct the frequency band boundary sequence Considering that most of the PQ disturbance characteristic frequencies are distributed in the low-frequency region, if the frequency bands are divided according to the existing EWT spectrum segmentation rules, then the characteristic frequency Ω N The corresponding highest frequency disturbance component will fall into the frequency band interval [ω N-1 ,ω N ], at this time, the highest frequency component in the EWT decomposition result will inevitably be polluted by high-frequency noise. To this end, in some embodiments of the present invention, the first N frequency band boundaries are retained. Based on this, the frequency band boundary is shifted and supplemented according to the following formula:
[0050]
[0051] Where: λ is the translation coefficient. Considering that the PQ disturbance component is symmetrical about the spectrum peak in the frequency domain, setting λ = 1 can make it completely fall into the bandpass interval [ω N- 1,ω N ] filter, thereby suppressing the interference of high-frequency noise.
[0052] 4) At this time, the disturbance signal spectrum will be divided into N+1 continuous intervals By constructing the empirical wavelet and implementing the empirical wavelet transform, various disturbance components and noise components can be extracted from the original signal, and the disturbance signal can be decomposed into several limited bandwidth intrinsic modes.
[0053] (3) Extracting 12-dimensional feature vectors from the MEWT analysis results of the disturbance signal;
[0054] PQ composite disturbances are usually composed of multiple PQ basic signals superimposed. The present invention identifies normal signals (C0), voltage swells (C1), voltage interruptions (C2), voltage sags (C3), harmonics (C4), transient oscillations (C5), transient pulses (C6), voltage flicker (C7) and power quality composite disturbances composed of the above disturbances. To illustrate the analysis performance of MEWT in detail, various basic signals with a signal-to-noise ratio of 30dB are generated through MATLAB, and MEWT is used to analyze the basic signals. The results are as follows: Figure 2 shown. Figure 2 From top to bottom in each sub-figure are the original signal, the MEWT frequency band division result and the signal decomposition result BLIMF. n (n=1, 2,…, N+1).
[0055] Depend on Figure 2 It can be seen that due to the frequency band shifting and supplementation strategy adopted by MEWT, single frequency signals such as C0~C3 and C6, C7 are decomposed into low frequency components BLIMF1 and high frequency component BLIMF 2 , where the low-frequency component is the denoised fundamental signal, which almost completely retains the time domain characteristics of the fundamental signal. In addition to noise pollution, the high-frequency component also includes transient pulse components and transient processes of temporary rise, interruption, and temporary drop disturbances. For multi-frequency disturbances such as C4 and C5, MEWT can accurately determine their characteristic frequency points in the frequency domain and convert the low-frequency component BLIMF 1 and high frequency component BLIMF n (n≠1) are separated from the original signal one by one. The low-frequency component here is also the fundamental signal after denoising, and the high-frequency component contains disturbance components such as harmonics, transient oscillations, and noise pollution.
[0056] Based on the above analysis, the PQ disturbance classification features are extracted as follows:
[0057] 1) Low-frequency component characteristics
[0058] Given the low-frequency component BLIMF extracted by MEWT 1 It can effectively preserve the original characteristics of the baseband signal in the PQ disturbance without being disturbed by other additional disturbances. 1 Extract features F1~F7.
[0059] Let A(p) = |BLIMF 1 (p)|, p is the sampling point number, p = 1, 2, ..., P (P is the total number of sampling points of the PQ signal), based on the double threshold strategy, the maximum value point is selected in A(p) to form the envelope sequence Peak of the extreme value point of the low-frequency component, where the horizontal threshold T 1 =0, vertical threshold T 2 =f s ·T / 4. Figure 2 (d) Taking the temporary drop disturbance as an example, the envelope sequence of its extreme value points is as follows: Figure 3 As shown. Figure 3 It can be seen that Peak can accurately describe the amplitude change of the fundamental signal in the PQ disturbance. Therefore, features F1 to F3 are extracted from Peak. Features F1 and F2 are defined as the number of effective up-crossings and the number of effective down-crossings, respectively. If Peak crosses the threshold d upward or downward 1 , and higher than d 1 If the duration of the peak is greater than an extreme point, it is an effective upward crossing; similarly, if the peak crosses the threshold d upward or downward 2 , and lower than d 2 The duration of d is greater than an extreme value point, which is an effective downward crossing. 1 =1.08, d 2=0.92, corresponding to the lower limit of the temporary rise amplitude of 1.1 and the upper limit of the temporary drop amplitude of 0.9. In addition, the serial numbers corresponding to the extreme points in the Peak (the first and last elements are also regarded as extreme points) are recorded in sequence U from small to large, and the difference between the two adjacent extreme points in the Peak is calculated. The amplitude fluctuation sequence S can be obtained as shown in the following formula:
[0060] S(v)=Peak[U(r)]-Peak[U(r-1)]
[0061] Where: r = 2, 3, ..., R (R is the total number of extreme points in Peak); S(v) represents the magnitude of the vth amplitude fluctuation, v = 1, 2, ..., R-1. S(v) is greater than the threshold d 3 The number of elements is the effective fluctuation number F3. 3 =0.18.
[0062] Using a sliding window of length W, we can obtain the effective value sequence A of the low-frequency component. RMS , the calculation process is shown as follows:
[0063]
[0064] Where: W = f s ·T / 2; q is the valid value sequence number, q = 1, 2, ..., P-W+1. RMS The effective value features F4 to F7 can be extracted from A RMS The maximum, minimum, mean, and standard deviation of the .
[0065] 2) SSR dynamic measurement characteristics
[0066] For high-frequency disturbances such as harmonics and transient oscillations, their characteristics are mainly reflected in the frequency domain and are not affected by other additional disturbances. Therefore, features F8~F9 can be extracted from the SSR dynamic measurement results of MEWT.
[0067] For PQ disturbances containing harmonics, the SSR dynamic measure corresponding to the harmonic frequency is significantly greater than other disturbances without harmonics, so F8 is defined as:
[0068]
[0069] Where: i is the harmonic number considered; l f =P / (f s T) is the location of the base frequency.
[0070] Transient oscillation will also significantly increase the SSR dynamic measurement corresponding to the oscillation frequency. Therefore, F9 is defined as the maximum value of the SSR dynamic measurement in the high frequency band of 400 to 1600 Hz where the transient oscillation is located.
[0071] 3) High frequency component characteristics
[0072] In addition to the low-frequency components, the transformation results of MEWT also contain multiple high-frequency components of varying numbers, from which features F10 to F12 can be extracted.
[0073] The features F10 and F11 are defined as the highest frequency component BLIMF respectively. N+1 The maximum value and kurtosis of PQ disturbance will increase significantly when there is a transient pulse.
[0074] Considering that different disturbances have different energy distributions on different time-frequency planes, the high-frequency component energy feature F12 is defined as follows to assist in distinguishing various disturbances:
[0075]
[0076] (4) Construct a power quality composite disturbance classification model based on XGBoost;
[0077] eXtreme Gradient Boosting (XGBoost) integrates several weak classifiers into a strong classifier through multiple rounds of iterations and residual fitting, which has good generalization performance and computational efficiency. It should be pointed out that in the gradient boosting process of XGBoost, the more times a feature is selected as a split feature, the higher its importance. Therefore, XGBoost can rank the importance of all input features. Given that the perturbation characteristics of all perturbation labels have been fully considered in the PQ perturbation feature extraction stage, based on the binary relevance (BR) strategy, we construct and train Figure 4 The BR-XGBoost multi-label perturbation classification model shown in Figure 1 decomposes the multi-label classification problem into Q single-label binary classification problems (Q is the number of labels). For label j, let the training set D j ={(X i ,y i )|1≤i≤n}(1≤j≤Q), where i is the sample number, X is the feature vector, and variable y i ∈{1,0} is used to indicate whether sample i belongs to label j. Based on D j Training XGBoost j Binary classification model, so that the prediction result y of label j can be obtained j , and then combine multiple binary classifiers into BR-XGBoost to output the multi-label perturbation classification result Y = [y 1 ,y 2 , …, y Q ].
[0078] For different classification problems, feature selection can effectively remove redundant elements in the feature set, thereby improving the generalization performance of the model. j Perform feature selection. For label j, first obtain the importance ranking of all features based on XGBoost, then add the top-ranked features to the feature subset (initial empty set) in turn, and calculate the cross-validation classification accuracy (ACC) of the feature subset after each addition. If the ACC improves, the feature is retained, otherwise it is removed. All features are traversed to obtain the optimal feature subset of label j.
[0079] In addition to being affected by the training set, the performance of the model also depends to a large extent on the selection of its built-in parameters, namely hyperparameters. In order to avoid the complexity and uncertainty of manual parameter adjustment, based on the Bayesian optimization theory, a cross-validation method is used to tune each XGBoost based on the range of each hyperparameter, thereby improving the model accuracy of BR-XGBoost.
[0080] In summary, XGBoost combines feature selection and hyperparameter tuning j The perturbation label classification process is as follows Figure 5 shown.
[0081] (5) Input the feature vector into the trained BR-XGBoost multi-label classification model to obtain the classification and recognition results of various types of composite disturbances.
[0082] The optimal feature subset of each label obtained in step (4) is input into the corresponding XGBoost sub-classifier, and the optimal hyperparameters of each XGBoost obtained in step (4) are used as model parameters to complete the BR-XGBoost model training. Finally, the test sample is input into the BR-XGBoost classification model, and the 7 XGBoost sub-classifiers in BR-XGBoost respectively determine whether the test sample contains voltage swell, voltage interruption, voltage sag, harmonics, transient oscillation, transient pulse, and voltage flicker disturbance, thereby obtaining the classification and recognition results of various types of composite disturbances.
[0083] In one embodiment of the present invention, since the actual collected power quality disturbance signal cannot fully reflect the diversity of power quality disturbance, 1000 samples of normal signal, 7 types of basic disturbance, 17 types of double disturbance, 17 types of triple disturbance and 6 types of quadruple disturbance are randomly generated in MATLAB according to the mathematical model, 50% of which are randomly selected as training sets, and the rest are used as test sets. The disturbance signal base frequency is 50Hz, the sampling frequency is 6.4kHz, and the signal duration is 0.2s.
[0084] First, based on XGBoost in the noise-free training set, the relative importance of the features of the seven categories of labels is obtained as follows: Figure 6 As shown in the figure, the importance of F1~F6 is mainly distributed in the fundamental frequency disturbances such as C1~C3 and C7, while F8~F10 has the highest importance for the disturbances C4~C6 respectively. These are consistent with the original intention of the design of the disturbance features and their respective physical meanings, verifying the rationality of the proposed features.
[0085] Next, based on the feature importance ranking results corresponding to different labels, forward sequence feature selection is performed on different labels under 5-fold cross validation. Taking label C1 as an example, the change of its ACC index under cross validation with the addition of features in the feature subset is shown in the following figure: Figure 7 As shown. Figure 7 It can be seen that, except for F10, F8, F12 and F2 which were eliminated due to the decline in accuracy, the cross-validation index of XGBoost gradually improved with the continuous addition of effective features. Repeat the above operation for different labels, and obtain the optimal feature subsets corresponding to various disturbances in a noise-free environment as shown in Table 1. Furthermore, BR-XGBoost was trained using the optimal feature subset and all 12-dimensional features, respectively, and the average cross-validation accuracy of each XGBoost was 99.52% and 99.37%, respectively, which fully reflects the role of feature selection in promoting the generalization performance of the classifier.
[0086] Table 1 The optimal feature subsets corresponding to different labels
[0087]
[0088] Based on the Bayesian optimization theory, each XGBoost hyperparameter is tuned in the noise-free training set after feature selection, and a set of hyperparameters with the highest cross-validation index ACC is selected as the final parameters. The names of the hyperparameters involved and the optimization adjustment ranges are shown in Table 2.
[0089] Table 2 Hyperparameter optimization adjustment range
[0090]
[0091] Figure 8 XGBoost before and after hyperparameter tuning in a noise-free environment is given j The changes in the cross-validation indicators show that, except for labels C4 and C6, which have insufficient room for improving the generalization effect of the model due to the low input feature dimension, the accuracy indicators of the remaining labels have been further improved after parameter tuning.
[0092] Noise pollution has always been an important problem that cannot be avoided in PQ perturbation classification in engineering applications. In order to verify the noise robustness of the proposed method, noise with signal-to-noise ratios of 40dB, 30dB and 20dB were added to the perturbation samples respectively. The above-mentioned method combining feature selection and hyperparameter tuning was used to train the BR-XGBoost model in different noise environments. Finally, based on the test set, the classification accuracy of PQ basic perturbation, double perturbation, triple perturbation and quadruple perturbation under different signal-to-noise ratios was obtained, as shown in Tables 3 to 5.
[0093] Table 3 Basic perturbation classification results
[0094]
[0095] Table 4 Dual perturbation classification results
[0096]
[0097] Table 5 Multiple perturbation classification results
[0098]
[0099]
[0100] It can be seen from Tables 3 to 5 that the overall perturbation classification accuracy gradually decreases with the increase of the complexity of the perturbation type and the intensity of the background noise. Specifically, when SNR ≥ 30dB, the average accuracy of each type of perturbation only slightly decreases. Even for the quadruple PQ perturbation at a 20dB signal-to-noise ratio, the average accuracy of the classification model of this embodiment can still reach 94.1%, which fully demonstrates the good classification effect and noise resistance of the proposed method.
[0101] In order to verify the effectiveness of the designed model training method, different model training methods are used to obtain the average test accuracy of PQ compound perturbations as shown in Table 6. It can be seen that after using the model training method combining feature selection with hyperparameter tuning, the average classification accuracy under different signal-to-noise ratios has been improved to varying degrees.
[0102] Table 6 Perturbation average classification results
[0103]
[0104] For the multi-label classification model based on the problem transformation strategy adopted in this embodiment, the classification accuracy depends on the performance of each sub-classifier. Therefore, traditional tree models such as C4.5 decision tree, Adaboost, RF and GBDT are selected as sub-classifiers, and the model training method based on the proposed feature selection and hyperparameter tuning is used to identify the perturbed samples under different noise environments, and the obtained average test accuracy is compared with the method of this embodiment. The results are as follows: Fig. 9 As shown. Fig. 9 It can be seen that DT has the worst classification effect among all classifiers. The remaining models have good accuracy due to the use of ensemble learning strategies, among which XGBoost is the most outstanding.
[0105] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0106] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements all fall within the scope of the present invention to be protected.
Claims
1. A method for classifying composite power quality disturbances, characterized in that: The following steps are involved: Step 1: Collect power quality disturbance signals; Step 2: Scale space representation of power quality disturbance signal; Step 3: dividing the frequency spectrum of the power quality disturbance signal into a plurality of continuous intervals to obtain a plurality of limited bandwidth natural modes; Step 4: Construct empirical wavelet and implement improved empirical wavelet transform; Step 5: Extract feature vectors from the results of improved empirical wavelet transform; Step 6: Construct a power quality composite disturbance classification model based on XGBoost; Step 7: inputting the feature vector into the power quality disturbance classification model to obtain the classification and identification result of the power quality composite disturbance; The step 2 specifically includes: 1) performing scale space representation on the spectrum of the disturbance signal, assuming that the discrete Fourier transform of the power quality disturbance signal f(t) is F(ω), and defining the Gaussian kernel function as: Where n is the scale factor, and n = 9, then the discrete form of the scale space representation of F(ω) can be defined as: Where: M is the approximate coefficient, 2) Use dynamic measurement to evaluate the detrending of the maximum points in the scale space representation. Let x u is a maximum point in L(ω,n). If there exists x in L(ω,n) u Higher point, then x u The dynamic measure D yn [x u ] is equal to the dynamic measure of the minimum path among all paths to equal height points, that is: D yn [x u ]={i nf {D yn [l(x u ,x v )]};h alt (x u )=h alt (x v )} In the formula, l(x u ,x v ) represents x u Leading to the iso-height point x v The path, i nf {·} represents the infimum, h alt (·) indicates the height; at this time, if D yn [x u ] is greater than the discrimination threshold T d , we can determine x u is the characteristic frequency point, where T d =5.
2. The power quality composite disturbance classification method according to claim 1, characterized in that: In step 3, a dynamic measure is used to perform a detrending evaluation on the maximum value points in the scale space representation, and the frequency points whose dynamic measure values are greater than a discrimination threshold are determined as characteristic frequency points.
3. The power quality composite disturbance classification method according to claim 1, characterized in that: In step 6, the multi-label problem of composite disturbance classification is converted into multiple binary classification sub-problems by using a binary association method, and several XGBoosts are selected as sub-classifiers to construct a power quality composite disturbance classification model.
4. The power quality composite disturbance classification method according to claim 3 is characterized in that: The following steps are also included: Based on Bayesian optimization theory, cross-validation is used to adjust the parameters of each XGBoost.
5. The power quality composite disturbance classification method according to claim 1, characterized in that: The power quality disturbance includes one or more of voltage swell, voltage interruption, voltage sag, harmonics, transient oscillation, transient pulse, and voltage flicker disturbance.
6. The power quality composite disturbance classification method according to claim 2, characterized in that: In step 3, the middle frequency of two adjacent characteristic frequency points is taken to construct a frequency band boundary, and the frequency band boundary is translated and supplemented.
7. Application of the method according to any one of claims 1 to 6 in a power quality monitoring device or system.
Citation Information
Patent Citations
Method for classifying electric energy quality mixing disturbances based on multi-feature quantity of time-frequency domain
CN102831433A
Complex power quality disturbance signal identification method
CN104034974A
Real-time online evaluation method for tolerance characteristics of sensitive equipment based on stream-oriented computation
CN110689272A
Power distribution network power quality disturbance detection method based on EWT and MFDE
CN111145044A
Method for identifying power quality disturbance type based on pqview data source
WO2014089900A1
