A method and device for detecting power quality disturbance
By collecting grid power quality information and combining compressed sensing with deep convolutional neural networks, the problem of inaccurate power quality disturbance detection in the existing technology is solved, and fast and efficient power quality disturbance classification and identification are achieved.
Patent Information
- Application Number
- CN202111679366.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-31
AI Technical Summary
Existing power quality disturbance detection methods cannot effectively identify multiple single and composite disturbance signals, and traditional artificial intelligence methods are slow when processing large amounts of data, making it difficult to achieve efficient and low-computational detection.
The power quality information of the power grid is collected through voltage transformers and current transformers, and the compressed sensing algorithm is used for sparse representation and numerical optimization reconstruction. It is combined with a deep convolutional neural network to classify power quality disturbances to reduce the impact of noise and improve recognition accuracy.
It achieves fast and high-precision classification of power quality disturbances, reduces the amount of calculations, and improves detection efficiency and identification accuracy.
Smart Images

Figure CN114325197B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power quality, and in particular to a method and device for detecting power quality disturbance. Background Art
[0002] At present, the energy and power load of the power grid are increasing. On the one hand, with the reduction of fossil energy storage, the development cost has increased, and the degree of environmental pollution is relatively large. With the continuous maturity of new energy technologies such as wind energy and solar energy, the cost of power generation has continued to decline, making the power generation cost of various new energy sources lower than that of traditional fossil energy. As a result, the power grid will be mixed with power from various different electric fields. At the same time, the integration of a large number of new energy sources into the power grid will have a certain degree of impact on the power quality. For example, wind power generation is random, and the generator will produce fluctuating output power. On the other hand, with the increasing application of DC converter stations, photovoltaic inverters and various nonlinear power electronic equipment in the power grid, more and more power quality data is collected. Therefore, the generation of a large amount of power information has brought a huge burden to the data transmission and storage of the current power grid.
[0003] In order to reduce the communication pressure and storage problems at the acquisition end, compressed sensing technology can break through the limitations of the sampling theorem and restore the original signal by collecting much smaller data than the sampling theorem, thereby reducing the amount of power quality information collected. However, the recovery and reconstruction algorithms in compressed sensing technology have large computational complexity and slow operation speed, making them difficult to apply to large amounts of data reconstruction problems. In addition, the amount of power quality disturbance data is large, and the recovery and reconstruction algorithms of compressed sensing technology run slowly, making them unsuitable for the recovery and reconstruction of large amounts of signals.
[0004] At present, the power quality disturbance detection method is to extract features from the power quality disturbance, and then classify the features through different classifiers to achieve the final identification of the disturbance. Commonly used classifiers in power quality disturbance classification include: probabilistic neural network algorithm, support vector machine and artificial neural network. These traditional artificial intelligence methods have achieved certain results in practical applications, but their ability to extract features and process large amounts of data is still poor. In addition, a feature extraction process is required, which affects their classification speed.
[0005] Therefore, how to realize power quality disturbance detection in an efficient and low-computation mode is one of the focuses of work for technical personnel in this field. Summary of the invention
[0006] The purpose of the present invention is to provide a power quality disturbance detection method and device to solve the problem that when judging the type of power quality disturbance in the detection method of the prior art, the detection result is inaccurate and multiple single and composite disturbance signals cannot be effectively identified.
[0007] In order to solve the above technical problems, an embodiment of the present invention provides a method for detecting power quality disturbances, comprising:
[0008] S1, collects the power quality information of the power grid through voltage transformers and current transformers, and outputs the collected multi-channel sampling signal data;
[0009] S2, preprocessing the multi-channel sampled signal data, sparsely representing the multi-channel sampled signal data using a sparse transformation basis through a compressed sensing algorithm, using a measurement matrix to observe the signal to obtain a measurement value and reconstructing the measurement value into an original discrete signal and obtaining a sparse vector containing the detailed features of the original disturbance signal to obtain the original signal structure, and finally accurately reconstructing the original signal by solving a numerical optimization problem;
[0010] S3, after training the deep convolutional neural network model composed of a convolutional layer, a pooling layer, a fully connected layer and a Softmax layer until the error meets the preset accuracy, the original signal is classified into power quality disturbances and the classification result is output.
[0011] Wherein, between the S1 and the S2, it also includes:
[0012] The multi-channel sampling signal data is subjected to hysteresis compensation processing to eliminate the angle deviation of the voltage transformer and the current transformer, so that the multi-channel sampling signals are synchronous signals.
[0013] Among them, it also includes:
[0014] The multi-channel sampling signal data, the original signal, the training data of the deep convolutional neural network, and the classification result are stored in a storage unit.
[0015] Wherein, after S3, it also includes:
[0016] The classification result is displayed and an alarm message is issued after determining that the classification result is abnormal.
[0017] In addition, an embodiment of the present application further provides a power quality disturbance detection device, comprising:
[0018] The sampling unit is used to collect the power quality information of the power grid through the voltage transformer and the current transformer, and output the collected multi-channel sampling signal data;
[0019] A data preprocessing unit is used to preprocess the multi-channel sampled signal data, after sparsely representing the multi-channel sampled signal data using a sparse transformation basis through a compressed sensing algorithm, use a measurement matrix to observe the signal to obtain a measurement value and reconstruct the measurement value into an original discrete signal and obtain a sparse vector containing the detailed features of the original disturbance signal to obtain the original signal structure, and finally accurately reconstruct the original signal by solving a numerical optimization problem;
[0020] The data processing unit, after training a deep convolutional neural network model consisting of a convolutional layer, a pooling layer, a fully connected layer and a Softmax layer until the error meets a preset accuracy, classifies the original signal into power quality disturbances and outputs the classification result.
[0021] Among them, it also includes a compensation circuit connected to the sampling unit and the data preprocessing unit, which is used to perform hysteresis compensation processing on the multiple sampling signals, eliminate the angle deviation of the voltage transformer and the current transformer, and make the multiple sampling signals synchronous signals before outputting them to the data preprocessing unit.
[0022] Among them, it also includes a storage unit connected to the sampling unit, the compensation circuit, the data preprocessing unit, and the data processing unit, which is used to store the multi-channel sampling signal data, the original signal, the training data of the deep convolutional neural network, and the classification result.
[0023] Wherein, the storage unit includes at least one of a TF memory card, a hard disk, and a USB flash drive.
[0024] Wherein, it also includes an alarm display unit connected to the data processing unit and the storage unit, which is used to display the classification result and issue an alarm message after determining that the classification result is abnormal.
[0025] It also includes a communication unit connected to the warning display unit, which is used to send the classification result and the alarm information to a designated person.
[0026] The power quality disturbance detection method and device provided by the embodiments of the present invention have the following advantages compared with the prior art:
[0027] The power quality disturbance detection method and device provided in the embodiment of the present invention collects the power quality information of the power grid through voltage transformers and current transformers, outputs the collected multi-channel sampling signal data, reconstructs the original signal through compressed sensing algorithm processing, and trains the deep convolutional neural network model composed of convolution layer, pooling layer, fully connected layer and Softmax layer until the error meets the preset accuracy, classifies the power quality disturbance of the original signal and outputs the classification result. Compressed sensing technology and deep learning framework are used to reduce the impact of noise on recognition accuracy, improve recognition accuracy, and achieve rapid classification. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0029] Figure 1 A schematic diagram of a step flow chart of an embodiment of a method for detecting power quality disturbances provided by an embodiment of the present invention;
[0030] Figure 2 A schematic structural diagram of an embodiment of a power quality disturbance detection device provided by an embodiment of the present invention;
[0031] Figure 3 A schematic structural diagram of another specific implementation manner of the power quality disturbance detection device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0032] 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.
[0033] Please refer to Figure 1-3 , Figure 1 A schematic diagram of a step flow chart of an embodiment of a method for detecting power quality disturbances provided by an embodiment of the present invention; Figure 2 A schematic structural diagram of an embodiment of a power quality disturbance detection device provided by an embodiment of the present invention; Figure 3 A schematic structural diagram of another specific implementation manner of the power quality disturbance detection device provided in an embodiment of the present invention.
[0034] In a specific implementation, the power quality disturbance detection method includes:
[0035] S1, collects the power quality information of the power grid through voltage transformers and current transformers, and outputs the collected multi-channel sampling signal data;
[0036] S2, preprocessing the multi-channel sampled signal data, sparsely representing the multi-channel sampled signal data using a sparse transformation basis through a compressed sensing algorithm, using a measurement matrix to observe the signal to obtain a measurement value and reconstructing the measurement value into an original discrete signal and obtaining a sparse vector containing the detailed features of the original disturbance signal to obtain the original signal structure, and finally accurately reconstructing the original signal by solving a numerical optimization problem;
[0037] S3, after training the deep convolutional neural network model composed of a convolutional layer, a pooling layer, a fully connected layer and a Softmax layer until the error meets the preset accuracy, the original signal is classified into power quality disturbances and the classification result is output.
[0038] The power quality information of the power grid is collected through voltage transformers and current transformers, and the collected multi-channel sampling signal data is output. After the original signal is reconstructed by using the compressed sensing algorithm, the deep convolutional neural network model composed of convolution layer, pooling layer, fully connected layer and Softmax layer is trained until the error meets the preset accuracy, and the power quality disturbance of the original signal is classified and the classification result is output. The compressed sensing technology and deep learning framework are used to reduce the impact of noise on recognition accuracy, improve recognition accuracy, and achieve rapid classification. .
[0039] In order to further improve the detection accuracy and efficiency, in one embodiment, between S1 and S2, the following is further included:
[0040] The multi-channel sampling signal data is subjected to hysteresis compensation processing to eliminate the angle deviation of the voltage transformer and the current transformer, so that the multi-channel sampling signals are synchronous signals.
[0041] By performing hysteresis compensation processing on the multi-channel sampling signal data that may have been asynchronous originally, it is converted into a synchronous signal, thereby making the adopted data reliable and accurate.
[0042] It should be pointed out that the present application does not limit the circuit for hysteresis compensation processing.
[0043] Since a lot of data will be generated in the present application, if it is directly processed, such as pre-processing the collected multi-channel sampling signal data and processing it with a convolutional neural network, if a calculation error occurs in the subsequent process, it will make the subsequent fault maintenance more complicated. In one embodiment, the power quality disturbance detection method also includes:
[0044] The multi-channel sampling signal data, the original signal, the training data of the deep convolutional neural network, and the classification result are stored in a storage unit.
[0045] By storing various data and classification results in a storage unit, data verification can be performed in the storage unit during a subsequent verification process. Even if a computing failure occurs, the data can be called back, thereby improving the reliability of data detection.
[0046] This application does not limit the storage type and storage space of the storage unit.
[0047] Furthermore, in actual power quality detection, real-time detection is performed. In order to improve management efficiency, after S3, the following steps are further included:
[0048] The classification result is displayed and an alarm message is issued after determining that the classification result is abnormal.
[0049] By displaying the classification results and issuing an alarm message after determining that the classification results are abnormal, the staff can perform management more efficiently.
[0050] In one embodiment, a liquid crystal display screen is used to display power quality disturbance alarm signals and recorded data, so that operators can intuitively feel the changes in power quality. Network communication with a communication server is carried out using the RTP&HTTP protocol via 4G to achieve data transmission, and power quality disturbance classification information is sent to the operator's communication equipment to serve as a disturbance warning.
[0051] In addition, an embodiment of the present application further provides a power quality disturbance detection device, comprising:
[0052] The sampling unit is used to collect the power quality information of the power grid through the voltage transformer and the current transformer, and output the collected multi-channel sampling signal data;
[0053] A data preprocessing unit is used to preprocess the multi-channel sampled signal data, after sparsely representing the multi-channel sampled signal data using a sparse transformation basis through a compressed sensing algorithm, use a measurement matrix to observe the signal to obtain a measurement value and reconstruct the measurement value into an original discrete signal and obtain a sparse vector containing the detailed features of the original disturbance signal to obtain the original signal structure, and finally accurately reconstruct the original signal by solving a numerical optimization problem;
[0054] The data processing unit, after training a deep convolutional neural network model consisting of a convolutional layer, a pooling layer, a fully connected layer and a Softmax layer until the error meets a preset accuracy, classifies the original signal into power quality disturbances and outputs the classification result.
[0055] Since the power quality disturbance detection device is a device corresponding to the above-mentioned power quality disturbance detection method and has the same beneficial effects, this application will not elaborate on it.
[0056] Since the collected data may not be synchronized, it will cause trouble for subsequent calculations. In one embodiment, the power quality disturbance detection device also includes a compensation circuit connected to the sampling unit and the data preprocessing unit, which is used to perform hysteresis compensation processing on the multiple sampling signals, eliminate the angle deviation of the voltage transformer and the current transformer, and make the multiple sampling signals synchronous signals before outputting them to the data preprocessing unit.
[0057] This application does not limit the structure of the compensation circuit.
[0058] Since there will be a large amount of data in actual operation, if a fault occurs or the classification result is abnormal, it may be a real abnormality or an equipment failure. In order to improve maintenance efficiency, in one embodiment, the power quality disturbance detection device also includes a storage unit connected to the sampling unit, the compensation circuit, the data preprocessing unit, and the data processing unit, which is used to store the multi-channel sampling signal data, the original signal, the training data of the deep convolutional neural network, and the classification result.
[0059] By storing various data and classification results in a storage unit, data verification can be performed in the storage unit during a subsequent verification process. Even if a computing failure occurs, the data can be called back, thereby improving the reliability of data detection.
[0060] The present application does not limit the type of storage unit and the size of storage space. The storage unit includes at least one of a TF memory card, a hard disk, and a USB flash drive.
[0061] Furthermore, in order to improve management efficiency and warning efficiency, in one embodiment, the power quality disturbance detection device also includes a warning display unit connected to the data processing unit and the storage unit, which is used to display the classification result and issue an alarm message after determining that the classification result is abnormal.
[0062] Through the warning display unit, the staff can quickly obtain the classification results and alarm information, thereby improving management efficiency. The present application does not limit the type of display, alarm type, or alarm information.
[0063] Furthermore, in order to improve management efficiency and maintenance efficiency, in one embodiment, the power quality disturbance detection device also includes a communication unit connected to the warning display unit, which is used to send the classification result and the alarm information to a designated person.
[0064] This application does not limit the type of communication unit, and data transmission can be achieved by broadband, 4G, 5G, WIFI, etc.
[0065] In one embodiment, the sampling unit collects power quality information of the power grid through voltage transformers and current transformers, and the collected multi-channel sampling signals are subjected to hysteresis compensation processing to eliminate the angle deviation of the voltage transformers and current transformers, so that the multi-channel sampling signals obtained by the data sampling unit are synchronized signals, which are stored in the storage unit as original data.
[0066] The data preprocessing unit includes a single-chip microcomputer of model STM32F103RE, which preprocesses the sampling signals collected by the sampling unit. Through the compressed sensing algorithm, the power quality disturbance signal is first sparsely represented by an appropriate sparse transformation basis. Secondly, the measurement matrix is used to observe the signal to obtain the measurement value. Finally, the measurement value is reconstructed into the original discrete signal and a sparse vector containing the detailed features of the original disturbance signal is obtained to maintain the original signal structure. The characteristic signal is much smaller than the signal length directly measured, and then the original signal is accurately reconstructed by solving the numerical optimization problem.
[0067] The data processing unit includes a CPU processor for deep learning, which can identify power quality disturbances through deep convolutional neural networks. Overview of deep convolutional neural networks Figure 2 As shown in the figure, it consists of a convolutional layer, a pooling layer, a fully connected layer and a Softmax layer, each of which has different functions. The voltage quality characteristic information processed by the compressed sensing algorithm is collected and stored in the storage unit, and then the model is trained through a deep convolutional neural network. The trained data is stored in the storage unit, and the test data is read again. The model training is repeated until the model training error meets the actual accuracy required to classify power quality disturbances.
[0068] The storage unit includes a TF memory card of model SDSQUNC-032G-ZN3MN, which is used to store original data, training data and power quality disturbance classification results, so as to facilitate operators to view and analyze the causes of power quality disturbances.
[0069] The warning display unit includes a G121X1-L03 LCD display and a communication module. The LCD display is used to display the power quality disturbance alarm signal and the recorded data, allowing the operator to intuitively feel the changes in power quality. The communication module uses the RTP&HTTP protocol through 4G to communicate with the communication server to achieve data transmission, and sends the power quality disturbance classification to the operator's communication device, which plays the role of disturbance warning.
[0070] In summary, the power quality disturbance detection method and device provided by the embodiment of the present invention collects power quality information of the power grid through voltage transformers and current transformers, outputs the collected multi-channel sampling signal data, reconstructs the original signal through compressed sensing algorithm processing, and trains the deep convolutional neural network model composed of convolution layer, pooling layer, fully connected layer and Softmax layer until the error meets the preset accuracy, classifies the power quality disturbance of the original signal and outputs the classification result. Compressed sensing technology and deep learning framework are used to reduce the impact of noise on recognition accuracy, improve recognition accuracy, and achieve rapid classification.
[0071] The above is a detailed introduction to the power quality disturbance detection method and device provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A method for detecting power quality disturbance, characterized in that: include: S1, collects power quality information of the power grid through voltage transformers and current transformers, and outputs the collected multi-channel sampling signal data; S2, preprocessing the multi-channel sampled signal data, sparsely representing the multi-channel sampled signal data using a sparse transformation basis through a compressed sensing algorithm, using a measurement matrix to observe the signal to obtain a measurement value and reconstructing the measurement value into an original discrete signal and obtaining a sparse vector containing the detailed features of the original disturbance signal to obtain the original signal structure, and finally accurately reconstructing the original signal by solving a numerical optimization problem; S3, after training a deep convolutional neural network model consisting of a convolutional layer, a pooling layer, a fully connected layer, and a Softmax layer until the error meets a preset accuracy, classify the original signal into power quality disturbances and output the classification result; Between the S1 and the S2, it also includes: The multi-channel sampling signal data is subjected to hysteresis compensation processing to eliminate the angle deviation of the voltage transformer and the current transformer, so that the multi-channel sampling signals are synchronous signals.
2. The power quality disturbance detection method according to claim 1, characterized in that: Also includes: The multi-channel sampling signal data, the original signal, the training data of the deep convolutional neural network, and the classification result are stored in a storage unit.
3. The power quality disturbance detection method according to claim 2, characterized in that: After S3, it also includes: The classification result is displayed and an alarm message is issued after determining that the classification result is abnormal.
4. A power quality disturbance detection device, characterized in that: include: The sampling unit is used to collect the power quality information of the power grid through the voltage transformer and the current transformer, and output the collected multi-channel sampling signal data; A data preprocessing unit is used to preprocess the multi-channel sampled signal data, after sparsely representing the multi-channel sampled signal data using a sparse transformation basis through a compressed sensing algorithm, use a measurement matrix to observe the signal to obtain a measurement value and reconstruct the measurement value into an original discrete signal and obtain a sparse vector containing the detailed features of the original disturbance signal to obtain the original signal structure, and finally accurately reconstruct the original signal by solving a numerical optimization problem; A data processing unit, which performs power quality disturbance classification on the original signal and outputs the classification result after training the deep convolutional neural network model composed of a convolutional layer, a pooling layer, a fully connected layer and a Softmax layer until the error meets the preset accuracy; It also includes a compensation circuit connected to the sampling unit and the data preprocessing unit, which is used to perform hysteresis compensation processing on the multiple sampling signals, eliminate the angle deviation of the voltage transformer and the current transformer, make the multiple sampling signals synchronous signals, and then output them to the data preprocessing unit.
5. The power quality disturbance detection device according to claim 4, characterized in that: It also includes a storage unit connected to the sampling unit, the compensation circuit, the data preprocessing unit, and the data processing unit, which is used to store the multi-channel sampling signal data, the original signal, the training data of the deep convolutional neural network, and the classification result.
6. The power quality disturbance detection device according to claim 5, characterized in that: The storage unit includes at least one of a TF memory card, a hard disk, and a USB flash drive.
7. The power quality disturbance detection device according to claim 6, characterized in that: It also includes an alarm display unit connected to the data processing unit and the storage unit, which is used to display the classification result and issue an alarm message after determining that the classification result is abnormal.
8. The power quality disturbance detection device according to claim 7, characterized in that: It also includes a communication unit connected to the warning display unit, which is used to send the classification result and the alarm information to a designated person.
