|Computers, Materials & Continua
Disturbance Evaluation in Power System Based on Machine Learning
1Department of Electrical Engineering, College of Engineering, Jouf University, Sakaka, 72388, Al-Jouf, Saudi Arabia
2Department of Electrical Engineering, College of Engineering, Prince Sattam bin Abdulaziz University, Wadi Addawaser, 11991, Saudi Arabia
3Department of Electrical Engineering, Aswan Faculty of Engineering, Aswan University, Aswan, 81542, Egypt
4Department of Electrical Engineering, University of Engineering and Technology Peshawar, Pakistan
*Corresponding Author: Emad M. Ahmed. Email: firstname.lastname@example.org
Received: 23 July 2021; Accepted: 24 August 2021
Abstract: The operation complexity of the distribution system increases as a large number of distributed generators (DG) and electric vehicles were introduced, resulting in higher demands for fast online reactive power optimization. In a power system, the characteristic selection criteria for power quality disturbance classification are not universal. The classification effect and efficiency needs to be improved, as does the generalization potential. In order to categorize the quality in the power signal disturbance, this paper proposes a multi-layer severe learning computer auto-encoder to optimize the input weights and extract the characteristics of electric power quality disturbances. Then, a multi-label classification algorithm based on rating is proposed to understand the relationship between the labels and identify the various power quality disturbances. The two algorithms are combined to construct a multi-label classification model based on a multi-level extreme learning machine, and the optimal network structure of the multi-level extreme learning machine as well as the optimal multi-label classification threshold are developed. The proposed method can be used to classify the single and compound power quality disturbances with improved classification effect, reliability, robustness, and anti-noise performance, according to the experimental results. The hamming loss obtained by the proposed algorithm is about 0.17 whereas ML-RBF, SVM and ML-KNN schemes have 0.28, 0.23 and 0.22 respectively at a noise intensity of 20 dB. The average precision obtained by the proposed algorithm 0.85 whereas the ML-RBF, SVM and ML-KNN schemes indicates 0.7, 0.77 and 0.78 respectively.
Keywords: Optimal power flow; optimization algorithm; deep learning; power systems
With the continuous development of the power system and the diversification of power access forms, the power quality is getting worse and worse. At the same time, various electrical equipment has extremely high requirements for power quality standards. Therefore, identifying and classifying the power quality disturbance signals accurately and quickly is a prerequisite for ensuring stable, safe, and efficient operation of the power grid [1–5].
Machine learning has advanced rapidly in the academia and industry in recent years. Its ability to perform complex recognition tasks has been demonstrated by a large increase in recognition rate on many typical recognition tasks. A significant number of academics have flocked to research its hypotheses and applications. Deep learning is being used in a variety of fields to solve some of the problems in this area. Machine learning research has started to appear in the area of regulation [6–11].
Precise power consumption forecasting not only plays a decision-making role in the real-time power dispatching, but also an effective way to ensure the grid stability, solve power deviations, and save the energy. At present, the state is advancing to achieve the power deviation control from demand as the entry point, and the focus of power sales companies is on power consumption forecasting. The real-time and accuracy of the next-time user power consumption forecast is not only one of the realization goals of demand-side management, but also has positive significance for the safe and stable operation of the power system and the improvement of economic benefits. Due to the characteristics of randomness and uncertainty in short-term power consumption of users, the choice of forecasting method and its ability to overcome the randomness directly affect the implementation quality of real-time and accurate power dispatch [12–18].
Because of the rapid growth of large-scale wind farms, wind energy is playing an increasingly important role in domestic and international power markets as a sustainable and cost-effective renewable energy source. Wind's highly unpredictable capacity, on the other hand, can trigger nonlinear characteristics in the wind power, which can have a number of negative consequences for the wind power system's reliability [19–25]. As a result, developing an accurate and efficient power prediction model is needed to preserve the grid's reliability while also improving the equal planning, dispatching, control, and risk assessment capabilities. Many domestic and foreign researchers have performed relevant research and proposed a variety of new viewpoints and methods, which can be broadly divided into two categories: physical statistics and time series methods. The wind farm's actual physical meteorological data, for example, is used in the physical statistics scheme, which necessitates a large number of parameters, time-consuming calculations, and generally low accuracy [26,27].
With the use of a large number of nonlinear and unbalanced loads in the power system, the impact of power quality on the safe and stable operation of the power system has become more obvious. The real-time and effective classification of power quality disturbances has become the basis for further improvement of power quality. In recent years, the classification of power quality disturbances has been well studied [28–32]: Support vector machine (SVM) method can be used to detect the complex power quality problems. Using multi-label K-nearest neighbor method (ML-KNN), it can clearly detect, locate and classify different power quality problems. The use of multi-label radial basis function neural network (ML-RBF) can improve the classification efficiency and accuracy of common power quality disturbances.
In the field of quality disturbance classification, commonly used feature extraction algorithms include Fourier transform , wavelet transform , S transform [35,36], Hilbert yellow transform [37,38], etc. Commonly used classification and recognition algorithms include extreme learning machine , support vector machine , BP neural network  and so on. Reference  uses the S transform to extract the characteristics of power quality disturbance signals, and recognizes them through GAP-RBF neural network. This method has a small number of neurons and fast calculation speed, but the recognition rate needs to be improved. Reference  uses Lagrangian delay to optimize the wavelet basis to extract the power quality disturbance signal features, and uses the probabilistic neural network based on K-means clustering to achieve the classification, but its algorithm needs to extract more features, which leads to feature redundancy. Reference  uses a compressed sensing sparse vectors to extract the characteristics of power quality disturbance signals, using neural network performs classification. This method reduces the amount of data that needs to be processed, but the anti-noise performance is not strong. The study found that the existing power quality disturbance classification method lacks a unified classification standard and is prone to redundant features, which leads to a decline in classification accuracy, poor generalization ability, and greater noise.
The above algorithms require feature selection of the signal, which is prone to feature redundancy, and some other features will be lost, resulting in a decrease in recognition rate and reduced anti-noise performance. In order to avoid the process of selecting power quality disturbance features, literature [44,45] converts the power quality disturbance signal into a two-dimensional gray image, and then uses a two-dimensional CNN for image recognition, but the conversion process is complicated, and the grayscale is temporarily reduced and interrupted. The degree of image features is not obvious, resulting in a decline in the recognition rate. For sequence signals such as power quality disturbances, one-dimensional CNN can be used to speed up the calculation. Reference  uses the segmented improvement of the S transform to process the time domain resolution and the frequency domain resolution in segments. By analyzing the modulated time-frequency matrix obtained by the improved S transform, the characteristic curve that can reflect the different mutation parameters of the disturbance signal is drawn. The radial basis function neural network of local approximation is used to classify the disturbance signal, but it is difficult to extract the feature quantity under the compound disturbance, and the generality is poor. Reference  uses a sparse autoencoder to perform unsupervised learning of the original disturbance signal, which automatically extracts the sparse expression of the disturbance signal data characteristics, and uses the classifier for training to obtain the classification accuracy of various disturbance signals, which solves the shortcoming of the traditional neural network initial randomness of the weight value, but the coding process is complicated.
Power quality disturbance classification in distribution networks is one of the important aspect which is in the focus of both academia and industry. Various methods have been proposed but their classification efficiency is lower. In order to improve the classification efficiency and improve the power quality, this paper focuses on the improvement of classification accuracy and efficiency as the research goal, and proposed a multi-layer extreme learning machine self-encoding network structure, and ranking-based power quality disturbance classification model, and compares it with other classification methods on power quality disturbance classification. The comparison verifies the effectiveness of the proposed method.
The remaining of the paper is organized as follows. In Section 2, the system model is described. In Section 3, the numerical results are provided in detail. Section 4 provides the application scenario while Section 5 concludes the paper.
2 System Model
Multi-layer extreme learning machine based on self-encoding, which can effectively represent the complex functions, has high prediction accuracy and generalization ability. The ranking-based multi-label classification algorithm, taking into account the correlation between the labels, is suitable for the classification of various power quality disturbances, and has a strong anti-noise ability. This paper combines the multi-layer extreme learning machine with the multi-label classification algorithm, and proposes a multi-label classification model based on the multi-layer extreme learning machine.
2.1 Self-Encoder Structure
The extreme learning machine autoencoder (ELM-AE) optimizes the input weight, improves the classification accuracy and generalization ability, overcomes the problem of neuron invalidity caused by the random weight and hidden layer threshold of the extreme learning machine, and improves the classification efficiency [48–50].
The network structure of the extreme learning machine autoencoder is shown in Fig. 1. The number of nodes in the input layer and output layer is n, and the number of nodes in the hidden layer is l.
Suppose there is an arbitrary sample space
Introduce the orthogonal random weight matrix
By reconstructing the matrix
The multi-layer extreme learning machine autoencoder (ML-ELM-AE) performs stacking operations on the basis of ELM-AE [38,51], and builds a network structure with multiple hidden layers, as shown in Fig. 3, which can improve the average power accuracy and generalization ability of the quality disturbance classification [39,52–57].
The first step is to use the set of input data samples to calculate the output matrix
In the second step,
The third step, and so on, takes the output matrix
2.2 Multi-Label Classification Algorithm
In multi-label classification algorithm, a single data sample belongs to the multiple category labels, and fully considering the correlation between the labels [40–42]. This paper uses the ranked classification method to complete the multi-label classification problem.
Assuming that the sample space is S, each sample is a d-dimensional feature vector, namely
Based on the rank-based multi-label classification algorithm , a mapping
For the sample
It can be observed that the predicted label set of the sample
Evaluation indicators to measure the effect of multi-label classification algorithms [45,46] mainly include Hamming loss, first-class errors, ranking loss, coverage and average accuracy.
where n represents the number of samples; L represents the total number of labels;
A one type of error
The ranking loss
The coverage rate
The average accuracy
2.3 Multi-Label Classification Model Based on ML-ELM
In this paper, the self-encoding structure of the multi-layer extreme learning machine and the ranking-based multi-label classification algorithm are combined to construct the basic structure of the classifier model as shown in Fig. 4 .
According to the model in Fig. 4, the input sample data is mapped to the label through the ML-ELM-AE network, and then the classification result is obtained through the conversion of the classification function . Among them,
In the process of classifying the power quality disturbances, the ML-ELMAE algorithm determines the optimal network structure through experiments based on the set of input data samples, and generates the output matrix and weight matrix of each hidden layer. The ranking-based multi-label classification algorithm determines the optimal classification threshold through experiments , and normalizes the classification threshold to (0,1). Combining the two algorithms, a multi-label classification algorithm of multi-layer extreme learning machine is designed, which is suitable for the classification of single disturbance of power quality and the classification of compound disturbances. It has good anti-noise ability and high classification accuracy , and overcomes the randomness of traditional ELM parameter assignment, and has high classification efficiency, good robustness and generalization ability.
3 Experimental Results and Analysis
This paper uses the MATLAB simulator to compute the simulation experiment, using average accuracy, hamming loss, first-class error, ranking loss, and coverage as the evaluation indicators of the classification effect. In addition, the experiment also increases the training time and test time of the classifier as a measure of classification efficiency evaluation index. In order to reduce the error, each experimental data is the arithmetic mean of the algorithm program running 20 times under the same experimental conditions.
3.1 Power Quality Disturbance Signal Model
The common single power quality disturbance signal model  is shown in Tab. 1, where the fundamental frequency
The signal in the experiment is sampled with 3200 Hz as the sampling frequency, 30 cycles are sampled in total, and the total number of sampling points is 1921. All signals are randomly generated 200 samples according to the mathematical model, 100 are used as training data, and the other 100 are used as test data. The training data set and the test data set each contain 4800 samples.
3.2 Classifier Model Parameter Design
In this paper, the optimal network structure of ML-ELM-AE is evaluated through experiments, and the multi-label mapping function
3.2.1 Determination of ML-ELM-AE Network Structure
In this paper, the number of hidden layers of ML-ELM-AE is limited to 9 layers, the number of nodes in each layer is set to 50∼2000, and the number of nodes is changed by 50. The Hamming loss is used as the basis for the evaluation of the classification effect, and the training time and the test time are referred to at the same time, and the network structure parameters of the multi-layer extreme learning machine with good classification effect and high efficiency are selected.
In order to obtain the optimal number of nodes in each layer when the total number of layers is different, the following experimental steps are designed:
1) Set the number of hidden layers of ML-ELM-AE to 1.
2) Set the number of hidden layer nodes to change according to the law of 50 + L × 50 (L is an integer increasing from 0 to 39), get the Hamming loss corresponding to each L value, training time and test time, and select the optimal L value, that is, the optimal number of nodes in this layer is 50 + L × 50.
3) Set the number of layers of ML-ELM-AE to 2, where the number of nodes in the first layer has been fixed by steps 1 and 2, repeat step 2, get the optimal L value of the second layer, and get the optimal number of nodes in this layer.
4) Set the number of layers of ML-ELM-AE to 3∼9 in turn, and get the optimal number of nodes for each layer.
Tab. 2 shows the number of nodes in each layer corresponding to the optimal value of Hamming loss when the total number of layers in ML-ELM-AE is 1–9. It can be found that starting from layer 4, the optimal number of nodes for the new hidden layer is 750.
Fig. 5 shows the relationship between the number of hidden layers of ML-ELM-AE and the Hamming loss. It can be found that, the Hamming loss shows a pattern of first decreasing and then tending to be stable. When the number of hidden layers exceeds 4, the Hamming loss is lower.
Figs. 6 and 7 respectively shows the relationship between the number of hidden layers of ML-ELM-AE and the training time and test time. It can be found that with the increase of the number of hidden layers, the overall training time and test time shows an increasing trend.
Based on the above experimental results, we can observe that, there is not a single quantitative relationship between the number of hidden layers and the number of nodes in ML-ELM-AE and the classification results. There is an optimal number of hidden layers and nodes, which saves training and testing time while ensuring the classification effect and improved efficiency. In this paper, when the number of hidden layers of ML-ELM-AE is 4, the power quality disturbance classification effect is the best and the efficiency is higher. Therefore, this paper sets the multi-layer extreme learning machine as “input layer-hidden layer (350-1150-350-75)” structure of the output layer.
3.2.2 Determination of Classification Threshold
The experiment adopts the optimal 4-layer ML-ELM-AE network structure, and the classification threshold of the multi-label classifier is set in the range of 0.05 to 0.95, with 0.05 as the step interval. The Hamming loss, ranking loss, first-class error, coverage rate, and average accuracy are used as the evaluation basis for the classification effect. Fig. 8 shows the relationship between the classification threshold and the Hamming loss. It can be found that, with the increase of the classification threshold, the Hamming loss quickly decreases and stabilizes, and then slightly increases. When the classification threshold changes around 0.55, the Hamming loss value is smaller.
Figs. 9 and 10 respectively shows the relationship between the classification threshold and the one-type of error and the ranking loss. It can be found that the change of the classification threshold has little effect on these two evaluation indicators, and the first type of error in Fig. 9 is floating around 0.086. The ranking loss in Fig. 10 fluctuates around 0.063, and the range of change is small.
Fig. 11 shows the relationship between the classification threshold and the coverage rate. It can be found that, with the change of the classification threshold, the coverage rate fluctuates between 2.006 and 2.017. When the classification threshold is around 0.6, the coverage rate is smaller.
Fig. 12 shows the relationship between the classification threshold and the average accuracy. It can be found that the average accuracy value varies from 0.9075 to 0.9085. When the classification threshold changes around 0.65, the average accuracy value is higher.
Based on the above experimental results, it can be obtained that the classification threshold has a more obvious impact on the Hamming loss, the coverage rate and average accuracy are affected by the change of the classification threshold to a certain extent, and the first type of errors and ranking errors are not significantly affected by the classification threshold. In this paper, the classification threshold of the multi-label classifier is set to 0.6.
3.3 Classification of Experiment Results and Comparison
3.3.1 Classification Process
The multi-label classification model of the multi-layer extreme learning machine is deployed to predict the disturbance category contained in the power quality disturbance signal [54,55].
In the first step, the power quality disturbance signal is subjected to discrete wavelet transform (DWT) to obtain the decomposition coefficients of each layer, and the decomposition coefficients are divided into training data sets and test data sets.
The second step is to randomly generate the weights of each layer of the orthogonalized ML-ELM-AE network.
The third step is to train the multi-layer extreme learning machine network with the training data set as input, and adjust the weights of each layer of the network.
The fourth step is to obtain the classification function of the multi-label classification algorithm according to the mapping relationship of ML-ELM-AE.
Finally, the test data set is used as input, and the multi-label classification model of the trained multi-layer extreme learning machine is used to predict the disturbance category.
3.3.2 Experimental Results and Comparison
The experimental research objects are a single disturbance signal and a composite disturbance signal, and noise disturbances with a signal-to-noise ratio (SNR) of 50, 40, 30 and 20 dB are superimposed on each power quality disturbance signal. The experimental data is the average of the experimental results of various disturbance signals under the same noise intensity. In order to further verify the performance of the power quality disturbance classification method proposed in this paper, the SVM, ML-KNN and MLRBF schemes are used to complete the disturbance signal classification, and the results are compared with the method proposed in this paper.
Tab. 3 shows the Hamming loss of the classification results of various interference signals under different noise levels. Fig. 13 shows the comparison results of the Hamming loss of different classification algorithms. It can be found that the noise intensity is reduced from 50 to 20 dB. Although the Hamming loss value shows an increasing trend, it is lower than the other existing three algorithms.
Tab. 4 shows the first-class errors of the classification results of various interference signals under different noise levels. Fig. 14 shows the comparison results of the one-type errors of different classification methods. It can be found that the first-class error values of the proposed method are the lowest, and the experimental results under different environments are not much different.
Tabs. 5 and 6 show the ranking loss and coverage rate of various interference signal classification results under different noise levels. Figs. 15 and 16 show the ranking loss and coverage rate comparison results of different classification methods. It can be found that, the ranking loss value and coverage rate of the proposed method are lower than the other three methods.
Tab. 7 shows the average accuracy of the classification results of various interference signals under different noise levels. Fig. 17 shows the comparison results of the average accuracy of different classification methods. It can be found that as the interference intensity weakens, the average accuracy of the proposed method shows a downward trend, but higher than the other three methods.
Tabs. 8 and 9 shows the training time and test time of the classification results of various interference signals under different noise levels. Figs. 18 and 19 shows the comparison results of the training time and test time of different classification methods. It can be found that, the proposed method can complete the training and testing within 10 s, and the classification efficiency advantage is obvious. It shows that, after the multi-label classification model based on the multi-layer extreme learning machine is trained, it can realize the rapid classification of power quality disturbances, which is suitable for the classification of a large number of interference signals.
Based on the above experimental results, the classifier model proposed in this paper has lower coverage rate, higher average accuracy, and Hamming loss, first-class error, ranking loss, and higher coverage than other classification methods. The proposed algorithm has a good classification effect and the training time and test time for classification are relatively low, showing higher classification efficiency.
First, the proposed algorithm includes the multiple hidden layers with strong nonlinear mapping capabilities and generalization capabilities, which can effectively characterize the complex interference signals and improve the average accuracy of classification.
Second, the proposed algorithm can extract a large amount of feature information, avoiding the contingency of random assignment of the algorithm. Under the interference of different intensities of noise, the variation of various performance indicators is small, and it has good generalization ability and robustness.
Third, the ranking-based multi-label classification algorithm fully considers the correlation between each label, and is suitable for the classification of single disturbance and compound disturbance, and has good anti-noise ability and classification accuracy.
Fourth, the proposed algorithm does not require iteration, reducing training time and testing time, and has obvious advantages when dealing with a large amount of power quality interference.
The power load of the grid in sTarbela is responsible for the power supply of 13 cities and regions and part of the power exchange between the three provinces of Punjab, Sindh and Balochistan. It has 11000 kV substation, 4500 kV substations, 28220 kV substations, and 110 kV substation 103. There are 18235 kV substations with a power supply capacity of 5.5 million kW. There are 621 35-220 kV lines with a line length of 8443.83 km.
This paper takes the electric energy disturbance as an example to study the application effect of the classification algorithm in the actual grid. According to the classification model and parameter range shown in the article, 100 training samples and 100 test samples are randomly selected for each type of power quality disturbance signal.
Tab. 10 shows the classification results of power quality disturbances and Fig. 20 shows the comparison of the classification results using different classification methods. Fig. 21 shows the comparison of the test time of different classification methods. It can be found that, the classification accuracy and testing of the proposed method in the actual power grid is basically the same as the simulation prediction results, and the classification effect and efficiency are significantly better than other methods.
In this paper, combining the multi-layer extreme learning machine based on self-encoding and the multi-label classification algorithm based on ranking, a new power quality disturbance classification method is proposed, and the structure model and classification process of the classifier are explained. Experiments show that the proposed algorithm performs well in terms of Hamming loss, average accuracy, and coverage of the classification results, and has good noise resistance and robustness. It also significantly reduces the training time and test time, and the advantage is obvious when there are more interference signals. The proposed results provide effective means to determine the classification of disturbance in power signals quality. It can be generally deployed in relevant distribution networks that has to be evaluated in the context of disturbance analysis. Moreover, the proposed solution is optimal and has lower hamming loss, higher accuracy and improved ability to classify the disturbance. It has good anti-noise ability and high classification accuracy , and overcomes the randomness of traditional ELM parameter assignment, and has high classification efficiency, good robustness and generalization ability.
Funding Statement: The authors extend their appreciation to the Deanship of Scientific Research at Jouf University for funding this work through research Grant No. (DSR-2021-02-0203).
Conflicts of Interest: The authors declare that they have no conflicts of interest to report regarding the present study.
|This work is licensed under a Creative Commons Attribution 4.0 International License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.