Quantitative Analysis On The Proportion of Renewab
Quantitative Analysis On The Proportion of Renewab
1 State Key Laboratory of Smart Grid Protection and Control, Nari Group Corporation,
Nanjing 211106, China
2 School of Instrument Science and Engineering, Southeast University, Nanjing 210096, China
* Correspondence: [email protected]
Abstract: With the massive access of distributed renewable energy sources, many uncertain renew-
able energy power components have been added to the low-voltage lines in substations in addition
to the loads of definite classification. From the perspective of economy and cleanliness, it is neces-
sary to quantitatively analyze the renewable energy share among them and improve the power
quality level of users. For the power quality information at low-voltage feeders, this paper proposes
a quantitative analysis algorithm based on improved wavelet energy entropy and LSTM neural net-
work. The method is based on wavelet transform, based on sym8 wavelet basis function; it divides
the long time sequence into equal-length small time sequences, calculates each feature component
obtained from wavelet transform decomposition separately, then borrows the concept of infor-
mation entropy to find its energy entropy. After obtaining the energy entropy sequence of each
Citation: Chen, L.; Shen, J.; Zhou, B.; feature component, it then borrows the concept of kurtosis to weighted differentiation of each en-
Wang, Q.; Buja, G. Quantitative ergy entropy sequence to highlight the feature information and finally, uses the LSTM neural net-
Analysis on the Proportion of work to classify the power quality information of different renewable energy sources to determine
Renewable Energy Generation Based to which interval segment they belong. By building a simulation model to simulate the actual data
on Broadband Feature Extraction. in the field, the percentage of renewable energy can be quantitatively analyzed efficiently and ac-
Appl. Sci. 2022, 12, 11159. curately.
https://doi.org/
10.3390/app122111159
Keywords: renewable energy source; quantitative analysis; improved wavelet energy entropy;
Academic Editor: Andrea Frazzica LSTM neural network; kurtosis
To quantitatively analyze the share of renewable energy generation from the load
side, the collected data information needs to be analyzed and processed firstly to extract
its features from the broadband spectrum. Fourier transform is one of the most basic fre-
quency domain analysis methods, whose function is to reflect the overall information of
the signal at a certain time by finding the spectrum of the original signal [4]. However, it
cannot reflect the local characteristics of the signal and is not suitable for analyzing the
power quality problems with fast changes and short durations, such as transient pulses
and transient oscillations due to renewable energy access. In the literature [5], the short-
time Fourier transform is used to obtain multiple short-time signals by sliding and adding
windows to the signals, after which Fourier transform is performed separately to obtain
the time-frequency characteristics of the signals; this improves, to some extent, the draw-
back that the Fourier transform cannot reflect the local characteristics, but it is not adap-
tive because the length of the selected time-frequency window is fixed. The wavelet trans-
form is a multi-scale time–frequency transform that can reflect both the full process and
local information of the signal, so it is widely used to analyze abrupt signals and unsteady
signals [6], but there are problems, such as the difficulty of selecting the basis function.
The literature [7] uses Hilbert–Huang transform, combining two algorithms of empirical
mode decomposition and Hilbert transform, which has better adaptivity, but has disad-
vantages, such as modal confusion [8] and endpoint effects. Wavelet energy entropy [9,10]
is an analysis algorithm that performs a secondary calculation of the feature vector, and
the energy entropy of each component is obtained as a new feature vector with more ob-
vious spectral characteristics by further analysis and calculation of the feature vectors ob-
tained from the wavelet transform.
At present, algorithms involving quantitative analysis are less studied, using mostly
machine learning methods. The more-frequently applied methods based on feature selec-
tion are population-based genetic algorithms [11], particle swarm optimization [12] and
ant colony optimization [13] algorithms, and other population intelligence algorithms,
which are all effective for the input data drive algorithms of classifiers. The literature [14]
based on improved GA to filter and combine wavelet extracted features and classify them
by multiple models effectively improves the training speed and accuracy of the classifier,
but the feature screening algorithm is not integrated with the subsequent classifier, and
the GA tuning reference is more complicated, and the scene fit is lower. The literature [15]
improves the accuracy by merit screening the wavelet-extracted feature vectors through
PSO, but the overall algorithm complexity is high. The ACO is computationally intensive,
convergence is relatively slow, and it is not applicable to the feature selection problem of
PQ perturbation. The traditional BP neural network [16] has stronger adaptivity, but the con-
vergence results are slower and not suitable for dealing with long time series problems.
On the basis of the above considerations, this paper proposes a quantitative analysis
algorithm based on improved wavelet energy entropy method and LSTM neural network
for the problem of renewable energy power share on low-voltage feeders. The method in
this paper firstly pre-processes the sampled voltage and current signals by wavelet trans-
form; secondly, it finds the energy entropy of each signal characteristic component, ana-
lyzes the internal variability of the energy entropy sequence separately, introduces the
weighting coefficients, and obtains the improved energy entropy sequence after mathe-
matical processing; finally, the improved energy entropy sequence is used as the training
sample of LSTM neural network to test the judgment accuracy of the algorithm under
different new energy occupation ratio. By building the distribution network model of re-
newable energy access and obtaining the simulation data, the effectiveness and accuracy of
the quantitative analysis of the algorithm in this paper are verified by comparing this method
with the traditional method.
Appl. Sci. 2022, 12, 11159 3 of 12
t dt 0 (1)
Then, t can be used as the base wavelet (or mother wavelet). If the basis wave-
let is scaled and translated, a series of wavelet families can be obtained as a , t :
a , t | a |
1/ 2 t
(2)
a
where a and τ are the scale parameter and the translation parameter, respectively, and t is
the time. The scale parameter determines the degree of scaling of the fundamental wave-
let. However, in general practical calculations, the data are stored in discrete form; there-
fore, the discrete wavelet transform is generally chosen to change the parameters using
the dichotomy method.
j j
Take a 2 , 2 k , the discrete wavelet family is given by
j ,k t 2 j /2 2 j t k (3)
lows:
R
W f 2 j , 2 j k 2 j /2 f t * 2 j t k dt f t , j ,k t d j k (4)
where dj(k) denotes the wavelet coefficients, and its expression is given by:
d j k f t t dt
*
j ,k
(5)
R
f t
1 1
W f a ,
t dad
C
a
2
a
(6)
Before deriving the wavelet energy entropy, we ask for the wavelet energy at each
frequency band. According to the assumptions in the previous subsection, the signal se-
quence f n wavelet coefficients on each frequency band are D j n , then the wavelet
energy can be expressed by Equation (11).
n
Ej i 1
Dj
2
i (11)
Since the probability p used for the information entropy satisfies and is 1, the relative
energy is found:
Ej
Pj n (12)
i 1
Ej
Appl. Sci. 2022, 12, 11159 5 of 12
It should be noted that the wavelet energy entropy represents the feature information
contained in a certain segment of the sequence, so when conducting feature extraction on
the data, it can be considered to segment it and split it into multi-group sequences of equal
length for processing.
The letter B in the equation is taken to be approximately 103 and represents the scale
factor. μ represents the mean value of the energy entropy series, and σ represents the
standard deviation of the energy entropy series. The value of the weighting coefficient is
taken to be inversely proportional to the kurtosis of the energy entropy series. Since the
kurtosis reflects the steepness of the data, and the value of kurtosis is small for energy
entropy with inconspicuous feature information, the inverse of kurtosis is used to high-
light the internal variability in order to highlight the internal variability. At the same time,
it makes the level of internal variability of each type of energy entropy maintain on the same
baseline, thus improving the validity of the overall information and the reliability as training
samples.
ht ht 1
− ht+1
xt 1
− xt xt+1
Appl. Sci. 2022, 12, 11159 6 of 12
The key to LSTM is the cell state, which is analogous to a transmission band, a
straight line located at the top of the structural map. The state of the cell moves along this
line with only a small number of linear operations. In this way, cellular information is not
overly modified after passing through a cell. The superiority of the LSTM is its ability to
selectively modify the state of the cell, and this is achieved by a gate which selectively
allows information to pass through. The gate consists of a sigmoid neural network layer
and a point multiplication operation.
The operation of a single LSTM unit can be divided into four steps as follows:
(1) Step 1
First, the LSTM must decide to discard some of the information in the cell state, i.e.,
the “forgetting layer”. The sigmoid function is used to determine the amount of infor-
mation to be retained by using the output, ht-1, of the previous moment and the input, xt,
of the current moment.
(2) Step 2
The amount of information stored in the cell state is determined. First, the sigmoid
layer, which is the “input gate layer”, also outputs a value between 0 and 1 to determine
the amount of information to be remembered; second, the information passes through the
tanh layer to create a candidate vector, Ct’. This vector is then fed as additional infor-
mation to the cell’s state.
(3) Step 3
Update the value of Ct. First, multiply the forgetting factor, ft, obtained in the first step
to obtain the information to be forgotten. Add the candidate vector to get the new cell state,
Ct.
(4) Step 4
Require the new cell state to pass through the tanh layer to normalize the value be-
tween −1 and 1; pass the two external inputs through the sigmoid layer to determine the
amount of cell information output. The product of the two quantities is used as the final
output quantity.
750kV
Transformers
35kV
Wind Power Transformers PCC Grid
PV power Transformers
PV
MPPT Inverter
arrays
10kV
Load
In this paper, the fixed load power is 200 MW, and the change of the new energy
share at the low-voltage feeder is achieved by changing the number of input units of the
wind turbine and the number of components of the PV array. On the basis of the consid-
eration of the actual situation, a total of 500 sets of simulations are performed, and the
new energy share increases from 0.1% to 50% by 0.1% increments.
Through the power acquisition module, the PV output power (P_PV), the wind tur-
bine output power (P_wind), and the load-side power (P_load) are obtained, and the new
energy share ratio is calculated for each simulation as follows:
ratio P _ PV P _ wind / P _ load (16)
At the same time, there is more noise in the electrical signal due to the actual meas-
urement in the field, for example, white noise interference, among others. To simulate this
situation, adding Gaussian white noise (i.e., superimposing a certain percentage of nor-
mally distributed noise signal in the output current) simulates white noise interference.
As an example, the time and frequency domain diagrams of the single-phase current
at the low-voltage feeder are shown in the Figure 3 (taking the A-phase current signal for
analysis), taking the 10% and 40% sets of data. With the increase of the proportion of new
energy, the distortion of current waveform has been improved, to a certain extent. It can
be seen from Figure 3 that there are obvious harmonics at the wave crest and wave trough.
10%rate
2000
Amplitude
−2000
2000
Amplitude
−2000
However, it can be seen that the degree of signal distortion at the low-voltage feeder
does not vary much when the new energy ratio varies, so it is not possible to quantitatively
analyze it visually.
Appl. Sci. 2022, 12, 11159 8 of 12
The 500 sets of training data were divided into five categories of levels with new
energy percentages of 0–10%, 10–20%, 20–30%, 30–40%, and 40–50%, respectively, and
were recorded as R1, R2, R3, R4, and R5. Each set of data from each category was analyzed
for its energy entropy data, as shown in the following Figure 5. (R1-R5 is conducted in the
same simulation model.)
600
R1 R2 R3 R4 R5
400
200
Entropy
−200
−400
−600
0 5 10 15 20 25 30 35 40
Time block
From the figure, it can be found that the peak of the improved energy entropy is
concentrated in the starting phase as well as the midpoint phase, and the other phases are
relatively smooth, indicating that the new energy fluctuation amplitude is more obvious
in these three phases. Therefore, if we want to improve the operation speed of the algo-
rithm and reduce the storage burden, we can segment the waveform and intercept the key
segments for feature extraction, which can effectively improve the subsequent training speed.
Appl. Sci. 2022, 12, 11159 9 of 12
At the same time, observing the waveform information at different levels under the
same stage, it can be found that in the start–stop stage, the improved energy entropy
shows an increasing trend as the share of new energy increases, with the most drastic
change in the end stage. In the intermediate stage, the energy entropy shows a small range
of sinusoidal characteristics and changes in a similar way as the start–stop stage. There-
fore, it indicates that the improved energy entropy taps the information of signal charac-
teristics under various types of levels.
It can be seen from Table 1 that the training effect of improved wavelet energy en-
tropy + LSTM performs the best, which has 1000 cycles and 33 s training time, both of
which are the lowest; in addition, its accuracy rate reaches 98.6%, which is the highest
among the four methods. At the same time, it is not difficult to find that the training ac-
curacy of the traditional wavelet energy entropy method is much less than that of the
improved wavelet energy entropy method. In the case where the selected neural network
remains unchanged, the accuracy rate is improved by 3–7% after using the improved
wavelet energy entropy. In addition, the use of LSTM neural network also has a significant
impact on the total training time. BPNN is not suitable for dealing with long time se-
quences due to its inherent characteristics, so it is inferior to LSTM neural network in
terms of efficiency and accuracy. For a given training data set, the LSTM training time is
reduced by 12 s and 9 s for the traditional and improved algorithms, respectively,
Appl. Sci. 2022, 12, 11159 10 of 12
compared with their corresponding BPNN times, which proves LSTM’s superior perfor-
mance.
The above analysis shows that compared with BPNN neural network and traditional
wavelet energy entropy method, the improved wavelet energy entropy + LSTM neural
network algorithm proposed in this paper has great superiority. The algorithm requires
low number of layers for the implicit layer configuration, few cycles, and short training
time, but the accuracy rate still remains high enough to prove the effectiveness of the im-
proved wavelet energy entropy method.
The test samples were analyzed using this method; the test results are shown in the
Figure 6, and the test accuracies for each type of occupancy are shown in the Table 4. From
the table, it can be found that the overall accuracy rate is 97.5%, which shows the validity
and reliability of the method. However, the variability of the prediction accuracy of each
category is large, due, in part, to the small number of test samples. At the same time, it
can be found in the figure that the points of error in judgment are all concentrated in the
stratification of each type of group. Since this classification is based on the new energy
occupancy ratio, the feature information at the intersection of R1 and R2 is continuous,
and the generation of misjudgment is within the acceptable range. If the percentage range
is subdivided, for example, into 10 categories with 5% intervals, it can be expected that
there will be a small decrease in the model training accuracy but an improvement in the
practical significance of quantitative analysis.
Category R1 R2 R3 R4 R5
Accuracy 100% 92.5% 97.5% 100% 97.5
Total Accuracy 97.5%
Pred
4.5 Real
3.5
type
2.5
1.5
1
0 20 40 60 80 100 120 140 160 180
group
3.4. Discussions
From the above simulation and training results, it can be seen that the proposed
method in this paper has a certain improvement in accuracy and a shorter training time
compared with the traditional algorithm, indicating a certain reliability. However, limited
by the capacity of the simulation data and the performance of the machine, the span of the
percentage band in this paper is large, reaching 10%. As a result, it leads to an uneven
distribution of correct predictions in the same class of data sets, and there are some mis-
judgments at the occupancy threshold. If conditions allow, after acquiring more data, and
then using the feature variability of improved energy entropy concentrated in some data
Appl. Sci. 2022, 12, 11159 11 of 12
segments to reduce the length of feature vectors in the training samples and reduce re-
dundant information, this algorithm should be able to further improve the prediction ac-
curacy and reduce the training time. Meanwhile, considering that the regression model
can more accurately describe the proportion of renewable energy, the further study is
considered.
Therefore, the following advantages and disadvantages should be pointed out. Re-
garding the advantages:
(1) There is no need to specifically analyze the topology and power flow of the power
grid, and the required data types are easy to obtain;
(2) The intelligent algorithm has higher fault tolerance and can adapt to various network
structures and operating conditions;
(3) Compared with the traditional algorithm, the algorithm in this paper can highlight
the power quality characteristic level with renewable energy more.
However, this paper also has the following shortcomings:
(1) The training of neural network requires a large amount of data and has certain re-
quirements for sampling devices and storage capacity;
(2) At present, the proportion cannot be given very accurately, only the general scope
can be specified.
Based on the above analysis and simulation verification, this method has certain
practical application value. In the context of global promotion of low carbon emissions,
this method can judge the proportion of renewable energy components from the user side,
so as to provide a more accurate basis for carbon emissions for power users. Electricity
enterprises can use it as a basis to choose cleaner energy.
4. Conclusions
In this paper, we propose a quantitative analysis method based on improved wavelet
energy entropy and LSTM neural network for quantitative analysis of renewable energy
power share at low-voltage feeders in the context of high proportion of renewable energy
access. By building a simulation model to simulate field data and conducting a large num-
ber of training tests, we obtain the following main conclusions:
(1) The feature extraction method based on improved wavelet energy entropy can effec-
tively solve the problem of difficult spectrum analysis caused by complex perturba-
tions in power quality due to the massive access of new energy sources, especially
the improved energy entropy algorithm, which improves the traditional energy en-
tropy method not applicable to the problem of low-kurtosis data processing. At the
same time, this is the innovation of this paper.
(2) The quantitative analysis of renewable energy occupancy ratio by a traditional ma-
chine learning algorithm has problems such as long training time and low accuracy
rate. Therefore, in this paper, we use the data of Conclusion (1) to build an LSTM
neural network and simulate it in MATLAB/Simulink; the simulation shows that the
LSTM neural network can successfully identify the voltage and current data under
different occupancy ratios with low complexity and training time, and the average
accuracy rate is improved.
(3) The next step is to improve the accuracy of quantitative analysis and effectively solve the
problem of low success rate of identification at the renewable energy occupation score.
Author Contributions: L.C. and J.S. conceived the idea of this manuscript, performed the simula-
tions, and wrote the manuscript; B.Z., Q.W., and G.B. provided guidance, revised the manuscript,
and added their thinking to validate the idea. All authors have contributed equally to the analysis
and discussions. All authors have read and agreed to the published version of the manuscript.
Funding: This work was supported in part by the State Key Laboratory of Smart Grid Protection
and Control, Nari Group Corporation under project SGNR0000KJJS2200302.
Appl. Sci. 2022, 12, 11159 12 of 12
References
1. Zhuo, Z.; Zhang, N.; Xie, X. Key Technologies and Developing Challenges of Power System with High Proportion of Renewable
Energy. Autom. Electr. Power Syst. 2021, 45, 171–191.
2. Wang, Q.; Chen, P.; Deng, F.; Cheng, M.; Buja, G. The State of the Art of the Control Strategies for Single-Phase Electric Springs.
Appl. Sci. 2018, 8, 2019.
3. Kuo, W.-C.; Chen, C.-H.; Hua, S.-H.; Wang, C.-C. Assessment of Different Deep Learning Methods of Power Generation Fore-
casting for Solar PV System. Appl. Sci. 2022, 12, 7529.
4. Tong, X.; Ye, Z.; Xu, Y.; Gao, S.; Xie, H.; Du, Q.; Liu, S.; Xu, X.; Luan, K. Image Registration with Fourier-Based Image Correlation:
A Comprehensive Review of Developments and Applications. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2019, 12, 4062–4081.
5. Chen, Z.; Wang, L.; Yi, Y. Computation of radio interference excitation current of DC Corona based on short-time Fourier trans-
form. High Volt. Eng. 2019, 45, 1866–1872.
6. Jia, R.; Zhao, J.; Wu, H. Application of correlated probabilistic wavelet transform in partial discharge detection. High Volt. Eng.
2017, 43, 2896–2902.
7. Hong, X.; Liu, Y.; Lin, X.; Luo, Z.; He, Z. Nonlinear Ultrasonic Detection Method for Delamination Damage of Lined Anti-
Corrosion Pipes Using PZT Transducers. Appl. Sci. 2018, 8, 2240.
8. Koganezawa, S.; Tsuda, S.; Tani, H.; Lu, R.; Tagawa, N. Frequency Analysis of Disturbance Torque Exerted on a Carriage Arm
in Hard Disk Drives Using Hilbert–Huang Transform. IEEE Trans Magn. 2018, 54, 1–6.
9. Deng, Y.; Lin, S.; Fu, L. New Criterion of Converter Transformer Differential Protection Based on Wavelet Energy Entropy. IEEE
Trans Power Deliv. 2019, 34, 980–990.
10. Li, Y.; Ning, F.; Jiang, X.; Yi, Y. Feature Extraction of Ship Radiation Signals Based on Wavelet Packet Decomposition and Energy
Entropy. Math. Probl. Eng. 2022, 2022, 8092706. https://doi.org/10.1155/2022/8092706.
11. Qu, H.; Liu, H.; Li Xi. Feature combination optimization for multi-disturbance classification of power quality. Electr. Power
Autom. Equip. 2017, 37, 146–152.
12. Ahila, R.; Sadasivam, V.; Manimala, K. An integrated PSO for parameter determination and feature selection of ELM and its
application in classification of power system disturbances. Appl. Soft Comput. 2015, 32, 23–37.
13. Biswal, B.; Dash, P.; Mishra, S. A hybrid ant colony optimization technique for power signal pattern classification. Expert Syst.
Appl. 2011, 38, 6368–6375.
14. Wang, Y.; Zhang, K.; Zheng, C.; Chen, H. An Optimal Energy Management Method for the Multi-Energy System with Various
Multi-Energy Applications. Appl. Sci. 2018, 8, 2273.
15. Przednowek, K.; Krzeszowski, T.; Przednowek, K.H.; Lenik, P. A System for Analysing the Basketball Free Throw Trajectory
Based on Particle Swarm Optimization. Appl. Sci. 2018, 8, 2090.
16. Chen, J.; Gao, Z.; Luo, L. Error correction of UHF partial discharge location method based on BP network. High Volt. Eng. 2018,
44, 2040–2047.
17. Ingrid, D. Ten Lectures on Wavelets; Society for Industrial and Applied Mathematics (SIAM): Philadelphia, PA, USA, 1992; pp.
14–22.
18. Ali, A.; Devinder, K. Immunocomputing-Based Approach for Optimizing the Topologies of LSTM Networks. IEEE Access 2021,
9, 78993–79004.
19. Sepp, H.; Jürgen, S. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780.
20. Paul, J.W. The Roots of Backpropagation: From Ordered Derivatives to Neural Networks and Political Forecasting; John Wiley & Sons:
Hoboken, NJ, USA, 1994; pp. 86–132.