Adaptive Protection Combined With Machine Learning
Adaptive Protection Combined With Machine Learning
Hengwei Lin1,2, Kai Sun1, Zheng-Hua Tan3, Chengxi Liu2, Josep M. Guerrero2 , Juan C. Vasquez2
1Department of Electrical Engineering, Tsinghua University, Beijing, People's Republic of China
2Department of Energy Technology, Aalborg University, Aalborg 9220, Denmark
3Department of Electronic Systems, Aalborg University, Aalborg 9220, Denmark
E-mail: [email protected]
Abstract: This paper presents a rule-based adaptive protection scheme using machine-learning methodology for microgrids in
extensive distribution automation (DA). The uncertain elements in a microgrid are first analysed quantitatively by Pearson
correlation coefficients from data mining. Then, a so-called hybrid artificial neural network and support vector machine (ANN-
SVM) model is proposed for state recognition in microgrids, which utilises the growing massive data streams in smart grids.
Based on the state recognition in the algorithm, adaptive reconfigurations can be implemented with enhanced decision-making
to modify the protective settings and the network topology to ensure the reliability of the intelligent operation. The effectiveness
of the proposed methods is demonstrated on a microgrid model in Aalborg, Denmark and an IEEE 9 bus model, respectively.
IET Gener. Transm. Distrib., 2019, Vol. 13 Iss. 6, pp. 770-779 770
© The Institution of Engineering and Technology 2019
Fig. 1 Test microgrid model in Aalborg
IET Gener. Transm. Distrib., 2019, Vol. 13 Iss. 6, pp. 770-779 771
© The Institution of Engineering and Technology 2019
Table 1 Correlation between the uncertain elements and • Capacitor bank switching events; (change from 0 to 100% of the
the voltage rated value with five steps in all. x7)
Voltage Amplitude Amplitude Angle Angle
(forward (backward (forward (backward The features dataset X = [x1, x2…xN ] includes the above seven
direction) direction) direction) direction) uncertain elements and matrix Y = [y1, y2…yN ] contains the
fault 6.5 × 10−4 −7.0 × 10−4 −0.06 −0.001 corresponding short-circuit measurements of voltage and current
location (both magnitude and angle). Pearson correlation coefficient is
fault 0.933 0.9335 0.225 0.514 adopted for quantitatively analysing the correlations between X and
resistance Y [26]. X and Y are transformed into normalised z-scores by the
operating 0.079 0.075 0.173 0.210 following equations:
mode
topology 0.078 0.085 0.173 0.260 xi − x̄
zxi = (1)
DFIG 0.001 sx
6.9 × 10−4 9.4 × 10−4 2.8 × 10−4
load 5.9 × 10−4 8.0 × 10−4 5.0 × 10−4 0.001 where x̄ is the mean and sx is the standard deviation of X given:
capacitor 0.002 0.003 −0.004 −0.009
bank N
1
(2)
N i∑
x̄ = xi
=1
Table 2 Correlation between the uncertain elements and
the current 1
N
(3)
N − 1 i∑
sx = (xi − x̄)2
Current Amplitude Amplitude Angle Angle =1
(forward (backward (forward (backward
direction) direction) direction) direction) The Pearson correlation coefficient for the two datasets X and Y is
fault −0.001 0.001 3.0 × 10−4 −3.0 × 10−4 given by:
location
fault −0.728 −0.945 0.944 0.908 1
N
(4)
resistance
N − 1 i∑
rxy = zxizyi
=1
operating 0.393 −0.155 0.068 0.126
mode
The above equation can also be reformulated as the covariance
topology 0.288 −0.003 0.064 0.192
between X and Y, normalised by the product of the standard
DFIG −5.3 × 10−4 0.002 0.002 0.002 deviations of X and Y:
load −4.7 × 10−4 0.002 0.001 0.002
N
capacitor 6.6 × 10−5 0.005 0.005 −0.013 ∑i = 1 (xi − x̄)(yi − ȳ)
bank
rxy =
N N
(5)
(1/(N − 1))∑i = 1 (xi − x̄)2 (1/(N − 1))∑i = 1 (yi − ȳ)2
772 IET Gener. Transm. Distrib., 2019, Vol. 13 Iss. 6, pp. 770-779
© The Institution of Engineering and Technology 2019
reactive compensators at proper locations are significant for the
stability of the network.
In Table 2, the correlation coefficient between the forward
current amplitude and the operating modes are relatively high
(0.393). It implies the short circuit current changes severely
between the grid-connected mode and islanded mode, because the
transmission grid has much higher power rating than the microgrid
itself. Meanwhile, the network topology influences the current (in
Table 2) more than the voltage (in Table 1). Therefore, the design
and calculation of overcurrent protection should consider the
influences in the system. On the other hand, the other variations
have almost the same correlation coefficients that are relatively
small. However, the intermittence and connection states of DGs
should be considered. Some storage units may be required around
the local power plants to avoid the complete loss of DFIGs' support
during a fault. Another countermeasure is to collect the real-time
states of DGs to the control centre so that it enables the
modification of the protective settings of relays based on the
current operating situation.
IET Gener. Transm. Distrib., 2019, Vol. 13 Iss. 6, pp. 770-779 773
© The Institution of Engineering and Technology 2019
A × TDS
t= B (6)
I f /I p − 1
where: f indicates the fault location; ti, i is the operating time for the
primary relay located at i for a fault near at I; and ti, j is the
operating time for the backup relay located at j for the same fault
near at i.
The operating time ti, j for the backup relays should be >ti, i,
which can be expressed as following:
U˙ m
Zm = (9)
I˙m
The settings of each relay can be calculated as follows: Fig. 8 Protective settings for normal operation mode
I
Zset I
= Krel Zline scheme for distance protection and/or differential protection in
electrical systems.
II
Zset = II
Krel (Zline + I
KbZset 2) (10)
III
Zset = III
Krel (Zline + II
KbZset 2) 4 Rule-based adaptive protection
4.1 Adaptive protection with state recognition for microgrids
where the super script in the equations represents the different
protection zone. Kb is the branch coefficient that offsets the infeed The above calculation results of relay settings can be recorded in
currents, which can be obtained from short-circuit calculation. Krel I
, the control centre or relays beforehand, or calculated online, which
is dependent on the specific requirements in the electrical system.
Krel, Krel are the reliability coefficient of each protection zone,
II III
Due to the limited refresh rate of current SCADA system and
which is often set between 0.8 and 0.85. Zline is the impedance of the paucity of measurements in some microgrids, real-time least
the primary protected line. Zset
I
2 and Zset2 are the protective settings
II square estimation (LSE) usually are not available for microgrid
of Zone 1 and Zone 2 of the downstream relays, respectively. protection. When a fault occurs, the operators in workstation often
To ensure the protection selectivity, the delay settings of time- have to retrieve the on-field measurements manually or even go to
stepped distance relays are set at 0.35 s for Zone2 and 0.7 s for the site. Meanwhile, the variable connection states of DGs in the
Zone3, respectively. The pickup time of the relay is set to 20 ms. network influence the selectivity of protection. Another
The calculated protective settings for grid-connected radial mode phenomenon may rise in power grids that some mobile DERs and
with full DGs connection are shown in Fig. 8. The test of the electric vehicles (EVs) are connected to the grid as DGs with a
distance protection can be found in [7, 28]. For extreme fault cases feature of changing the operating modes among generators, loads,
in power grids, overcurrent protection, distance protection, and/or and compensation equipment on some locations sometime. The
differential protection can be activated together in modern relays, above mentions require an alternative approach to recognise the
e.g. the overcurrent protection can be used as the backup protection state of downstream network and make decision automatically for a
computer-based control system. As the huge historical and/or
774 IET Gener. Transm. Distrib., 2019, Vol. 13 Iss. 6, pp. 770-779
© The Institution of Engineering and Technology 2019
Fig. 10 Simple ANN illustration
IET Gener. Transm. Distrib., 2019, Vol. 13 Iss. 6, pp. 770-779 775
© The Institution of Engineering and Technology 2019
M D around 80%, while they are higher for Line12, Line 56, and
∑w ∑w (14)
(2) (1)
yk(x, w) = f kj
h ji
xi Line16. In the first scenario, the diagnosis model cannot identify
j=0 i=0 all the faults in the microgrid. It indicates that measurements on
bus2, bus3, or bus4, which is inside the microgrid, may be
where h(.) is the differentiable, non-linear activation functions. D necessary to improve the estimation accuracy. Therefore, the
and M are the numbers of neurons on different layers. enhanced decision-making is necessary for the system to main the
Back propagation learning rule is adopted to adjust the weights reliable operation. For comparison, the ANN model is trained again
and biases [25]. The problem of finding a suitable architecture and with full measurements from all the six buses. The accuracy is
the corresponding weights of the network is of central importance shown in Table 4. It can be found that the accuracy keeps at 100%
in the area of training ANNs. (with 0 error) for different hidden layers since the measurements
Used as a classification model, the ANN model in the scheme (from all buses) used in this case implicate the direction for a fault
has seven outputs with relevant labels to represent the six power on each feeder, which is similar as the absolute selectivity of the
lines (line12, line23, line34, line45, line56, and line16) and no differential protection. Moreover, the comparison results of the test
fault. The input neurons for ANN Model are the measurements show that the performance of the learning-based models can keep
(voltage and current) on different buses. The number of hidden being improved with the increasing measurements and the relevant
neurons is set as 64, while the number of training epochs is set as data.
1000.
Concerning the input neurons, two cases are considered for
4.3 SVM model for fault location
comparison (the overdetermined set of measurements is available
or not): only measurements from bus1 and bus6 are available, and Used as a regression model in the scheme, the SVM model outputs
full measurements from the six buses (bus1, bus2, bus3, bus4, the estimated fault location on the power line. SVM is a supervised
bus5, and bus6) are available. If the measurements from bus1 to learning method for a linear model, while it performs well for non-
bus6 are available for training (the worst condition), the average linear problems by using kernel trick. With the basis function φ(x),
accuracy of ANN for all test cases is 90.3%, while the confusion the input vector x in SVM is mapped into a higher D-dimensional
matrix (error matrix) is given in Table 3. Each column of the feature space [29]. The output y(x) in the high-dimensional space is
confusion matrix represents the instances in an actual class. The defined as (15):
accuracy of ANN is shown in Fig. 12. From Table 3 and Fig. 12, it
can be found that the accuracies of Line23, Line34, and Line45 are
Table 3 Confusion Matrix of ANN with limited measurements only from bus1 and bus6
Line12 Line23 Line34 Line45 Line56 Line16 No-fault Accuracy, %
line12 5171 29 245 2 3 0 0 94.9
line23 81 4714 591 25 34 0 0 86.5
line34 237 808 4237 134 17 0 0 77.5
line45 0 86 619 4353 348 0 0 80.5
line56 0 0 192 139 4981 32 0 93.2
line16 0 0 0 0 0 5359 0 100
no-fault 0 0 0 0 0 0 5327 100
776 IET Gener. Transm. Distrib., 2019, Vol. 13 Iss. 6, pp. 770-779
© The Institution of Engineering and Technology 2019
Table 5 Error of SVM
Line 12 Line 23 Line 34 Line 45 Line 56 Line 16
test error 0.24% 0.31% 0.57% 0.44% 0.16% 0.1%
n
∑ (λi − λ′i) = 0
i=1
(21)
0 ≤ λi ≤ C
0 ≤ λ′i ≤ C
IET Gener. Transm. Distrib., 2019, Vol. 13 Iss. 6, pp. 770-779 777
© The Institution of Engineering and Technology 2019
Fig. 14 IEEE 9 bus model
The collected data (11 × 11 × 5 × 5 × 5 × 6lines = 90,750) are improved with various new coming data and knowledge, which is
used to train the ANN and SVM model. 144 hidden layers and 500 also the excellent advantage of machine learning. In practical
training epochs are set for ANN. There are seven outputs in ANN, application, massive variables and scenarios can be performed with
which are fault on line1, line2, line3, line4, line5, line6, and no certain accuracy in computers/machines for self-learning and/or
fault. The error of ANN models with different collected data as the self-training. With the development of technology, the proposed
inputs is given in Table 6. It can be found that the accuracy of methodology may play a role in protection and control systems in
ANN used data only from Bus4-7-9 is better than Bus5-6-8 due to future smart grid.
the connection of branch line and transformer on Bus4-7-9. It
implies the measurements from Bus4-7-9 contain more information 5 Conclusion
for the state recognition. The error of ANN for case ‘all busses’ is
0, because the used data are ideal without corruption for training Here, we proposed a rule-based adaptive protection scheme
and testing ANN. On the other hand, C = 1000, ε = 0.02 is set for combined with machine-learning methodology for microgrids. The
SVMs in this test, while the output is the estimated fault location correlation between the uncertain elements and the short-circuit
for the specific lines. As is shown in Table 7, all SVM models with measurements was analysed quantitatively by Pearson correlation
different measurements data work well with small errors. From the coefficients from a statistic view. The results reveal that the
test results, it can be found the ANN-SVM model can also operating states and topology influence the short-circuit
recognise the states accurately for transmission systems. Moreover, measurements and stability of the system significantly. An ANN-
it shows that the ANN-SVM model can still work well with SVM diagnosis model was integrated into the adaptive protection
enhanced decision-making when the overdetermined equations are scheme for state recognition in DA to extract and utilise the
not available for LSE. information and knowledge from the growing massive data streams
The paper utilises data mining technology first to extract the in power system. For reliable operation and system resilience,
meaningful information and knowledge in the electrical system, reconfiguration can be performed automatically and intelligently to
then the learning-based model is trained and integrated into the change the topology of the network and update the protective
automatic protection and control system. It undergoes a process settings. With the assistance of machine learning, this paper has
from huge data to meaningful information to final intelligence. The showed that the adaptive protection scheme can modify the settings
proposed methodology requires the original data (or prior properly and intelligently for different operating situations. At the
knowledge) to hold the accuracy to avoid the subsequent influence same time, the integrated adaptive protection system enables
on the final results. Some data processes may be required before accurate information for further intelligent operation/control in
the practical application. In case of data corruption, some smart grid and energy internet, which has a ‘self-learning’ and
additional countermeasures should be considered. For other diverse ‘self-training’ capability.
fault or event types, the data can be obtained in a similar way from
precise simulation or historical database in a system. It should be 6 References
emphasised that the machine-learning-based model can work
[1] Lasseter, R.H.: ‘Microgrids’. Power Engineering Society Winter Meeting,
together with the other mathematical models (LSE etc.) to improve New York, NY, USA, 2002, vol. 1
the accuracy and compatibility. In the specific situations, the [2] Hengwei, L., Chengxi, L., Guerrero, J.M., et al.: ‘Modular power
operators can also intervene the automatic process to maintain the architectures for microgrid clusters’. Green Energy, Sfax, Tunisia, 2014, pp.
reliable operation. The performance of ANN-SVM can keep being 199–206
778 IET Gener. Transm. Distrib., 2019, Vol. 13 Iss. 6, pp. 770-779
© The Institution of Engineering and Technology 2019
[3] Anderson, P.M.: ‘Power system protection’ (Wiley, New York, 1999), pp. [17] Haughton, D.A., Heydt, G.: ‘A linear state estimation formulation for smart
201–240 distribution systems’, IEEE Trans. Power Syst., 2013, 28, (2), pp. 1187–1195
[4] Anthony, M.A.: ‘Electric power system protection and coordination’ [18] Mirsaeidi, S., Said, D.M.: ‘A protection strategy for micro-grids based on
(McGraw-Hill, New York, 1995), pp. 342–346 positive-sequence component’, IET Renew. Power Gener., 2015, 9, pp. 600–
[5] Blackburn, J.L.: ‘Protective relaying principles and applications’ (Marcel 609
Dekker, New York, 1998), pp. 383–408 [19] Hengwei, L., Guerrero, J.M., Chenxi, J.: ‘Adaptive overcurrent protection for
[6] Jayawarna, N., Jenkins, N., Barnes, M., et al.: ‘Safety analysis of a microgrids in extensive distribution systems’. 42nd Annual Conf. of the IEEE
microgrid’. Future Power Systems, Amsterdam, Netherlands, 2005 Industrial Electronics Society (IECON2016), Italy, Florence, October 2016,
[7] Hengwei, L., Chengxi, L., Guerrero, J.M., et al.: ‘Distance protection for pp. 4042–4047
microgrids in distribution system’. 41st Annual Conf. of the IEEE Industrial [20] Joe-Air, J., Jun-Zhe, Y., Ying-Hong, L., et al.: ‘An adaptive PMU based fault
Electronics Society (IECON2015), Japan, Yokohama, November 2015, pp. detection/location technique for transmission lines. I. Theory and algorithms’,
731–736 IEEE Trans. Power Deliv., 2000, 15, pp. 486–493
[8] Dewadasa, M.: ‘Protection for distributed generation interfaced networks’. [21] Joe-Air, J., Ying-Hong, L., Jun-Zhe, Y., et al.: ‘An adaptive PMU based fault
PhD thesis, Dept. Electrical Engineering, Faculty of Built Environment and detection/location technique for transmission lines. II. PMU implementation
Engineering, Queensland University of Technology, Australia, 2010 and performance evaluation’, IEEE Trans. Power Deliv., 2000, 15, pp. 1136–
[9] Dewadasa, M., Majumder, R., Ghosh, A., et al.: ‘Control and protection of a 1146
microgrid with converter interfaced micro sources’. Third Int. Conf. on Power [22] Cannas, B., Celli, G., Marchesi, M., et al.: ‘Neural networks for power system
Systems, Kharagpur, India, 2009, pp. 1–6 condition monitoring and protection’, Neuro Comput., 1998, 23, pp. 111–123
[10] Nikkhajoei, H., Lasseter, R.H.: ‘Microgrid fault protection based on [23] Tan, Z.-H.: ‘Hybrid evolutionary approach for designing neural networks for
symmetrical and differential current components’. Power System Engineering classification’, IEE Electron. Lett., 2004, 40, (15), pp. 955–957
Research Center, 2006 [24] Saha, M.M., Izykowski, J.J., Rosolowski, E.: ‘Fault location on power
[11] Rockefeller, G.D., Wagner, C.L., Linders, J.R., et al.: ‘Adaptive transmission networks’ (Springer Science & Business Media, Springer-Verlag, London,
relaying concepts for improved performance’, IEEE Trans. Power Deliv., UK, 2009), pp. 395–399
1988, 3, pp. 1446–1458 [25] Bishop, C.: ‘Pattern recognition and machine learning’ (Springer, UK, 2006),
[12] Brahma, S.M., Girgis, A.A.: ‘Development of adaptive protection scheme for pp. 232–240
distribution systems with high penetration of distributed generation’, IEEE [26] Benesty, J., Chen, J., Huang, Y.: ‘Pearson correlation coefficient’, ‘Noise
Trans. Power Deliv., 2004, 19, pp. 56–63 reduction in speech processing’ (Springer, Berlin, Heidelberg, 2009), pp. 1–4
[13] Dhar, S., Dash, P.K.: ‘Differential current-based fault protection with adaptive [27] Chattopadhyay, B., Sachdev, M.S., Sidhu, T.S.: ‘An on-line relay coordination
threshold for multiple PV-based DC microgrid’, IET Renew. Power Gener., algorithm for adaptive protection using linear programming technique’, IEEE
2017, 11, pp. 778–790 Trans. Power Deliv., 1996, 11, pp. 165–173
[14] Kar, S., Samantaray, S.R.: ‘Time-frequency transform-based differential [28] Hengwei, L., Guerrero, J.M., Vasquez, J.C., et al.: ‘Adaptive distance
scheme for microgrid protection’, IET Gener. Transm. Distrib., 2014, 8, pp. protection for microgrids’. 41st Annual Conf. of the IEEE Industrial
310–320 Electronics Society (IECON2015), Japan, Yokohama, November 2015, pp.
[15] Oudalov, A., Fidigatti, A.: ‘Adaptive network protection in microgrids’, Int. J. 725–730
Distrib. Energy Res., 2009, pp. 201–226 [29] Salat, R., Osowski, S.: ‘Accurate fault location in the power transmission line
[16] Mahat, P., Zhe, C., Bak-Jensen, B., et al.: ‘A simple adaptive overcurrent using support vector machine approach’, IEEE Trans. Power Syst., 2004, 19,
protection of distribution systems with distributed generation’, IEEE Trans. pp. 979–986
Smart Grid, 2011, 2, pp. 428–437
IET Gener. Transm. Distrib., 2019, Vol. 13 Iss. 6, pp. 770-779 779
© The Institution of Engineering and Technology 2019