Power quality composite disturbance identification method based on multi-label LightGBM
Through the feature extraction method of multi-label LightGBM model combined with S transform and local singular value decomposition, the complexity and noise robustness problems of compound disturbance identification are solved, the accurate and efficient identification of unknown types of disturbances is achieved, and the power system is improved. stability.
Patent Information
- Application Number
- CN202210163570.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-02-22
AI Technical Summary
In complex power systems, the cross-coupling of multiple power quality disturbances increases the difficulty of classification. It is difficult for existing technologies to effectively identify unknown types of composite disturbances, and the noise robustness is insufficient, leading to problems such as motor losses, cable overheating, and capacitor failures. Affect the stability of power supply.
A power quality compound disturbance identification method based on multi-label LightGBM is used to extract time-frequency features through S transform and local singular value decomposition, and feature selection is performed based on total_gain importance. A multi-label LightGBM model is constructed to identify different disturbance signals and reduce the complexity of feature extraction. degree and improve recognition accuracy.
Effectively identifying unknown types of composite disturbances improves the noise robustness of the model, improves the accuracy and efficiency of power quality disturbance identification, and promotes the application and development of power quality disturbance identification technology.
Smart Images

Figure CN114742342B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power quality monitoring and analysis, and specifically relates to a power quality composite disturbance identification method based on multi-label LightGBM. Background Art
[0002] In recent years, with the application of a large number of power electronic devices and reactive power compensation devices and the integration of distributed renewable energy such as wind power and solar energy into the distribution network, various power quality disturbance events have occurred frequently. Different types of power quality disturbances can lead to increased motor losses, overheating of cables and transformers, capacitor failures and power failures, and may also cause large-scale power outages, resulting in serious losses to the national economy. In the increasingly complex actual operating environment of the power system, there are a large number of multiple power quality disturbances, and the cross-coupling between different disturbances leads to higher classification difficulties. Summary of the invention
[0003] The purpose of the present invention is to provide a power quality composite disturbance identification method based on multi-label LightGBM, reduce the complexity of feature extraction, improve the accuracy of composite disturbance identification, effectively identify unknown types of composite disturbances, and improve the noise robustness of the model.
[0004] The technical solution adopted by the present invention is a power quality composite disturbance identification method based on multi-label LightGBM, which is implemented in the following steps:
[0005] Step 1, respectively perform S transformation on the composite power quality disturbance signals containing different types of original power quality disturbances to obtain multiple groups of time-frequency matrices, perform local singular value decomposition on each group of time-frequency matrices to obtain multiple singular values, and construct an original feature set with the maximum singular value of each time-frequency matrix as the feature vector;
[0006] Step 2: Input the original feature set into the LightGBM subclassifier to obtain the total_gain importance value of each feature, perform sequence forward feature selection on each feature, and form the optimal feature subset;
[0007] Step 3: Use the original feature set as the training set, input the training set and the optimal feature subset into the LightGBM sub-classifier for identifying different disturbance signals, take each disturbance signal as a label, and obtain a multi-label LightGBM model;
[0008] Step 4: The power quality disturbance signal to be measured is subjected to S transformation and local singular value decomposition to extract the features of the power quality disturbance signal to be measured, and the extracted features are input into the multi-label LightGBM model to obtain the power quality disturbance type.
[0009] The present invention is also characterized in that:
[0010] The specific process of step 2 is: input the original feature set into the LightGBM sub-classifier to obtain the total_gain importance value of each time-frequency domain feature. Total_gain represents the total gain of the feature in the classifier learning process. Sort the features from large to small according to the total_gain importance value, and add them to the feature subset in turn. For each feature added, calculate the recognition accuracy of the LightGBM sub-classifier under the feature subset. Repeat this process until all features are added to the feature set, and finally select the feature subset with the highest accuracy as the optimal feature subset for each LightGBM sub-classifier.
[0011] Step 3: The optimal feature subset is input into the LightGBM sub-classifier that identifies different perturbation signals, so that the LightGBM sub-classifier only identifies the feature attributes in the optimal feature subset.
[0012] The specific process of step 4 is: perform S-transformation on the power quality disturbance signal to be tested, and perform local singular value decomposition on the time-frequency matrix after S-transformation to obtain the feature vector, input the extracted features into the multi-label LightGBM model, and obtain multiple labels contained in the power quality disturbance signal to be tested, and determine the power quality disturbance type through the interference signal corresponding to each label.
[0013] The beneficial effects of the present invention are:
[0014] The invention proposes a power quality composite disturbance identification method based on multi-label LightGBM, which reduces the complexity of feature extraction, improves the accuracy of composite disturbance identification, effectively identifies unknown types of composite disturbances, improves the noise robustness of the model, and promotes the practical application and development of power quality disturbance identification technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is a flow chart of the power quality composite disturbance identification method based on multi-label LightGBM of the present invention;
[0016] Figure 2 Schematic diagram of double, triple and quadruple disturbance signals generated by simulation in an embodiment of the present invention;
[0017] Figure 3 The feature extraction results of the double, triple, and quadruple disturbance signals generated by simulation in the embodiment of the present invention after S transformation;
[0018] Figure 4 This is a schematic diagram of the structure of a multi-label LightGBM classification model in an embodiment of the present invention;
[0019] Figure 5 It is a schematic diagram of re-identifying an original misidentified signal in an embodiment of the present invention. DETAILED DESCRIPTION
[0020] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0021] The present invention is based on the multi-label LightGBM power quality composite disturbance identification method, which is specifically implemented according to the following steps:
[0022] Step 1. Under the premise of uncertain signal disturbance occurrence time, in order to effectively extract the time-frequency domain characteristics of the disturbance signal, the composite power quality disturbance signal containing the original power quality disturbance is processed by S transform to obtain the time-frequency matrix corresponding to each signal. Local singular value decomposition is performed on each time-frequency matrix after S transform, and the local singular value of each matrix is calculated. The maximum local singular value is used as the eigenvector to form the original feature set of the feature.
[0023] S transform is a time-frequency analysis method. It adds a Gaussian window whose window width is inversely proportional to the frequency to the signal, effectively improving the complexity of window function selection and the limitation of fixed window width, and can directly reflect the time-frequency characteristics of the signal. For a continuous time signal h(t), its S transform S(τ, f) is defined as:
[0024]
[0025]
[0026] In formula (1) and (2), w(t, f) is the Gaussian window function; τ is the translation factor that controls the position of the Gaussian window.
[0027] Assume that the Fourier transform of S(τ, f) from time τ to frequency β is R(β, f), then
[0028]
[0029] In formula (3), H(f) is the Fourier transform of h(t). Through the inverse Fourier transform, we have
[0030]
[0031] In formula (4), f≠0
[0032] Let f→nLT,τ→jT (L is the data length, T is the sampling period), and get the discrete form of S transform
[0033]
[0034] Step 2. The power quality composite disturbance signal is subjected to S transformation and local singular value feature extraction to obtain multi-dimensional time-frequency domain features. Higher feature dimensions increase feature storage space and feature calculation time, and redundant features reduce the classification efficiency and accuracy of disturbance signals. Therefore, it is necessary to perform feature selection on the original feature set. The original feature set is input into the LightGBM sub-classifier to obtain the total_gain importance value of each time-frequency feature. The total_gain importance values are sorted from large to small and added to the feature subsets in turn. For each feature added, the recognition accuracy of the LightGBM sub-classifier under the feature subset is calculated. This process is repeated until all features are added to the feature set, and finally the feature subset with the highest accuracy is selected as the optimal feature subset for each LightGBM sub-classifier.
[0035] The present invention can generate 41 types of disturbance signals containing random noise and random disturbance parameters with a signal-to-noise ratio of 60dB to 20dB through feature selection from the original 75-dimensional time-frequency domain features.
[0036] Step 3. Use the original feature set as the training set, and input the optimal feature subset into the LightGBM sub-classifier that identifies different disturbance signals to make the LightGBM sub-classifier only identify the feature attributes in the optimal feature subset. Input the training set into the LightGBM sub-classifier that identifies the feature attributes in the optimal feature subset, and take each disturbance signal as a label to obtain a multi-label LightGBM model.
[0037] LightGBM is an integrated learning gradient boosting framework based on decision trees. During the training process, the traditional Boosting algorithm needs to scan all sample points of each feature to select the best split point. LightGBM uses GOSS and EFB to preprocess the data and construct lightweight features of high-voltage circuit breaker vibration signals, which can significantly reduce search time and improve training efficiency.
[0038] In the data sampling process of GOSS, only data with larger gradients are retained without affecting the overall distribution of the data. First, the data gradient values are sorted in descending order by absolute value, the first a*100% data are selected, and then b*100% data are randomly selected from the remaining data with smaller gradients, and b*100% data are multiplied by a constant. Finally, (a+b)*100% data are used to calculate the information gain. a is the sampling ratio of large gradient samples, and b is the sampling ratio of small gradient samples. Let a*100% be data subset A; let b*100% data be data subset B. Finally, we calculate the variance gain on the union A∪B. GOSS determines the split point with the information gain of a smaller data set. The computational cost of calculating the information gain is greatly reduced, and the training accuracy will not be lost too much. The effect is better than the random sampling method.
[0039] By fusing and binding sparse features together using the EFB method, the number of features can be greatly reduced. The specific steps are as follows:
[0040] (1) Let G = (V, E), and regard each row of the correlation matrix G as a feature, so as to obtain |V| features. Mutually exclusive bundles are vertices with the same color in the graph. The points in the graph are regarded as features, and the edges are regarded as conflicts between features. And the optimal result of feature binding is determined by sorting according to the degree of mutually exclusive bundles.
[0041] (2) To ensure that the value of the original feature before binding can be identified during feature binding, considering that the subsequent histogram algorithm saves continuous values as discrete buckets, a bias constant is added to the feature value so that the values of different features are divided into different buckets in the binding set.
[0042] LightGBM uses a histogram algorithm to normalize all features by bucketing, dividing the originally continuous data into k discrete buckets. When traversing the data, discrete values are used as indexes, and the index values are accumulated in each bucket. The accumulation of each bucket can be obtained by traversing the data once. In the pre-sorted graph algorithm of the new method, the histogram of the leaf can be obtained by subtracting the histogram of its father node and the histogram of its brother node. It is only necessary to traverse each bucket to obtain the histogram of its brother leaves, which reduces the amount of calculation and memory consumption, and effectively improves the training efficiency. Applying the histogram algorithm, for each dimensional feature, values within a certain interval will be divided into the same "bucket" to obtain the same index, so as to obtain the same index, which can significantly improve the overfitting phenomenon caused by the noise of the circuit breaker vibration signal.
[0043] LightGBM uses a leaf-wise growth strategy with depth limit. Each time, it searches from all current leaves to find a leaf with the largest split gain for splitting. Compared with Level-wise, Leaf-wise can effectively reduce calculation time, reduce errors and improve accuracy when the number of splits is the same. However, the Leaf-wise growth strategy is easy to build a deeper decision tree, resulting in overfitting. Therefore, LightGBM adds a maximum depth limit on Leaf-wise to prevent overfitting while ensuring high efficiency and high accuracy.
[0044] Step 4: Perform S transform on the power quality disturbance signal to be tested, and perform local singular value decomposition on the time-frequency matrix after S transform to obtain the feature vector. The extracted features are input into the multi-label LightGBM model to obtain multiple labels contained in the power quality disturbance signal to be tested, and the power quality disturbance type is determined by the interference signal corresponding to each label.
[0045] There are seven common single power quality disturbances, which can be divided into four categories according to their definitions and characteristics, as shown in Table 1. Sub-classifiers M1-M7 based on LightGBM are trained for the seven single disturbances. Each sub-classifier is a binary classification, that is, it only identifies whether the signal contains a certain disturbance component. Multiple power quality disturbances are composed of single power quality disturbances from different groups in Table 1, including 7 single disturbances (C1-C7), 17 double disturbances (DC1-DC17), 17 triple disturbances (TC1-TC17) and 6 quadruple disturbances (QC1-QC6).
[0046] Table 1
[0047]
[0048] MATLAB R2018b is used to simulate the power quality disturbance signal. The signal base frequency is 50 Hz, the sampling rate is 50 kHz, and the sampling waveform is 50 cycles. Figure 2 The simulation shows a group of double, triple and quadruple disturbance signals with random disturbance parameters. Under the premise of uncertain signal disturbance occurrence time, in order to effectively extract the time-frequency domain characteristics of the disturbance signal, the composite power quality disturbance signal containing the original power quality disturbance is processed by S transform to obtain the time-frequency matrix corresponding to each signal. The local singular value decomposition is performed on each time-frequency matrix after S transform, and the local singular value of each matrix is calculated, and the maximum local singular value is used as the eigenvector. Figure 3 The feature extraction results for one set of double, triple, and quadruple perturbation signals are shown.
[0049] The original feature set is input into the LightGBM subclassifier to obtain the total_gain important value of each time-frequency domain attribute feature. The sequence forward feature selection is performed on each time-frequency feature to generate 41 types of disturbance signals with random values between 60dB and 20dB of signal-to-noise ratio and random disturbance parameters (to verify the unknown disturbance capability of the model, six types of quadruple disturbances are only involved in the final test but not in the training process of the classifier). 8000 groups of each type of signal are generated, of which 6000 groups are training sets and the remaining 2000 groups are validation sets. Taking the construction of the subclassifier for identifying C1 type as an example, subclassifier M1 is constructed for different feature subsets under the optimal parameter value, and the feature importance index of each classifier corresponding to M1 is obtained. Forward feature selection is performed, and finally the optimal feature subset S1 corresponding to M1 is determined according to the highest recognition accuracy. Repeat the above steps to obtain the optimal feature subsets S1-S7 corresponding to each subclassifier M1-M7. The features in the optimal feature subsets of each subclassifier of LightGBM are shown in Table 2.
[0050] Table 2
[0051]
[0052] LightGBM has significant advantages such as high accuracy, high noise robustness, and high classification efficiency, but it cannot identify unknown types of MPQD without training samples. ML-LightGBM achieves accurate identification of unknown types of power quality composite disturbances without training samples by establishing LightGBM sub-classifiers corresponding to different single disturbances. ML-LightGBM includes 7 sub-classifiers (M1-M7), each corresponding to a basic disturbance type (C1-C7). Among them, M1 is a binary classification LightGBM sub-classifier for identifying C1 disturbances, and the output judgment node is O1. The MPQD signal containing C1 disturbances is marked as a positive sample, and the one without C1 disturbances is marked as a negative sample. The disturbance components contained in the MPQD identification object are determined according to the judgment results of each output node O1-O7. The structure of the multi-label MPQD classification model based on ML-LightGBM is as follows: Figure 4 shown.
[0053] In different noise environments, different multi-label classifiers ML-SVM (support vector machines), ML-GBDT (gradient boosting decision tree) and ML-XGBoost (extreme gradient boosting) are used to classify the composite power quality disturbance signals with training samples, and their classification results are compared with the new method. The experimental results are shown in Table 3. The ML-LightGBM algorithm has better recognition accuracy for the disturbance type with training samples under different noise environments and disturbance complexity than the other three classifiers. When the signal-to-noise ratio is reduced from 60dB to 20dB, the overall classification accuracy of ML-LightGBM is only reduced by 1.23%. In the case of high noise with a signal-to-noise ratio of 20dB, it can still maintain a recognition accuracy of 97.22%, which has good noise robustness.
[0054] Table 3
[0055]
[0056]
[0057] The proposed power quality composite disturbance identification method based on the multi-label LightGBM model is applied to the measured power quality signals in the distribution network to verify the effectiveness of the method in an actual industrial environment:
[0058] 952 sets of single-phase power quality signals measured in a distribution network in a certain region in November 2006 were identified. Under the condition of sampling rate of 50 kHz, ML-LightGBM trained with simulated signals containing 60 dB to 20 dB random noise was used to identify the measured PQD signals. The statistical results of the new method and the original recognition are shown in Table 4.
[0059] Table 4
[0060]
[0061]
[0062] After identification by the method of the present invention, 872 of the 952 measured signals had the same original identification type as the new method, and the remaining 80 signals had identification errors and missing disturbance components. After manual verification, the results obtained by the disturbance identification method of the present invention were all correct, such as Figure 5 The figure shows two groups of misidentified signals, and marks all the disturbance components identified by this method.
[0063] Through the above-mentioned method, the present invention discloses a method for identifying composite disturbances in power quality based on multi-label LightGBM, which efficiently extracts the time-frequency domain features of the original disturbance signal by S transformation, and then sorts the original features of the LightGBM sub-classifiers corresponding to the single disturbance label based on the total_gain feature importance, and carries out forward feature selection with the classification accuracy of each LightGBM sub-classifier as the decision variable, determines the optimal feature subset matching each sub-classifier, and constructs the optimal LightGBM sub-classifier according to each optimal feature subset to identify the single disturbance component contained in the signal, and constructs a multi-label LightGBM containing multiple sub-classifiers to identify composite disturbances in power quality. Simulation and measured data experiments have proved that this method has high recognition accuracy and strong anti-noise ability, and can effectively identify composite disturbance data of unknown types without training samples, avoid misidentifying composite disturbances of unknown types as erroneous known types, and can meet the efficiency and accuracy requirements of identifying massive power quality disturbance events in actual industrial applications.
Claims
1. A method for identifying composite power quality disturbances based on multi-label LightGBM, characterized in that: Follow the steps below to implement it: Step 1, respectively perform S transformation on the composite power quality disturbance signals containing different types of original power quality disturbances to obtain multiple groups of time-frequency matrices, perform local singular value decomposition on each group of time-frequency matrices to obtain multiple singular values, and construct an original feature set with the maximum singular value of each time-frequency matrix as the feature vector; Step 2: Input the original feature set into the LightGBM subclassifier to obtain the total_gain importance value of each feature, perform sequence forward feature selection on each feature, and form the optimal feature subset; Step 3: Use the original feature set as the training set, input the training set and the optimal feature subset into the LightGBM sub-classifier for identifying different disturbance signals, take each disturbance signal as a label, and obtain a multi-label LightGBM model; Step 4: The power quality disturbance signal to be measured is subjected to S transformation and local singular value decomposition to extract the features of the power quality disturbance signal to be measured, and the extracted features are input into the multi-label LightGBM model to obtain the power quality disturbance type; The specific process of step 2 is as follows: input the original feature set into the LightGBM sub-classifier to obtain the total_gain importance value of each time-frequency domain feature. Total_gain represents the total gain of the feature in the classifier learning process. Sort the features from large to small according to the total_gain importance value and add them to the feature subset in sequence. For each feature added, calculate the recognition accuracy of the LightGBM sub-classifier under the feature subset. Repeat this process until all features are added to the feature set. Finally, select the feature subset with the highest accuracy as the optimal feature subset for each LightGBM sub-classifier. Step 3: The optimal feature subset is input into the LightGBM sub-classifier that identifies different disturbance signals, so that the LightGBM sub-classifier only identifies the feature attributes in the optimal feature subset; The specific process of step 4 is: perform S-transformation on the power quality disturbance signal to be tested, and perform local singular value decomposition on the time-frequency matrix after S-transformation to obtain the feature vector, input the extracted features into the multi-label LightGBM model, and obtain multiple labels contained in the power quality disturbance signal to be tested, and determine the power quality disturbance type through the interference signal corresponding to each label.
Citation Information
Patent Citations
Electric energy quality disturbance diagnosis method and system
CN113238110A
Method for identifying a transformer local discharge mode based on a singular value decomposition algorithm
WO2014101579A1
