Power quality disturbance identification method and system for distribution network based on deep learning
Through a variety of image conversion and feature fusion technologies, combined with the use of deep learning models, the problems of low power quality disturbance recognition accuracy and feature loss in traditional methods are solved, achieving higher recognition accuracy and robustness.
Patent Information
- Application Number
- CN202410873925.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-02
AI Technical Summary
Traditional power quality disturbance identification methods are easily interfered by noise and artifacts, resulting in low identification accuracy. Moreover, data features are lost when converting one-dimensional time series into two-dimensional images, which affects classification accuracy.
A variety of image conversion methods are used to convert the one-dimensional time-series voltage signal into a two-dimensional image, and the convolution feature adaptive image fusion model is used to fuse a variety of two-dimensional images into a comprehensive two-dimensional image, combining the one-dimensional time series voltage signal and the comprehensive two-dimensional image. Features of dimensional images are identified and classified, BiLSTM and self-attention layers are used to extract features, and final classification is performed through fully connected layers and Sortmax layers.
It effectively avoids the loss of data features caused by image conversion, improves the accuracy and robustness of identification, and ensures the accurate identification and classification of power quality disturbances.
Smart Images

Figure CN118410406B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power quality disturbance identification, and in particular to a method and system for identifying power quality disturbances in a distribution network based on deep learning. Background Art
[0002] With the rapid development of renewable energy such as photovoltaic and wind power generation, power electronic devices and equipment with nonlinear characteristics are continuously connected to the distribution network, and various power quality disturbance events occur frequently. At present, nonlinear loads are increasing sharply in the power grid, and power quality problems are becoming increasingly serious. Impact loads can cause various power quality disturbances in the power supply and distribution network. In severe cases, voltage-sensitive power equipment may fail to operate or even be permanently damaged, resulting in huge economic losses and adverse effects. Therefore, it is of great significance to accurately identify and classify various power quality disturbance events in the power grid. Analyzing and identifying power quality disturbance phenomena is a prerequisite for targeted governance and improving power quality.
[0003] Traditional power quality disturbance identification methods are usually based on one-dimensional time series analysis, but this method is easily affected by noise and artifacts, resulting in low recognition accuracy; with the continuous development of image processing and deep learning technology, one-dimensional time series are converted into two-dimensional images. Image-based power quality disturbance identification can effectively improve the accuracy and reliability of recognition, but it still has certain problems. When converting one-dimensional time series into two-dimensional images, some data features cannot be fully represented or captured, which will lead to the loss of some information, thereby affecting the accuracy of classification. Summary of the invention
[0004] In order to solve the shortcomings of the above-mentioned prior art, the present invention provides a method and system for identifying power quality disturbances in distribution networks based on deep learning, which adopts a variety of image conversion methods to convert one-dimensional time series voltage signals into two-dimensional images, and fuse the converted two-dimensional images into a comprehensive two-dimensional image to avoid the problem of data feature loss caused by image conversion; at the same time, the features of the one-dimensional time series voltage signal and the comprehensive two-dimensional image are extracted, and comprehensive identification and classification are performed based on the extracted features, which can effectively ensure the comprehensiveness and accuracy of data feature extraction, and ensure the accuracy and reliability of the final identification and classification.
[0005] In a first aspect, the present invention provides a method for identifying power quality disturbances in a distribution network based on deep learning.
[0006] A method for identifying power quality disturbances in a distribution network based on deep learning, comprising:
[0007] Obtain a one-dimensional time series voltage signal at a set sampling frequency within a set time period of the distribution network;
[0008] The one-dimensional time series voltage signal is converted into a two-dimensional image by using continuous wavelet transform and Grami angle field respectively, and multiple two-dimensional images are fused to obtain a comprehensive two-dimensional image through the convolution feature adaptive image fusion model;
[0009] The one-dimensional time series voltage signal and the comprehensive two-dimensional image are input into the power quality disturbance recognition model based on two parallel feature extraction branches. The one-dimensional time series voltage signal passes through the first feature extraction branch, and then passes through the BiLSTM layer, the self-attention layer and the output layer to output the one-dimensional feature; the comprehensive two-dimensional image passes through the second feature extraction branch to output the two-dimensional feature; based on the one-dimensional feature and the two-dimensional feature, the fully connected layer and the Sortmax layer are used for classification to output the final power quality disturbance recognition result.
[0010] In a second aspect, the present invention provides a distribution network power quality disturbance identification system based on deep learning.
[0011] A distribution network power quality disturbance identification system based on deep learning, comprising:
[0012] A data acquisition module is used to acquire a one-dimensional time series voltage signal at a set sampling frequency within a set time period of the distribution network;
[0013] A data processing module, for converting a one-dimensional time series voltage signal into a two-dimensional image by using continuous wavelet transform and Grami angle field respectively, and fusing multiple two-dimensional images to obtain a comprehensive two-dimensional image by using a convolution feature adaptive image fusion model;
[0014] The power quality disturbance identification module is used to input the one-dimensional time series voltage signal and the comprehensive two-dimensional image into the power quality disturbance identification model based on two parallel feature extraction branches. The one-dimensional time series voltage signal passes through the first feature extraction branch, and then passes through the BiLSTM layer, the self-attention layer and the output layer in sequence to output the one-dimensional feature; the comprehensive two-dimensional image passes through the second feature extraction branch to output the two-dimensional feature; based on the one-dimensional feature and the two-dimensional feature, it is classified through the fully connected layer and the Sortmax layer to output the final power quality disturbance identification result.
[0015] In a third aspect, the present invention further provides an electronic device comprising a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the steps of the method described in the first aspect are completed.
[0016] In a fourth aspect, the present invention further provides a computer-readable storage medium for storing computer instructions, which, when executed by a processor, complete the steps of the method described in the first aspect.
[0017] One or more of the above technical solutions have the following beneficial effects:
[0018] 1. The present invention provides a method and system for identifying power quality disturbances in distribution networks based on deep learning. A variety of image conversion methods are used to convert one-dimensional time series voltage signals into two-dimensional images, and the converted two-dimensional images are fused into a comprehensive two-dimensional image to avoid the problem of data feature loss caused by image conversion. At the same time, the features of the one-dimensional time series voltage signal and the comprehensive two-dimensional image are extracted, and comprehensive identification and classification are performed based on the extracted features, which can effectively ensure the comprehensiveness and accuracy of data feature extraction, and ensure the accuracy and reliability of the final identification and classification.
[0019] 2. In the present invention, a convolution feature adaptive image fusion model is built, through which the converted multiple two-dimensional images are fused into a comprehensive image. In this model, by extracting features of the input image with convolution kernels of different sizes, then splicing the extracted features and upsampling them to the size of the source image through transposed convolution, images with different features can be effectively fused together, improving the accuracy of disturbance recognition. Compared with direct classification of single-modality images, multimodal image fusion can obtain more information and improve the accuracy and robustness of recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0021] Figure 1 This is an overall flow chart of the method for identifying power quality disturbances in a distribution network based on deep learning according to an embodiment of the present invention;
[0022] Figure 2 Schematic diagram of a convolutional feature adaptive image fusion model in an embodiment of the present invention;
[0023] Figure 3 Schematic diagram of the structure of the power quality disturbance identification model in an embodiment of the present invention;
[0024] Figure 4 Schematic diagram of the structure of the first feature extraction branch in an embodiment of the present invention. DETAILED DESCRIPTION
[0025] It should be noted that the following detailed descriptions are exemplary only, are intended to describe specific embodiments, are intended to provide further explanation of the present invention, and are not intended to limit exemplary embodiments according to the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those of ordinary skill in the art to which the present invention belongs. In addition, it should also be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0026] Embodiment 1
[0027] This embodiment provides a method for identifying power quality disturbances in a distribution network based on deep learning. Figure 1 As shown, the following steps are included:
[0028] Step S1, obtaining a one-dimensional time series voltage signal at a set sampling frequency within a set time period of the distribution network;
[0029] Step S2, using continuous wavelet transform and Grami angle field respectively to convert the one-dimensional time series voltage signal into a two-dimensional image, and fusing multiple two-dimensional images to obtain a comprehensive two-dimensional image through a convolution feature adaptive image fusion model;
[0030] Step S3, input the one-dimensional time series voltage signal and the comprehensive two-dimensional image into the power quality disturbance recognition model based on two parallel feature extraction branches, the one-dimensional time series voltage signal passes through the first feature extraction branch, and successively passes through the BiLSTM layer, the self-attention layer and the output layer to output the one-dimensional feature; the comprehensive two-dimensional image passes through the second feature extraction branch to output the two-dimensional feature; based on the one-dimensional feature and the two-dimensional feature, the full connection layer and the Sortmax layer are used for classification to output the final power quality disturbance recognition result.
[0031] The following content provides a more detailed introduction to the distribution network power quality disturbance identification method based on deep learning proposed in this embodiment.
[0032] In step S1, a one-dimensional time series voltage signal at a set sampling frequency within a set time period of the distribution network is obtained and recorded as ,in, t =1,2,..., n , n Indicates length, i.e., number of samples. In this embodiment, the acquired one-dimensional time series voltage signal is actually one-dimensional time series data, which is the sampling of a single variable at different time points. The sampled data is arranged in chronological order to form an array or vector, and there is a strong time dependence between the previous and next data.
[0033] Taking into account that the traditional power quality disturbance identification method based on one-dimensional time series data is easily disturbed by noise and artifacts, resulting in low recognition accuracy, in order to further improve the accuracy of disturbance identification, this embodiment converts the collected one-dimensional time series voltage signal into a two-dimensional image to fully capture the data features. In order to avoid the problem of feature loss and incomplete feature extraction caused by using only a single conversion method, this embodiment adopts multiple conversion methods to convert the two-dimensional image, and through the set convolution feature adaptive image fusion model, multiple two-dimensional images are fused to obtain a comprehensive two-dimensional image.
[0034] Therefore, in step S2, the one-dimensional time series voltage signal obtained in step S1 is converted into a two-dimensional image by using continuous wavelet transform and Grammi angle field respectively, and a plurality of two-dimensional images are fused to obtain a comprehensive two-dimensional image by using a convolution feature adaptive image fusion model.
[0035] Specifically, first, a continuous wavelet transform is used to convert the one-dimensional time series voltage signal into the time-frequency domain to obtain a wavelet two-dimensional time-frequency domain image. In time domain and frequency domain analysis, various signal decomposition methods such as various Fourier transforms have the advantages and disadvantages of stable or non-stationary signal processing. However, Fourier transform has no advantage in processing non-stationary signals because the non-stationary performance of the signal will change its frequency over time. Considering that the basis function used by the wavelet transform has the characteristic of capturing the time-varying frequency, and does not require the EMD decomposition (i.e., empirical mode decomposition) required by the Hilbert transform, it has higher time efficiency. Therefore, this embodiment uses a continuous wavelet transform to convert the one-dimensional time series signal into a two-dimensional image in the time-frequency domain.
[0036] In this embodiment, based on the continuous wavelet two-dimensional time-frequency domain parameters, the one-dimensional time series voltage signal is converted into a two-dimensional time-frequency domain image, and the steps include:
[0037] First, determine the basis function and scale sequence. Specifically, wavelet transform (WT) is a mapping from one-dimensional space to two-dimensional space, and the specific expression formula is as follows:
[0038] ;
[0039] in, represents the complex conjugate, function is the evaluation function, which represents the mother wavelet; represents the input signal, that is ; a, b is any real number.
[0040] Any function If a continuous wavelet transform exists, it can be expressed as:
[0041] ;
[0042] In the above formula, is the basic wavelet, is the set of real numbers, is a discrete wavelet or a continuous wavelet, a is the scaling parameter, b is the translation parameter; Depend on The inner product is obtained, and the number is Indicates a As a scale, bis the wavelet function of the offset, which is used as a similarity measure between the original signal and the wavelet function. a and b is continuous.
[0043] set up z is the scaling factor, is the frequency used, is the center frequency of the wave set basis function, so it is related to z Relative frequency The conversion formula is:
[0044] ;
[0045] Secondly, according to the above formula, in order to ensure that the frequency sequence obtained after the conversion satisfies the properties of the arithmetic sequence, the scale sequence needs to be standardized as follows:
[0046] ;
[0047] In the above formula, sum When the signal undergoes wavelet transformation, the scale sequence is set in advance for the overall scale length parameter, and c is a constant. The corresponding frequency is equal to , thus we can deduce:
[0048] ;
[0049] In the above formula, total It represents the length of the scale sequence used when performing wavelet transform on the signal. total Is dimensionless.
[0050] After determining the basis function and scale sequence, the wavelet function coefficients are obtained through continuous wavelet transform. , and then convert each value of the scale sequence into the corresponding frequency , get the frequency series, and finally pass the time series The wavelet time-frequency domain image is obtained by combining the two.
[0051] Secondly, the Gram angular field is used to convert the one-dimensional time series voltage signal into a two-dimensional image. Specifically, the Gram angular field GAF is a feature extraction method for describing time series, which is based on the angle cosine similarity, uses a polar coordinate system to replace the Cartesian coordinate system, and encodes the time series into a two-dimensional image based on the matrix of the GAF polar coordinates, maintaining the correlation between the one-dimensional signal and the time series in the Gram matrix, where each element is actually the trigonometric function value of the angle. In this embodiment, the specific steps of the image conversion method are:
[0052] First, assume a one-dimensional time series , scale the time series data to [-1,1] or [0, 1], the formula is:
[0053] ;
[0054] or:
[0055] ;
[0056] In the above formula, It's time i The corresponding value of the original signal, is the normalized signal value.
[0057] Then, the scaled time series is converted to polar coordinates, that is, the value is regarded as the cosine value of the angle, and each moment corresponding to the data is regarded as the radius r , the formula is:
[0058] ;
[0059] In the above formula, the angle is arccos(x) Calculate, its value is in [0, ]; divide the interval into N Equal parts, get N +1 separation point {0…,1}, then discard 0, and associate these points with the time series. Through the above encoding method, the entire transformation is a bijective transformation, and the time dependency is maintained. In two-dimensional space, assuming that all vectors are unit vectors, according to the definition of the Gram Matrix, the time series data is converted into a GAF two-dimensional image, that is, the matrix obtained by the conversion is:
[0060] ;
[0061] in, is the angle between two vectors. The Gram matrix preserves the time dependency.
[0062] In the above manner, the scaled one-dimensional time series data is converted from the rectangular coordinate system to the polar coordinate system, and then the time series is converted into a GAF image by using the GAF matrix.
[0063] As another implementation method, considering that the one-dimensional signal is converted into an image through GAF technology, a relatively complete fault feature can be retained, but it mainly retains static information. Therefore, the Markov transition field MTF technology can also be used for encoding. In this way, the one-dimensional time series signal is converted into a two-dimensional image. The encoding process of this technology focuses on the dynamic change process of the time series signal and retains a large amount of dynamic information. By converting the image through the above two methods and fusing the converted images, the integrity of the extracted data features can be guaranteed.
[0064] Furthermore, this embodiment also builds a convolutional feature adaptive image fusion model, through which the multiple two-dimensional images obtained above are fused to obtain a comprehensive two-dimensional image.
[0065] The convolution feature adaptive image fusion model proposed in this embodiment is as follows: Figure 2 As shown, it includes a multi-feature extraction layer, a fusion layer and a transposed convolution layer with convolution kernels of different sizes. Specifically, the converted multiple two-dimensional images are used as source images and input into the convolution feature adaptive image fusion model. The low-frequency feature images and high-frequency feature images of the input source images are extracted respectively through the multi-feature extraction layer with convolution kernels of different sizes; in the fusion layer, the low-frequency feature images and high-frequency feature images of all source images are concatenated and merged along the dimensional channel to obtain a merged feature image; finally, the merged convolution features output by the fusion layer are upsampled through the transposed convolution layer, so that the image is gradually restored to the source image size and output.
[0066] The above-mentioned convolutional feature adaptive image fusion model is further introduced. First of all, considering that the convolution layer extracts image feature information with the help of the training data set, a reasonable and appropriate convolution kernel size is the key to feature extraction. The ability of convolution kernels of different sizes to extract feature information is very different. For example, small-sized convolution kernels are sensitive to low-frequency and small detail information, while large-sized convolution kernels are conducive to capturing high-frequency and large detail information. To this end, this embodiment introduces a multi-feature extraction layer (Multifeature Extraction Layer, MFE), that is, a convolution layer with convolution kernels of different sizes is inserted into the same MFE, and the filtered convolution features are superimposed along the number of channels. In this embodiment, in order to extract the low-frequency and high-frequency feature information of the image separately, the convolution kernel sizes of the convolution layer in the MFE are set to 3×3, 5×5 and 7×7, respectively, and the convolution features of the input source image are connected along the number of channels.
[0067] As another implementation, in order to extract the source image features more finely, on the basis of introducing multiple (3 in this embodiment) MFEs, a bias-rectified linear unit (ReLU) layer is added after each convolution layer to increase the nonlinear relationship between convolution filters and reduce the dependency between parameters. At the same time, considering the large input training image, a maximum pooling layer of size 2×2 is added after each MFE to reduce the image size, reduce the amount of training parameters, and optimize the network model performance.
[0068] Secondly, the convolution features of different source images are fused and spliced along the dimensional channel through the fusion layer, and the convolution features after dimensional splicing are appropriately convoluted and merged. Specifically, after the feature extraction operation is completed, two sets of high-dimensional multi-scale feature maps extracted from the two source images are obtained respectively. Although the two sub-networks in the feature extraction process have similar architectures, their corresponding feature maps are different. Therefore, a reasonable method is required to integrate the sub-networks with the convolution features of the two source images. In this embodiment, taking into account the diversity of image background and detail information, in order to prevent the specified specific fusion strategy from affecting the versatility of the model, the splicing method is used to integrate the extracted convolution features, and the spliced convolution features are convolutionally filtered to reduce the image dimension for subsequent processing.
[0069] Finally, considering that in the training process of multi-scale feature extraction, the maximum pooling layer reduces the image size, in this embodiment, the merged convolution features output by the fusion layer are upsampled by the transposed convolution layer, so that the pooled image is gradually restored to the original image size. Specifically, the transposed convolution layer includes two trainable reconstruction convolution layers and a general convolution layer. In the reconstruction convolution layer, the input image is upsampled by the upsampling convolution layer, and then the upper convolution feature map (i.e., the feature map obtained by upsampling) and the MFE output with the same image size in the two sub-networks are superimposed along the number of channels through a jump connection, as the input of the upsampling convolution layer in the next reconstruction convolution layer, which is conducive to supplementing the detail information lost after the pooling process, retaining the edge information of the source image, and avoiding the disappearance of the gradient. Moreover, this method uses the convolution layer to gradually reduce the dimension of the feature fusion map to obtain a grayscale fusion image, which can not only restore the original size of the original image, but also restore the original pixel value; finally, it is output after convolution through the general convolution layer.
[0070] In step S3, the one-dimensional time series voltage signal and the integrated two-dimensional image are input into the power quality disturbance recognition model based on two parallel feature extraction branches, wherein, Figure 3As shown in the figure, the one-dimensional time series voltage signal passes through the first feature extraction branch, and then passes through the BiLSTM layer, the self-attention layer and the output layer in sequence to output the one-dimensional feature; the comprehensive two-dimensional image passes through the second feature extraction branch to output the two-dimensional feature; based on the one-dimensional feature and the two-dimensional feature, it is classified through the fully connected layer and the Sortmax layer to output the final power quality disturbance recognition result.
[0071] In this embodiment, a one-dimensional time series voltage signal marked with a power quality disturbance type is obtained to construct a training data set, and the training data set is used to train the constructed convolutional feature adaptive image fusion model and the power quality disturbance recognition model, wherein the power quality disturbance types include 9 single disturbances: normal, sag, swell, interruption, harmonic, oscillation, flicker, pulse, and notch, and 9 double disturbances: sag + harmonic, swell + harmonic, interruption + harmonic, sag + oscillation, swell + oscillation, sag + flicker, swell + flicker, flicker + harmonic, flicker + oscillation, and 8 triple disturbances: swell + flicker + oscillation, sag + flicker + oscillation, swell + harmonic + oscillation, sag + harmonic + oscillation, swell + harmonic + pulse, sag + harmonic + pulse, flicker + oscillation + harmonic, sag + flicker + harmonic.
[0072] Further, such as Figure 4 As shown, the first feature extraction branch includes a BiLSTM layer, a self-attention layer and an output layer connected in sequence, so as to extract the one-dimensional features of the one-dimensional time series voltage signal. Specifically, although the use of LSTM to identify the one-dimensional time series power quality disturbance signal can achieve good recognition results, since LSTM cannot capture information from back to front, it may cause the loss of some information for longer time series data, and Bi-LSTM is a bidirectional long short-term memory network composed of forward LSTM and backward LSTM. The data of its input layer will be calculated in both the forward and backward directions, and the hidden layer state will be combined as the input of the next layer. The model learns in two directions and can extract feature information more fully. Therefore, in this embodiment, Bi-LSTM is selected as the basic network for one-dimensional time series feature extraction. In addition, since the self-attention mechanism can capture the dependencies between the internal time series, it can obtain the characteristics of the input data itself, automatically find the part that contributes most to the output, and give it a higher weight, so that its influence on the output is strengthened. Furthermore, in order to improve the classification accuracy, a self-attention mechanism is added after the Bi-LSTM layer to intervene in the time series feature extraction, so that the extracted features are more accurate and reasonable, which is conducive to the classification of one-dimensional time series data. Therefore, for the one-dimensional time series, this embodiment proposes a bidirectional long short-term memory network based on the self-attention mechanism, and the network model structure includes an input layer, a Bi-LSTM layer, a self-attention layer, and an output layer.
[0073] Furthermore, the input layer reads the one-dimensional time series data and normalizes the one-dimensional time series data. yes t The one-dimensional time series data of the moment is input, and the number of batches is selected according to the length of the sequence. The final input layer is connected to the forward LSTM and backward LSTM units respectively. The Bi-LSTM layer uses the recurrent neural network composed of Bi-LSTM to extract time features. The Bi-LSTM layer is composed of forward LSTM and backward LSTM. Each unit receives the hidden layer output of the previous moment and the input of the current moment, and then extracts the forward and backward feature information of the time series through the forward LSTM and backward LSTM units, thereby completely capturing the global information of a time series. After the Bi-LSTM layer, a self-attention mechanism is added, and Bi-LSTM is used to extract the features of the time series data, and then the extracted features are weighted. Since the features extracted from different positions of the time series data are different, each part has different influence factors on the final output. Therefore, the self-attention mechanism can capture the dependencies between the time series, and can also capture the features of the input data itself, automatically find the part that contributes most to the output, and give it a higher weight, so that its influence on the output is strengthened. The output layer receives the feature vector after weighting from the attention mechanism, and then performs classification operations on the output layer.
[0074] The second feature extraction branch includes a convolution layer and a pooling layer connected in sequence. The comprehensive two-dimensional image is input to the convolution layer for feature extraction, and the extracted features are output as feature vectors through the pooling layer.
[0075] Finally, the feature vectors output by the first feature extraction branch and the second feature extraction branch are concatenated to obtain the concatenated vector C, which is then classified through the fully connected layer (FC) and the Softmax classification layer to output the final classification recognition result.
[0076] Embodiment 2
[0077] This embodiment provides a distribution network power quality disturbance identification system based on deep learning, including:
[0078] A data acquisition module is used to acquire a one-dimensional time series voltage signal at a set sampling frequency within a set time period of the distribution network;
[0079] A data processing module, for converting a one-dimensional time series voltage signal into a two-dimensional image by using continuous wavelet transform and Grami angle field respectively, and fusing multiple two-dimensional images to obtain a comprehensive two-dimensional image by using a convolution feature adaptive image fusion model;
[0080] The power quality disturbance identification module is used to input the one-dimensional time series voltage signal and the comprehensive two-dimensional image into the power quality disturbance identification model based on two parallel feature extraction branches. The one-dimensional time series voltage signal passes through the first feature extraction branch, and then passes through the BiLSTM layer, the self-attention layer and the output layer in sequence to output the one-dimensional feature. The comprehensive two-dimensional image passes through the second feature extraction branch and outputs the two-dimensional feature. Based on the one-dimensional feature and the two-dimensional feature, it is classified through the fully connected layer and the Sortmax layer to output the final power quality disturbance identification result.
[0081] In this embodiment, comprehensive identification and classification based on the above-mentioned extracted features can effectively ensure the comprehensiveness and accuracy of data feature extraction, and ensure the accuracy and reliability of the final identification and classification.
[0082] Embodiment 3
[0083] This embodiment provides an electronic device, including a memory and a processor, and computer instructions stored in the memory and executed on the processor. When the computer instructions are executed by the processor, the steps in the method for identifying power quality disturbances in a distribution network based on deep learning as described above are completed.
[0084] Embodiment 4
[0085] This embodiment also provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the steps in the distribution network power quality disturbance identification method based on deep learning as described above are completed.
[0086] The steps involved in the above embodiments 2 to 4 correspond to the method embodiment 1, and the specific implementation methods can refer to the relevant description part of embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood to include any medium that can store, encode or carry an instruction set for execution by a processor and enable the processor to execute any method in the present invention.
[0087] Those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.
[0088] The above description is only a preferred embodiment of the present invention. Although the specific implementation mode of the present invention is described in conjunction with the accompanying drawings, it is not a limitation of the protection scope of the present invention. Those skilled in the art should understand that on the basis of the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative work are still within the protection scope of the present invention.
Claims
1. A method for identifying power quality disturbances in distribution networks based on deep learning, characterized in that: include: Obtain a one-dimensional time series voltage signal at a set sampling frequency within a set time period of the distribution network; The one-dimensional time series voltage signal is converted into a two-dimensional image by using continuous wavelet transform and Grami angle field respectively, and multiple two-dimensional images are fused to obtain a comprehensive two-dimensional image through the convolution feature adaptive image fusion model; The one-dimensional time series voltage signal and the integrated two-dimensional image are input into the power quality disturbance recognition model based on two parallel feature extraction branches. The one-dimensional time series voltage signal passes through the first feature extraction branch, and then passes through the BiLSTM layer, the self-attention layer and the output layer to output the one-dimensional feature. The comprehensive two-dimensional image passes through the second feature extraction branch, and then passes through the convolution layer and the pooling layer to output the two-dimensional features; based on One-dimensional features and two-dimensional features are concatenated to obtain a concatenated vector, which is then classified through a fully connected layer and a Softmax classification layer to output the final power quality disturbance recognition result; The convolutional feature adaptive image fusion model includes a multi-feature extraction layer with convolution kernels of different sizes, a fusion layer and a transposed convolution layer; The converted multiple two-dimensional images are used as source images and input into the convolutional feature adaptive image fusion model, wherein the low-frequency feature images and high-frequency feature images of the input source images are extracted respectively through multiple feature extraction layers with convolution kernels of different sizes; in the fusion layer, the low-frequency feature images and high-frequency feature images of all source images are concatenated and merged along the dimensional channel to obtain a merged feature image; finally, the merged convolution features output by the fusion layer are upsampled through the transposed convolution layer, so that the image is gradually restored to the source image size and output.
2. The method for identifying power quality disturbances in distribution networks based on deep learning according to claim 1, characterized in that: The continuous wavelet transform is used to transform the one-dimensional time series voltage signal into the time-frequency domain to obtain the wavelet two-dimensional time-frequency domain image, including: Determine basis functions and scaling sequences; Based on the basis function, the wavelet function coefficients are obtained through continuous wavelet transform, and each value of the scale sequence is converted into the corresponding frequency to obtain the frequency sequence; Based on the wavelet function coefficients and frequency series, combined with the time series, the wavelet time-frequency domain image is drawn.
3. The method for identifying power quality disturbances in distribution networks based on deep learning according to claim 1, characterized in that: Using the Grami angle field, the one-dimensional time series voltage signal is converted into a GAF two-dimensional image, including: Scale the one-dimensional time series voltage signal data to a set range; Convert the scaled time series voltage signal data into polar coordinates; Based on the Gram matrix definition, the time series data is converted into a GAF two-dimensional image.
4. The method for identifying power quality disturbances in distribution networks based on deep learning according to claim 1, characterized in that: The one-dimensional time series signal is converted into a two-dimensional image using the Markov transition field (MTF). The converted two-dimensional image and the two-dimensional image converted based on continuous wavelet transform and Grami angle field are respectively input into the convolution feature adaptive image fusion model, and multiple two-dimensional images are fused to obtain a comprehensive two-dimensional image.
5. The method for identifying power quality disturbances in distribution networks based on deep learning according to claim 1, characterized in that: The power quality disturbance types include 9 single disturbances, 9 double disturbances, and 8 triple disturbances; The single disturbance includes: normal, sag, swell, interruption, harmonic, oscillation, flicker, pulse, and cut; The double disturbance includes: sag + harmonic, swell + harmonic, interruption + harmonic, sag + oscillation, swell + oscillation, sag + flicker, swell + flicker, flicker + harmonic, flicker + oscillation; The triple disturbance includes: temporary rise + flicker + oscillation, temporary dip + flicker + oscillation, temporary rise + harmonic + oscillation, temporary dip + harmonic + oscillation, temporary rise + harmonic + pulse, temporary dip + harmonic + pulse, flicker + oscillation + harmonic, temporary dip + flicker + harmonic.
6. A distribution network power quality disturbance identification system based on deep learning, characterized in that: include: A data acquisition module is used to acquire a one-dimensional time series voltage signal at a set sampling frequency within a set time period of the distribution network; A data processing module, for converting a one-dimensional time series voltage signal into a two-dimensional image by using continuous wavelet transform and Grami angle field respectively, and fusing multiple two-dimensional images to obtain a comprehensive two-dimensional image by using a convolution feature adaptive image fusion model; The power quality disturbance identification module is used to input the one-dimensional time series voltage signal and the integrated two-dimensional image into the power quality disturbance identification model based on two parallel feature extraction branches. The one-dimensional time series voltage signal passes through the first feature extraction branch, and then passes through the BiLSTM layer, the self-attention layer and the output layer in sequence to output the one-dimensional feature. The comprehensive two-dimensional image passes through the second feature extraction branch, and then passes through the convolution layer and the pooling layer to output the two-dimensional features; based on One-dimensional features and two-dimensional features are concatenated to obtain a concatenated vector, which is then classified through a fully connected layer and a Softmax classification layer to output the final power quality disturbance recognition result; The convolutional feature adaptive image fusion model includes a multi-feature extraction layer with convolution kernels of different sizes, a fusion layer and a transposed convolution layer; The converted multiple two-dimensional images are used as source images and input into the convolutional feature adaptive image fusion model, wherein the low-frequency feature images and high-frequency feature images of the input source images are extracted respectively through multiple feature extraction layers with convolution kernels of different sizes; in the fusion layer, the low-frequency feature images and high-frequency feature images of all source images are concatenated and merged along the dimensional channel to obtain a merged feature image; finally, the merged convolution features output by the fusion layer are upsampled through the transposed convolution layer, so that the image is gradually restored to the source image size and output.
7. An electronic device, characterized in that: The method comprises a memory and a processor, and computer instructions stored in the memory and executed on the processor. When the computer instructions are executed by the processor, the steps of a method for identifying power quality disturbances in a distribution network based on deep learning are completed as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: Used to store computer instructions, which, when executed by a processor, complete the steps of a distribution network power quality disturbance identification method based on deep learning as described in any one of claims 1-5.
Citation Information
Patent Citations
Electric energy quality composite disturbance identification method based on multi-scale analysis two-dimensional feature extraction
CN114139586A
Power quality disturbance identification method based on multi-modal image fusion and ResNetXt-50
CN117892059A
Composite interference signal recognition method and system
WO2023092923A1
