Abstract
Smart networks such as active distribution network (ADN) and microgrid (MG) play an important role in power system operation. The design and implementation of appropriate protection systems for MG and ADN must be addressed, which imposes new technical challenges. This paper presents the implementation and validation aspects of an adaptive fault detection strategy based on neural networks (NNs) and multiple sampling points for ADN and MG. The solution is implemented on an edge device. NNs are used to derive a data-driven model that uses only local measurements to detect fault states of the network without the need for communication infrastructure. Multiple sampling points are used to derive a data-driven model, which allows the generalization considering the implementation in physical systems. The adaptive fault detector model is implemented on a Jetson Nano system, which is a single-board computer (SBC) with a small graphic processing unit (GPU) intended to run machine learning loads at the edge. The proposed method is tested in a physical, real-life, low-voltage network located at Universidad del Norte, Colombia. This testing network is based on the IEEE 13-node test feeder scaled down to 220 V. The validation in a simulation environment shows the accuracy and dependability above 99.6%, while the real-time tests show the accuracy and dependability of 95.5% and 100%, respectively. Without hard-to-derive parameters, the easy-to-implement embedded model highlights the potential for real-life applications.
TECHNOLOGICAL advances in non-conventional energy sources have enabled high penetration of distributed energy resources (DERs) in modern power systems. In recent years, concepts such as active distribution network (ADN) and microgrid (MG) have been introduced to address the technological challenges imposed by such developments [
ADNs are networks with a high penetration of distributed generation (DG) and capabilities of automation and control [
Both MGs and ADNs facilitate operational goals, as to reduce power losses and improve voltage profile [
The solutions to adaptive system protection can be classified according to their functionality. Two approaches are highlighted: fault detector and fault coordination. The first one considers an event-based system, where the operation is initialized when a state of fault is detected by an intelligent electronic device (IED). The second one, otherwise, detects a state of fault while supporting neighboring devices through backup protection [
Recently, the solutions to adaptive system protection based on artificial intelligence (AI) models have been presented. These solutions show outstanding performance in simulated environments [
Among the solutions of adaptive system protection based on AI, [
This paper presents the implementation and validation aspects of a fault detection solution of adaptive system protection based on AI models embedded on a physical-edge device. The solution uses only local observations, voltage, and current signals on the physical-edge device to detect network faults. The main contributions of this work towards the state-of-the-art are as follows.
1) Formulation of an autonomous adaptive fault detection solution based on AI models and multiple sampling points.
2) Real-life implementation and validation aspects of adaptive fault detection formulation on an edge device.
The remaining of this paper is organized as follows. Section II presents the main technical challenges of system protection of ADN and MG. Section III describes the adaptive fault detector embedding based network model. Section IV presents the experimental setup for the case study. Section V presents the test results and the discussion. Finally, Section VI presents the conclusion.
The integration of high penetration of DER with control and automation functionalities in ADNs and MGs makes the system protection more complex. DER connection changes the typical operational characteristics of conventional distribution networks, and classical protection strategies are no longer efficient and reliable. As a result, new protection strategies have been proposed recently [
High penetration of DER changes one of the main characteristics of conventional distribution networks: the presence of a unidirectional power flow. With DER integration, the power flow is bidirectional. The classical protection device used in distribution networks does not consider bidirectional flow, which can affect the selectivity of the system [
Additionally, high-power injection variance in the primary renewable source of the DER may impose DER connection and disconnection at some intervals during the day. All these changes in the operation of the ADNs and MGs cause significant variations in short-circuit levels, which are traditionally used to determine the settings of the protection devices. Therefore, selecting a setting that considers these variations is a complex task, and some designs can be infeasible with classical protection strategies [
The main implementation challenges to the protection strategies are related to the method used. When the fault detection is based on ML models, there are relevant challenges to consider such as decision speed and accuracy [
Decision speed relates to the hardware requirements to run the ML models at acceptable response time levels for the protection task. This includes the processing time and estimation of the attributes according to the inputs required by the ML models. Other relevant aspects are the sampling rate, processing capacity, and speed to process the information.
True accuracy indicates the performance of ML models in real-time application. For models obtained from synthetic databases such as the fault detection techniques proposed in [
The adaptive fault detector is based on an AI model and can operate at both terminals of a three-phase distribution line. The method uses an IED that measures the voltage and current signal to differentiate between a fault state and a no-fault state in the ADN or MG.
The adaptive fault detector contains six data processing steps grouped into two categories. The first category includes offline data processing steps, while the second category includes the online steps. The offline data processing steps have the goal of training and validating the adaptive fault detector model. The objective of the online steps is to estimate the faults in real time. The data processing steps are explained in detail in the following subsections.
The main bottleneck to obtain a suitable database from a real ADN or MG is gathering fault-condition data. This can involve either: continuous monitoring towards recording infrequently occurring faults or introducing faults to speed up data collection, both of which can be time-consuming or unfeasible. A synthetic (simulated) database, if well modeled, can be a suitable solution to train the adaptive fault detector model. The last one is the method considered in this paper. Hence, an electromagnetic transient (EMT) software is used to generate synthetic faults under no-fault states. The pseudo-code presented in
The goal of the proposed method is to protect the three-phase section connected to the IED. Also, it protects the three-phase section lines adjacent to itself.

Fig. 1 Protection zone for a particular IED in a distribution network.
If we focus on IED1, located between N1 and N2, it is possible to observe that this device will protect the lines between the following nodes: N1-N2, N2-N3, and N2-N6. IED1 protects the area delimited by the dotted red line. The faults located outside the protection zone will be considered as no-fault states for the model running on IED1. The stages associated with Step 2 are explained in detail as follows.
The main criteria to select the features used in the classifier are calculation simplicity and prediction accuracy. Voltage and current signals measured at the location of the IED are considered.
Here, an NN model is used to train the adaptive fault detector. The NN is fitted as a binary classifier that chooses between a fault state or a no-fault state. This procedure will be executed until the predefined maximum number of iterations is reached.
Thus, the number of features presented in
Once the features have been selected, they must be processed. In the proposed method, this is done by the fast Fourier transform (FFT) applied to one cycle of the signal. For the synthetic database obtained from simulation, we can determine a priori the fault inception instant, where the operating states change from no-fault state to fault state. However, in a physical system, under real operating states, this instant is unpredictable. For this reason, the proposed method includes a new metric that introduces the uncertainties in current and voltage signals into the synthetic database. This metric is named multiple sampling.

Fig. 2 Analysis of multiple sampling for a fault operating state.
The fault detection model must use the database obtained in stage 2. However, the data needs to be preprocessed, which consists of two operations: standardization and randomization. These operations are executed according to the description in [
Mean vectors and standard deviation matrices are also computed. In this paper, these values are used to perform the standardization of input data during both training and inference.
In this stage, 80% of the available database is used to train the fault detector model while the remaining 20% of the available database is put aside for validation [
The main goal of this stage is to obtain the adaptive fault detector model for the chosen IED. Here, the proposed method uses a multilayer NN model to detect fault states in the ADN or MG, as presented in [
(1) |
where and are the weight parameters; is the number of neurons in the hidden layer; and and are the activation functions. The most commonly used activation functions are logistic sigmoid, hyperbolic tangent, and radial basis function (RBF) [
In this step, the fault detector model is validated. As mentioned previously, 20% of the available database is reserved for validation. Two performance indicators are used to assess the performance of the model: accuracy ACC and dependability DP as defined in (2) and (3).
(2) |
(3) |
where TNF is the number of operating states correctly predicted as no-fault; TF is the number of operating states correctly predicted as a fault; FNF is the number of operating states wrongly predicted as no-fault; and TNS is the total number of scenarios simulated.
In this step, the NN model is tuned according to the combination of features and hyperparameters. If the current iteration is smaller than the maximum number of iterations, the methodology must propose a strategy to modify the combination of features and hyperparameters. The adjustment strategy is made according to [
The presented AI model requires current and voltage signals at the IED location. The observation is preprocessed by a dedicated acquisition module adjusted for a sampling rate between 32-128 samples per cycle. The data are framed into a window equal to one cycle.
The samples are processed by an FFT and then standardized using mean and standard deviation values from Step 2.
In this step, the adaptive fault detection model is embedded into a single-board computer (SBC), which is appropriate to perform real-time inference with AI models. A Jetson Nano board is used in this step. The final model is set after accomplishing the maximum number of iterations in Step 2 to Step 4.

Fig. 3 Adaptive fault detector model on edge device.
The adaptive fault detector model is tested in the ADN laboratory of the College of Engineering at Universidad del Norte (Uninorte), Colombia. This network is based on the IEEE 13-node test feeder scaled down to 220 V. The IEEE 13-node test feeder presents an unbalanced operation characteristic and topology with different lateral types [

Fig. 4 ADN laboratory at Uninorte.
The offline test includes Steps 1 to 4 from Section III.
The EMT software used to obtain the database is the Power Factory Digsilent [
Three case studies are considered in the offline test with the main goal of highlighting the contributions of the method to improve the accuracy and protection responses in a physical system. The first case considers a fault detection model without multiple sampling. The second case includes multiple sampling. However, the model does not consider feature selection and the tuning of NN model. The third case presents a fault detection model with multiple sampling, feature selection, and tuning of NN model.
For the first and second cases, the NN is set up as follows: input features as listed in
The online test includes Steps 5 and 6 from Section III. The adaptive fault detector model obtained from the offline test is validated in real time using the ADN laboratory at Uninorte. The experimental conditions for the implementation of the NN model are as follows.
1) The acquisition module is an SEL 751 relay, which performs signal acquisition and pre-processing. It is also in charge of sending the trip signal to the circuit breaker when a fault state is detected.
2) The SBC is a Jetson Nano running the NN model. Modbus TCP/IP protocol is used for the communication between the relay and the Jetson. Appendix A Fig. A1 illustrates the physical assembly for the test, which is at the head of the test system between nodes N650 and N632 in the ADN laboratory at Uninorte.
Due to the high effort required to reproduce every fault and no-fault states in the ADN laboratory at Uninorte, it is necessary to select some relevant operating states. Tables
Similarly,
The offline test validation for the adaptive fault detector model is made at three different lines of the ADN laboratory at Uninorte: lines containing N650-N632, lines containing N632-N633, and lines containing N632-N671.
It can be observed that multiple samplings result in a dramatic improvement in the performance of the models, even with default hyperparameter values. The average accuracy and dependability of the three IEDs are now 99.78% and 97.11%, respectively. This shows a 50% increase in the average accuracy and an 80% increase in the average dependability concerning the first case.
Table VIII shows the combination of features and hyperparameters obtained once the tuning strategy is applied, which is described in case 3 from Section IV-A. Additionally,
The final average accuracy and dependability of the three IEDs increase to 99.95% and 99.43%, respectively. The main improvement is on the average dependability, with an increase of 2% with respect to the second case.
The online test analyzes the behavior of the IED located between N650 and N632. The model is embedded into the SBC board and connected to the ADN laboratory at Uninorte to reproduce the operating states proposed in
Considering
Figures

Fig. 5 No-fault state without DG connected. (a) Sa. (b) Za. (c) Ia. (d) Trip signal.

Fig. 6 No-fault state with DG connected. (a) Sa. (b) Va. (c) . (d) Trip signal.

Fig. 7 Fault state with a three-phase fault in N632 and a resistance of 40 . (a) Sa. (b) Va. (c) Ia. (d) Trip signal.

Fig. 8 Fault state with a single-phase (phase a) fault in N671 and a resistance of . (a) Ia. (b) Ib. (c) Va. (d) Trip signal.
This paper describes an adaptive fault detector based on NN model running on an edge device for ADN and MG system protection. The proposed method uses a local protection strategy where each device is responsible for detecting the faults over its three-phase section lines and their immediately adjacent lines. The method uses voltage and current observations as inputs to the AI model and trains an artificial NN model embedded into an SBC for real-time fault detection in a physical system. The proposed method shows the results considering the effect of several operating conditions such as cut-off generation, change of topology, voltage unbalance, and different fault conditions. Besides, the training process uses a multiple sampling factor to improve the robustness in fault detection. The NN model decides to trip the protection device in just one signal cycle. The method highlights the value of considering multiple samplings in the training of the fault detection model for physical implementation, where the results show an increase in the average accuracy and dependability of 50% and 80%, respectively, with respect to the same models trained without multiple samplings. Simulation-based testing shows the results with an accuracy of 99.5% and dependability of 99.5% for the fault detector model with feature selection and tuning of NN model. Final online tests are made in physical ADN. The results show the effectiveness and robustness of the adaptive detection model with an accuracy of 95% and dependability of 100%. Test results, together with an easy-to-implement embedded model, indicate the potential of the method for real-life applications.
J. C. Velez received the B.S. and M.S. degrees in radio electronic systems from the O. S. Popov Odessa National Academy of Telecommunications, Odessa, Ukraine, in 1994, and the Ph.D. degree from the Moscow Power Engineering Institute, Moscow, Russia, in 2004. He is currently a Titular Professor with the Electrical and Electronics Engineering Department, Universidad del Norte, Barranquilla, Colombia. His research interests include radio electronic systems, remote sensing, digital signal processing, and stochastic processing.
References
M.-G. Choi, S.-J. Ahn, J.-H. Choi et al., “Adaptive protection method of distribution networks using the sensitivity analysis for changed network topologies based on base network topology,” IEEE Access, vol. 8, pp. 148169-148180, Aug. 2020. [Baidu Scholar]
S. Chowdhury, S. P. Chowdhury, and P. Crossley, Microgrids and Active Distribution Networks. London: Institution of England Technology, 2009. [Baidu Scholar]
N. Hatziargyriou, Microgrids: Architectures and Control. New York:Wiley, 2014. [Baidu Scholar]
L. Mariam, M. Basu, and M. F. Conlon, “Microgrid: architecture, policy and future trends,” Renewable and Sustainable Energy Review, vol. 64, pp. 477-489, Oct. 2016. [Baidu Scholar]
A. Monti, F. Milano, E. Bompard et al., Converter-based Dynamics and Control of Modern Power Systems. Cambridge: Academic Press, 2020. [Baidu Scholar]
S. A. Gopalan, V. Sreeram, and H. H. C. Iu, “A review of coordination strategies and protection schemes for microgrids,” Renewable and Sustainable Energy Review, vol. 32, pp. 222-228, Apr. 2014. [Baidu Scholar]
T. S. Ustun, C. Ozansoy, and A. Zayegh, “Modeling of a centralized microgrid protection system and distributed energy resources according to IEC 61850-7-420,” IEEE Transactions on Power Systems, vol. 27, no. 3, pp. 1560-1567, Feb. 2012. [Baidu Scholar]
A. A. Memon and K. Kauhaniemi, “An adaptive protection for radial AC microgrid using IEC 61850 communication standard: algorithm proposal using offline simulations,” Energies, vol. 13, no. 20, p. 5316, Aug. 2020. [Baidu Scholar]
T. S. S. Senarathna and K. T. M. U. Hemapala, “Review of adaptive protection methods for microgrids,” AIMS Energy, vol. 7, no. 5, pp. 557-578, Sept. 2019. [Baidu Scholar]
P. Mahat, Z. Chen, B. Bak-Jensen et al., “A simple adaptive overcurrent protection of distribution systems with distributed generation,” IEEE Transactions on Smart Grid, vol. 2, no. 3, pp. 428-437, Jun. 2011. [Baidu Scholar]
J. Yu, Y. Hou, A. Y. S. Lam et al., “Intelligent fault detection scheme for microgrids with wavelet-based deep neural networks,” IEEE Transactions on Smart Grid, vol. 10, no. 2, pp. 1694-1703, Nov. 2019. [Baidu Scholar]
S. Rahman, S. K. Sarker, S. M. Muyeen et al., “A deep learning based intelligent approach in detection and classification of transmission line faults,” International Journal of Electric Power Energy System, vol. 133, p. 107102, Jan. 2021. [Baidu Scholar]
A. Draz, M. M. Elkholy, and A. A. El, “Soft computing methods for attaining the protective device coordination including renewable energies: review and prospective,” Archives of Computational Methods in Engineering, vol. 28, no. 7, pp. 4383-4404, Dec. 2021. [Baidu Scholar]
J. Marin-Quintero, C. Orozco-Henao, W. S. Percybrooks et al., “Toward an adaptive protection scheme in active distribution networks: intelligent approach fault detector,” Applied Soft Computing, vol. 98, p. 106839, Jan. 2021. [Baidu Scholar]
J. Marín-Quintero, C. Orozco-Henao, J. C. Velez et al., “Micro grids decentralized hybrid data-driven cuckoo search based adaptive protection model,” International Journal of Electric Power & Energy Systems, vol. 130, p. 106960, Jan. 2021. [Baidu Scholar]
C. Cepeda, C. Orozco-Henao, W. Percybrooks et al., “Intelligent fault detection system for microgrids,” Energies, vol. 13, no. 5, pp. 1-21, Jan. 2020. [Baidu Scholar]
S. Kar, S. R. Samantaray, and M. D. Zadeh, “Data-mining model based intelligent differential microgrid protection scheme,” IEEE Systems Journal, vol. 11, no. 2, pp. 1161-1169, Jan. 2017. [Baidu Scholar]
K. Saleh and A. Ayad, “Fault zone identification and phase selection for microgrids using decision trees ensemble,” International Journal of Electric Power & Energy Systems, vol. 132, p. 107178, Oct. 2021. [Baidu Scholar]
D. P. Mishra, S. R. Samantaray, and G. Joos, “A combined wavelet and data-mining based intelligent protection scheme for microgrid,” IEEE Transactions on Smart Grid, vol. 7, no. 5, pp. 2295-2304, Oct. 2016. [Baidu Scholar]
B. Patnaik, M. Mishra, R. C. Bansal et al., “MODWT-XGBoost based smart energy solution for fault detection and classification in a smart microgrid,” Applied Energy, vol. 285, p. 116457, Jan. 2021. [Baidu Scholar]
Y. Naitmalek, M. Najib, M. Bakhouya et al., “Embedded real-time battery state-of-charge forecasting in micro-grid systems,” Ecological Complexity, vol. 45, p. 100903, Nov. 2021. [Baidu Scholar]
E. Principi, D. Rossetti, S. Squartini et al., “Unsupervised electric motor fault detection by using deep autoencoders,” IEEE/CAA Journal of Automatica Sinica, vol. 6, no. 2, pp. 441-451, Feb. 2019. [Baidu Scholar]
H. Li, G. Hu, J. Li et al., “Intelligent fault diagnosis for large-scale rotating machines using binarized deep neural networks and random forests,” IEEE Transactions on Automation Science and Engineering, vol. 19, no. 2, pp. 1-11, Apr. 2021. [Baidu Scholar]
G. Burt and F. C. C. B. A. Dys, “Quantitative analysis of network protection blinding for systems incorporating distributed generation,” IET Generation, Transmission & Distribution, vol. 6, pp. 1218-1224, Jan. 2012. [Baidu Scholar]
S. Amir, H. Askarian, S. Hossein et al., “An overview of microgrid protection methods and the factors involved,” Renewable and Sustainable Energy Reviews, vol. 64, pp. 174-186, Oct. 2016. [Baidu Scholar]
K. Zheng and M. Xia, “Impacts of microgrid on protection of distribution networks and protection strategy of microgrid,” in Proceedings of 2011 International Conference on Advanced Power System Automation and Protection, Beijin, China, Apr. 2011, pp. 356-359. [Baidu Scholar]
F. Mumtaz and I. S. Bayram, “Planning, operation, and protection of microgrids: an overview,” Energy Procedia, vol. 107, pp. 94-100, Sept. 2017. [Baidu Scholar]
H. F. Zhai, M. Yang, B. Chen et al., “Dynamic reconfiguration of three-phase unbalanced distribution networks,” International Journal of Electric Power & Energy Systems, vol. 99, pp. 1-10, Dec. 2018. [Baidu Scholar]
S. K. Bhattacharya and S. K. Goswami, “Distribution network reconfiguration considering protection coordination constraints,” Electric Power Components and Systems, vol. 36, no. 11, pp. 1150-1165, Mar. 2008. [Baidu Scholar]
F. Aminifar, S. Teimourzadeh, A. Shahsavari et al., “Machine learning for protection of distribution networks and power electronics-interfaced systems,” The Electricity Journal, vol. 34, no. 1, p. 106886, Jan. 2021. [Baidu Scholar]
H. Khalid and A. Shobole, “Existing developments in adaptive smart grid protection: a review,” Electric Power Systems Research, vol. 191, p. 106901, Jun. 2021. [Baidu Scholar]
M. Alonso, H. Amaris, and D. Alcala, “Smart sensors for smart grid reliability,” Sensors, vol. 20, no. 8, pp. 1-23, Apr. 2020. [Baidu Scholar]
M. A. Shahin, H. R. Maier, and M. B. Jaksa, “Data division for developing neural networks applied to geotechnical engineering,” Journal of Computing in Civil Engineering, vol. 18, pp. 105-114, Apr. 2004. [Baidu Scholar]
C. M. Bishop, Pattern Recognition and Machine Learning. New York: Springer, 2006. [Baidu Scholar]
C. Orozco-Henao and J. Marín-Quintero, “Active distribution networks laboratory: a case of experiments in power quality,” in Proceedings of 4th International IEEE Workshop on Power Electronics and Power Quality Applications, Manizalez, Colombia, Jun. 2019, pp. 1-6. [Baidu Scholar]
W. H. Kersting, Distribution System Modeling and Analysis. Boca Raton: CRC press, 2002. [Baidu Scholar]
Pérez-Londoño, S. Garcés, A. Bueno-López et al. (2020, Jan.). Components modelling in AC microgrids. [Online]. Available: https://doi.org/https://doi.org/10.22517/97895 [Baidu Scholar]
User Manual Powerfactory v15.0, DIgSILENT GmbH, Germany, 2013. [Baidu Scholar]
L. Castro, M. F. B. López, M. Á. R. Ocampo et al. (2021, Jun.). Control jerárquico en micro-redes AC. [Online]. Available: https://hdl.handle.net/11059/13701 [Baidu Scholar]