Skip to main content
  • Original research
  • Open access
  • Published:

A new protection scheme for PV-wind based DC-ring microgrid by using modified multifractal detrended fluctuation analysis


This paper presents fault detection, classification, and location for a PV-Wind-based DC ring microgrid in the MATLAB/SIMULINK platform. Initially, DC fault signals are collected from local measurements to examine the outcomes of the proposed system. Accurate detection is carried out for all faults, (i.e., cable and arc faults) under two cases of fault resistance and distance variation, with the assistance of primary and secondary detection techniques, i.e. second-order differential current derivative \(\left( {\frac{{d^{2} I_{3} }}{{dt^{2} }}} \right)\) and sliding mode window-based Pearson’s correlation coefficient. For fault classification a novel approach using modified multifractal detrended fluctuation analysis (M-MFDFA) is presented. The advantage of this method is its ability to estimate the local trends of any order polynomial function with the help of polynomial and trigonometric functions. It also doesn’t require any signal processing algorithm for decomposition resulting and this results in a reduction of computational burden. The detected fault signals are directly passed through the M-MFDFA classifier for fault type classification. To enhance the performance of the proposed classifier, statistical data is obtained from the M-MFDFA feature vectors, and the obtained data is plotted in 2-D and 3-D scatter plots for better visualization. Accurate fault distance estimation is carried out for all types of faults in the DC ring bus microgrid with the assistance of recursive least squares with a forgetting factor (FF-RLS). To verify the performance and superiority of the proposed classifier, it is compared with existing classifiers in terms of features, classification accuracy (CA), and relative computational time (RCT).

1 Introduction

In recent years, there have been many studies on the integration of renewable energy sources (RESs), such as photovoltaic systems (PV), wind turbines (WT), tidal, hydro, etc. Among these RESs, PV and WT are the most preferred because of their abundant availability in nature [1, 2]. Many developed and developing countries in the world are increasing their power generation with the RESs. In power distribution networks, modern technologies in power electronic devices make the integration of RESs with microgrids more flexible. Based on the connection of equipment types, networks in the microgrid can be AC, DC, or both [3]. In the present era, DC microgrids have attracted significant attention because of their advantages compared to AC microgrids in terms of low transmission losses, active and reactive power control, reliability, economical operation, power transfer capacity, eco-friendliness, and simpler monitoring [1,2,3,4].

The major challenges in the DC microgrid are fault protection (i.e., detection and isolation) and location. Different possibilities of faults in the DC distribution network are Pole-Pole (P-P), Positive Pole-Ground (P-P-G), Negative Pole-Ground (N-P-G), Series arc and Shunt arc faults [1]. Generally, DC cables offer low impedance in the fault scenario and as a result the rate of rise of the fault current is very high [3,4,5]. To protect the DC microgrid from these currents, different protection schemes have been introduced. Reference [6] discusses a differential protection scheme where a high bandwidth communication channel to transmit the signals is required together with a backup protection scheme. In this scenario the cost and complexity of the grid is increased. Other issues with the differential protection schemes are the effect of distributed capacitance, especially in high voltage DC microgrids, and change in the penetration level of RESs changing the threshold values and as a result making it unable to synchronize with the utility grid [2, 4]. To compensate for these issues, references [7,8,9] propose an improved threshold-based, modified and discrete time frame for the differential protection scheme, which is time–frequency based with the assistance of variational mode (VMD) and HHT combination. An over-current protection scheme can easily detect the pole to ground fault at high resistance but itis unable to classify different fault types that occur in the DC microgrid. It also requires high-speed sensing devices [10, 11].

Line current derivative protection schemes have been discussed for different faulty sections of bus voltages, wind speed variations and fault clearing time etc., but this method is unable to distinguish different kinds of faults and also needs communication devices [12]. In [13, 14], various faults in the DC microgrid are classified with the help of relay coordination. However, it requires adjacent relays for coordination of signals. References [15,16,17] discuss fault detection with oscillation frequency using inverse-time transient power, reliability index, and a poverty severity index method. The main issues with these indices are that they need a communication channel, it is diffcult to process the signals with low disturbance index [15], and they are unable to detect overcurrent and high resistance faults [16, 17]. In reference [18], a pseudo-voltage-based method is introduced to distinguish the different faults in the DC ring microgrid and this method purely depends on the local measurements. A fast selective protection scheme can detect faults quickly and accurately using local measurements but it requires a backup protection scheme [19]. The parameters are estimated using the least-squares method and the classification of internal and external faults is proposed in [20]. However, it requires a communication channel and backup protection because of its instant de-energization in the adjacent cables under fault conditions. Traveling wave and reflected wave-based protection schemes provide fast fault detection but they require high-speed measuring devices and are also limited to short-distance cables [21]. Renewable energy-based DC microgrids sometimes face a fault-ride-through problem during a fault scenario. In particular, a short duration P-P fault collapses the voltage and thus fault current limiters may be required to reduce the fault current [22]. According to National Electrical Codes (NEC) and Under Laboratory (UL: 1699B), the detection and isolation of PV side arc faults are essential to protect from fire hazards [23].

In [24,25,26,27,28], the signal processing algorithms, i.e., Modified Wavelet Transform (MWT) [24], Ensemble Empirical Mode Decomposition (EEMD) [25], S-Transform (ST) [26], and Empirical Wavelet Transform with Support Vector Machine (EWT-SVM) [27] require more features to analyze the faults. As a result, information will be lost due to mode mixing, reduction of dimensionality, and deterioration of classification accuracy. Fuzzy-based, artificial neural networks (ANN), and random vector function neural networks (RVFLN) have short comings such as needing data training, robustness and weight calculation [28]. In reference [29], an iterative technique is presented for the estimation of fault location estimation in a DC microgrid. Another popular and widely used method for the non-stationary signals is fractal analysis, which is used to extract fractal characteristics from the hidden signals using Mono-fractal or detrended fluctuation analysis (DFA) [30]. DFA is the transform tool to compress large data into fluctuation curves of low intensity, and it is widely used in scientific research because of its long-range detection, and ability to remove the fluctuation trends from the signal. In reference [31], the electrical activity of the brain and movements of the right arm are diagnosed using DFA analysis. The shortcomings of DFA are mono fractal components having variable characteristics and not having any information about its local fractal components. References [32, 33] introduce the compensation for DFA problems using multifractal analysis with the help of multifractal detrended fluctuation analysis (MFDFA). It is a powerful and popular method. However, one of the concerns of MFDFA is that it is applicable only to fixed polynomial order but not for higher-order polynomials in the detrending process. This problem is solved by using M-MFDFA in the application of daily precipitation time series [34].

To address the above-mentioned problems, this paper focuses on fault detection, classification, and distance estimation for the proposed model. For accurate fault detection, two protection schemes, i.e., primary and secondary, are proposed. The primary detection technique is based on the second-order derivative of the fault current. The secondary detection technique is sliding mode window-based Pearson’s correlation coefficient (SMW-PCC). The detected faults are input to the proposed M-MFDFA classifier. This classifier can compute the level of multifractality of the faulty signal for finding a discriminative set of features of any order polynomials with the help of polynomial and trigonometric functions. From M-MFDFA, multifractal features are extracted in terms of a kurtosis index (KI) to enhance the performance of the proposed classifier, and it is represented in2-D (two dimensional) and 3-D (three dimensional) scatter plots for better visualization. This paper also addresses the unknown parameters and fault distance estimation recursive least squares with forgetting factor (FF-RLS) algorithm.

The remainder of the paper is organized as follows. Section 2 illustrates the modeling and possibilities of faults in the proposed DC ring microgrid, while Sect. 3 describes the DC cable and arc fault detection using the second-order derivative of fault current and SMW-PCC. Brief details of M-MFDFA and its classification are illustrated in Sect. 4, while unknown parameter estimation is described in Sect. 5. Results and discussions are illustrated in Sect. 6, to validate the superiority of the proposed PV-Wind based DC ring microgrid protection scheme compared to existing methods. Finally, Sect. 7 concludes the paper.

2 Fault analysis in PV-wind-based DC ring microgrid

The complete architecture of this paper for fault analysis of the DC ring microgrid is shown in Fig. 1.

Fig. 1
figure 1

The complete architecture of the proposed protection scheme

A PV-Wind-based DC ring network is formed by six nodes, i.e., A, B, C, D, E, and F, and each node is connected with its adjacent nodes to form the ring network shown in Fig. 2. In this model node A is connected to the utility grid through a VSC converter and voltage is stepped-down through a transformer from 11 kV to 500 V. The VSC converter allows bidirectional power flow, so the utility grid is always ready to send or receive power to/from the DC microgrid [1, 18,19,20]. At node B, a 400 kW PV farm, which is obtained by parallelling four PVs with each PV panel rated at 100 kW, is connected through a DC-DC converter. To obtain the maximum power from the PV array, a maximum power point tracker (MPPT) with a ‘perturb &observe’ (P&O) algorithm is used. In addition to the MPPT for the PV array, two more controllers, i.e., the voltage and current controllers are used to regulate and synchronize with the utility grid through the DC-DC converter. At node C, a DC-lamp load-1of 250 kW is connected, while at node D, 90 kW of wind power is obtained with three permanent magnet synchronous generators (PMSGs) each rated at 30 kW, and is connected through another VSC. Similar to the PV farm, the MPPT is used to obtain the maximum power from the PMSG, while a space vector PWM technique and proportional-integral (PI) controller is used in PMSG to control the rotor speed. Although wind energy fluctuates in nature, in this paper, wind speed is considered to be constant at 12 m/s. At node E, a150 kW battery is connected through a bidirectional DC-DC buck-boost converter, where the voltage is boosted from 96 to 550 V to synchronize with the microgrid DC voltage. The battery is used to maintain a stable power flow under uncertain load conditions. Whenever the load is less than the generation, the battery is operated in the buck mode and is charged by consuming power from the DC bus. In contrast, the battery delivers power back to the DC bus in boost mode when the load is greater than the generation [15]. At node F, the 250 kW DC lamp load-2 is connected. The detailed parameters of the DC ring network and faults classes are given in Tables 1 and 2, respectively.

Fig. 2
figure 2

PV-Wind based DC ring microgrid

Table 1 Parameters of the proposed model
Table 2 Type of Faults and classes

2.1 Fault analysis in the proposed model

The main issue in the DC ring microgrid is fault current due to its rapid changes of magnitude and direction under fault conditions. The commonly occurring faults in the DC ring microgrid are cable faults and arc faults. Analyzing these faults, especially in the DC ring microgrid, is very difficult because of its bidirectional current flow. In this paper differential current is used to analyze the faults, because of its naturally being zero under normal operation and becoming non-zero under fault conditions. The representation of various faults in the cable, i.e., P-P fault and P-P-G is shown in Fig. 3a, b, respectively. From Fig. 3b, it is clear that under normal conditions the differential current (I1- I2) flows through Rf, where as under fault conditions their additional current (I1 + I2) flows through Rf because the current direction changes towards the fault, as shown in Fig. 4. Similarly, there may be scope to analyze using the average current, though it has a higher magnitude under normal conditions compared to fault conditions as shown in Fig. 5a. Thus, it is difficult to analyze high resistive faults in the microgrid, where average current versus differential current is shown in Fig. 5b.

Fig. 3
figure 3

Fault analysis a P-P fault and b P-P-G fault

Fig. 4
figure 4

Cable currents under fault condition a I2 current, b I1 current, c differential current

Fig. 5
figure 5

Cable currents under fault condition a average current, b average versus differential current, c current versus voltage

Whenever a fault occurs in the network there is a voltage drop, and at the same time the rate of current increases, as shown in Fig. 5c. Cable faults include P-P, P-P-G, and N-P-G types. A P-P fault may occur because of a lightning strike or fallen trees on the cables, while P-P-G and N-P-G faults occur because of physical contact between the cable and the ground. This may happen because of heavy storms or aging of the cables. Arc faults may be of series or shunt type, and they occur because of insulation failure or improperly installed cables. Cable faults are created in the microgrid cables, i.e., between nodes A and B in the model. The representation of cable faults is shown in Fig. 3, and the variation of fault resistance (Rf) and distance (Fd) in the cable for different faults is shown in Figs. 6 and 7, respectively.

Fig. 6
figure 6

DC cable faults under faultresistance variation a P-P fault, b P-P-G fault, and c N-P-G fault

Fig. 7
figure 7

DC cable faults under fault distance variation a P-P fault, b P-P-G fault, and c N-P-G fault

Arc faults are created in the PV arrays, i.e., series and shunt arcs are formed by connecting resistance in series and parallel between the PV arrays as shown in Fig. 8. By considering the variation of Rf and Fd, the corresponding fault currents are shown in Figs. 9 and 10, respectively. The fault duration time for all faults is considered to be from 1.3 to 1.55 s.

Fig. 8
figure 8

Series and shunt arc faults in PV arrays

Fig. 9
figure 9

Arc faults under fault resistance variation a series arc fault, b shunt arc fault

Fig. 10
figure 10

Series and shunt arc faults in PV arrays a series arc fault, b shunt arc fault

By observing all cable faults from Figs. 6 and 7, it is clear that if the fault and cable resistances are low, the fault current magnitude is high. Differential current-based fault analysis has key advantages such as less detection time and easy detection in the cable with the help of its second-order derivative, as will be described in Sect. 3.

3 Fault detection techniques

3.1 Fault detection using second-order differential derivative current

The proposed novel approach for fault detection using the second-order derivative of the differential current does not require a communicational channel to detect or clear the fault, while it only depends on the local-based network parameters, and smoothing of the signal and the processing time to detect the fault is very short. The modified circuit for the fault detection using the proposed method is shown in Fig. 11, where the source voltages of the cable Vdc1 and Vdc2appearacross the capacitor as Vc and are assumed to be constant.

Fig. 11
figure 11

Modified circuit for P-P-G fault

Applying the KVL to Fig. 2b yields:

$$V_{dc1} = I_{dc1} R_{1} + L_{1} \frac{{dI_{dc1} }}{dt} + { }R_{f} { }\left( {I_{3} } \right)$$

where Idc1 and Idc2 are the measured currents at buses A and B, respectively, as depicted in Fig. 3b. I1 and I2 are the fault currents, which are different to Idc2 and Idc2 as described in [18, 35,36,37]. During the fault, the sum of these currents flows through the fault resistance, because of the changing current direction towards the fault.

The equations for the fault currents obtained from Fig. 11 are:

$$I_{1} = \frac{{V_{c} \left( 0 \right)}}{{L_{1eq} \omega d_{1} }}e^{{ - \alpha_{1} t}} \sin \left( {\omega d_{1} t} \right)$$
$$I_{2} = \frac{{V_{c} \left( 0 \right)}}{{L_{2eq} \omega d_{2} }}e^{{ - \alpha_{2} t}} \sin \left( {\omega d_{2} t} \right)$$

whereR1eq and R2eq are the equivalent resistances, and L1eq and L2eq are the equivalent inductances up to the fault which are obtained from [35, 36]. The attenuation constants α1 and α2, and the damping frequencies ωd1 and ωd2 are given as:

$$\begin{aligned} & \propto_{1} = \frac{{R_{1eq} + R_{f} }}{{2L_{1eq} }},{ } \propto_{2} = \frac{{R_{2eq} + R_{f} }}{{2L_{2eq} }}\;{\text{and}} \\ & \omega_{d1} = \sqrt {\omega_{n1}^{2} - \alpha_{1}^{2} } ,{ }\omega_{d2} = \sqrt {\omega_{n2}^{2} - \alpha_{2}^{2} } \\ \end{aligned}$$

where ωn1 and ωn2 are the natural frequencies which are obtained from:

$$\omega_{n1} = \frac{1}{{\sqrt {L_{{1{\text{eq}}}} C_{1} } }},{ }\omega_{n2} = \frac{1}{{\sqrt {L_{{2{\text{eq}}}} C_{2} } }}$$

The differential current is obtained from (2) and (3) as:

$$\begin{aligned} I_{3} & = I_{1} - I_{2} = \frac{{V_{c} \left( 0 \right)}}{{L_{1eq} \omega d_{1} }}e^{{ - \alpha_{1} t}} \sin \left( {\omega d_{1} t} \right) \\ & \quad - { }\frac{{V_{c} \left( 0 \right)}}{{L_{2eq} \omega d_{2} }}e^{{ - \alpha_{2} t}} \sin \left( {\omega d_{2} t} \right) \\ \end{aligned}$$

Under normal conditions, \(L_{1eq} = L_{2eq} {\text{ and }}R_{1eq} = R_{2eq}\). However, under fault conditions, \(L_{1eq} \ne { }L_{2eq} {\text{ and }}R_{1eq} \ne { }R_{2eq}\), and there are:

  • \(I_{3} > 0\) indicates positive fault current magnitude

  • \(I_{3} < 0\) indicates negative fault current magnitude.

Based on the above conditions, different faults in various case studies under fault resistance variation and fault distance variation in the faulty cable are identified with the maximum and minimum peak amplitudes of each fault current as observed from Figs. 6, 7, 9 and 10. These fault current magnitudes are reported in Table 3.

Table 3 Different DC faults current threshold range under fault resistance and distance variations

Applying the derivative with respect to time for the differential current in (4) yields:

$$\begin{aligned} & \frac{{dI_{3} }}{dt} = \frac{{V_{c} \left( 0 \right)}}{{L_{{1{\text{eq}}}} \omega d_{1} }}\left( { - \alpha_{1} e^{{ - \alpha_{1} t}} \sin \left( {\omega d_{1} t} \right) + { }\omega d_{1} e^{{ - \alpha_{2} t}} \cos \left( {\omega d_{2} t} \right)} \right) \\ & \quad - { }\frac{{V_{c} \left( 0 \right)}}{{L_{{2{\text{eq}}}} \omega d_{2} }}\left( { - \alpha_{2} e^{{ - \alpha_{2} t}} \sin \left( {\omega d_{2} t} \right) + { }\omega d_{2} e^{{ - \alpha_{2} t}} \cos \left( {\omega d_{2} t} \right)} \right) \\ \end{aligned}$$

After the occurrence of the fault at t = 0+, the differential current derivative magnitude is:

$$\frac{{dI_{3} }}{dt} = \frac{{V_{c} \left( 0 \right)}}{{L_{{1{\text{eq}}}} }} - \frac{{V_{c} \left( 0 \right)}}{{L_{{2{\text{eq}}}} }}$$

Applying the derivative to (5) to obtain the double derivative equation for the differential current, which is used to detect the fault, yields:

$$\begin{aligned} \frac{{d^{2} I_{3} }}{{dt^{2} }} & = \frac{{V_{c} \left( 0 \right)}}{{L_{{1{\text{eq}}}} \omega d_{1} }}\left( {e^{{ - \alpha_{1} t}} \sin \left( {\omega d_{1} t} \right)\left( {\alpha_{1}^{2} - \omega d_{1}^{2} } \right) - 2\omega d_{1} \alpha_{1} e^{{ - \alpha_{1} t}} \cos \left( {\omega d_{1} t} \right)} \right) \\ & \quad - { }\frac{{V_{c} \left( 0 \right)}}{{L_{{2{\text{eq}}}} \omega d_{2} }}\left( {e^{{ - \alpha_{2} t}} \sin \left( {\omega d_{2} t} \right)\left( {\alpha_{2}^{2} - \omega d_{2}^{2} } \right)} \right. \\ & \quad \left. { - 2\omega d_{2} \alpha_{2} e^{{ - \alpha_{2} t}} \cos \left( {\omega d_{2} t} \right)} \right) \\ \end{aligned}$$

After the occurrence of the fault at t = 0+, the double derivative of differential current magnitude is:

$$\frac{{d^{2} I_{3} }}{{dt^{2} }} = \frac{{V_{c} \left( 0 \right)}}{{L_{{1{\text{eq}}}} \omega d_{1} }}\left( { - 2\omega d_{1} \alpha_{1} } \right) + { }\frac{{V_{c} \left( 0 \right)}}{{L_{{2{\text{eq}}}} \omega d_{2} }}\left( {2\omega d_{2} \alpha_{2} } \right)$$

Substituting \(\alpha_{1}\) and \(\alpha_{2}\) values to (8) leads to:

$$\frac{{d^{2} I_{3} }}{{dt^{2} }} = - { }\frac{{V_{c} \left( 0 \right)}}{{{\text{L}}_{{1{\text{eq}}}}^{2} }}\left( {R_{{1{\text{eq}}}} + { }R_{{\text{f}}} } \right) + { }\frac{{V_{c} \left( 0 \right)}}{{{\text{L}}_{{2{\text{eq}}}}^{2} }}\left( {R_{{2{\text{eq}}}} + { }R_{{\text{f}}} } \right)$$

From (6) and (9), it is seen that the second-order derivative of differential current magnitude in (9) depends on the fault and equivalent resistances of the faulty cable. However, in the case of differential current, the derivative magnitude in (6) is independent of the fault and equivalent resistances of the faulty cable. In the first-order derivative, during a fault scenario, the magnitude of fault current is very high due to the independence of Rf and cable resistance and it is also sensitive to external noise, where as the second-order derivative differential current depends on the fault and cable resistances during the fault scenario as seen from (9). Thus it is easy to protect and isolate the DC microgrid quickly once fault and cable resistances are known. From the above discussion, it is clear that the first-order derivative has higher magnitude than the second-order differential current derivative [37]. For this reason, the second-order derivative current is used in this paper for fault detection with the variety of case studies.

3.1.1 Case 1: Under fault resistance variation

In the proposed model, the fault resistance variation from 0.1 to 2 Ω is considered based on the nominal voltage and short circuit current [38, 39] in the grid-connected mode to analyze behavior of different faults with the fault switching time varying from 1.3 to 1.55 s. It is seen from Figs. 6 and 9 where different fault resistance variations are considered, while keeping the fault distance constant at 20%, that the magnitude of the fault current decreases with the increase of fault resistance while its shape remains the same. Among these variations, 0.5 Ω fault resistance is considered in this paper to analyze the fault detection with a first peak magnitude of \(\frac{{d^{2} I_{3} }}{{dt^{2} }}\) technique for DC short circuit and arc faults, as depicted in Fig. 12. In this method, the fault is detected in the case of non-zero differential current. The fault detection times for the fault resistance variations for different types of faults using the proposed method are listed in Table 4.

Fig. 12
figure 12

Faults detection using \(\frac{{d^{2} I_{3} }}{{dt^{2} }}\) under fault resistance variation a P-P fault, b P-P-G fault, c N-P-G fault, d series arc, e shunt arc

Table 4 DC faults detection using second-order differential derivative current

3.1.2 Case 2: under fault distance variation

Analyzing different types of faults with the fault distance variation is very difficult because the local measurements are unable to detect the fault if it happens far from the measurement bus. Here the proposed model is simulated by varying the fault distance from 20 to 100% for different faults while keeping the fault resistance constant at 1Ω, and the simulation results are shown in Table 3, and Figs. 7 and 10. Among these variations, 40% of the fault distances for different types of faults are considered, and the fault is detected with the first peak magnitude of the second-order derivative of differential current for all types of faults, as depicted in Fig. 13. The detection times are illustrated in Table 4.

Fig. 13
figure 13

Faults detection by using \(\frac{{d^{2} I_{3} }}{{dt^{2} }}\) under fault distance variation a P-P fault, b P-P-G fault, c N-P-G fault, (d) series arc, e shunt arc

From the above discussions and results, it is clear that the proposed \(\frac{{d^{2} I_{3} }}{{dt^{2} }}\) method is more accurate and faster in terms of fault detection than others. However, this method has low accuracy and a delayed fault detection time when the system is subjected to high impedance loads and in the presence of noise. Because of this, a secondary protection scheme, i.e., sliding mode window-based Pearson’s correlation coefficient, is proposed in this paper.

3.2 Sliding mode window-based Pearson’s correlation coefficient

Pearson’s correlation coefficient (PCC) is widely used to estimate the behavior of a non-linear signal [40]. However, with PCC it is impossible to achieve a fast and accurate fault detection time especially when there is large number of samples in the non-linear signal [41]. The performance can be improved by the proposed method using sliding mode window-based PCC (SMW-PCC). In this paper, SMW-PCC can be obtained by the correlation coefficient (CC) of the current window to the previous window of the differential fault signal, expressed as:

$$R\left( {X_{prev} ,{\text{ X}}_{current} } \right){ } = \frac{{\mathop \sum \nolimits_{{{\text{k}} = 2}}^{{\text{m}}} ({\text{x}}_{{{\text{k}} - 1 + {\text{n}}}} - {\overline{\text{x}}}_{{{\text{k}} - 1 + {\text{n}}}} )\left( {({\text{x}}_{{{\text{k}} + {\text{n}}}} - {\overline{\text{x}}}_{{{\text{k}} + {\text{n}}}} } \right)}}{{\sqrt {\mathop \sum \nolimits_{{{\text{k}} = 2}}^{{\text{m}}} ({\text{x}}_{{{\text{k}} - 1 + {\text{n}}}} - {\overline{\text{x}}}_{{{\text{k}} - 1 + {\text{n}}}} )^{2} } \sqrt {\mathop \sum \nolimits_{{{\text{k}} = 2}}^{{\text{m}}} ({\text{x}}_{{{\text{k}} + {\text{n}}}} - {\overline{\text{x}}}_{{{\text{k}} + {\text{n}}}} )^{2} } }}$$

where k is the sampling instant, n is the number of samples in the window, which is always n ≥ k, and in this paper, n is considered to be 10 samples for accurate detection. If n is very large it diminishes the sensitivity and accuracy. \({\overline{\text{x}}}_{{{\text{k}} - 1 + {\text{n}}}}\) and \({\overline{\text{x}}}_{{{\text{k}} + {\text{n}}}}\) are the mean values of the previous and current windows, respectively. m is the length of the fault signal and \(R \left( {X_{prev} ,{\text{ X}}_{current} } \right)\) is the Pearson’s correlation coefficient of previous and current windows of the differential fault signal. The range of R varies between -1 and + 1. If \(R\left( {X_{prev} ,{\text{ X}}_{current} } \right) = 0{ }\) it indicates that there is no correlation between the previous window and the current window of a fault signal, whereas \(R\left( {X_{prev} ,{\text{ X}}_{current} } \right) = + 1{\text{ and}} - 1\) indicate a strong positive and strong negative correlation between the previous window and current window of a fault signal, respectively.

SMW-PCC can be obtained for every instant using (10). If the current and previous samples have the same magnitude the resultant CC is large because the correlation between the same signals is obviously high [40]. In this method, windows are moving by correlating the current window with its previous one until the length of the signal m is covered. During this moving process, if any window samples contain abrupt changes in their magnitude correlation, the coefficient will be immediately changed. Based on the sudden change in the correlation coefficient magnitude it is easy to detect the fault instant in the signal. Therefore, this method is proposed in the paper for fault detection, even if the system is subjected to large load, high fault resistance, and presence of noise.

3.2.1 Case 1: under fault resistance variation

In this scenario, the fault resistance is varied from 0.1  to 2 Ω while the fault distance is kept constant. The differential fault currents of both cable and arc faults under these variations can be seen in Figs. 6 and 9, respectively. Among these variations, Rf = 2.0 Ω is considered to identify the fault detection for all the DC faults using the SMW-PCC method.

From Fig. 14 it is clear that if the system is healthy, i.e., previous and current window magnitudes are the same, the correlation coefficient is the highest. When an abrupt change occurs in either current or previous windows, the correlation coefficient value is changed immediately. This effect can be observed from 1.3 to 1.5 s in Fig. 14, where the threshold is considered at 0.98. If the correlation coefficient of any signal is less than the threshold it indicates a fault in the signal. In this paper, the first low peak magnitude is considered as the fault instant to trip and isolate the microgrid from the fault zone. The low peak magnitudes of all the faults are reported in Table 4.

Fig. 14
figure 14

Fault detection by using SMW-PCC at Rf = 2. 0Ω a P-P fault, b P-P-G fault, c N-P-G fault, d series arc, e shunt arc

3.2.2 Case 2: under fault distance variation

In this scenario, the fault distance is varied from 20 to 100% of the cable length while keeping the fault resistance Rf constant at 1 Ω. The differential fault currents for all the faults under these variations are illustrated in Figs. 7 and 10. Among these variations, the fault distance (Fd) is fixed at 40% of the cable length to consider the fault detection in the DC fault signals using the SMW-PCC method.

From Fig. 15 it is seen that the system is in healthy condition when there is no change in the magnitude of the current and previous windows, while the correlation coefficient is at a maximum. Whenever the system is unhealthy there are, abrupt changes in the signal correlation coefficient and it is decreased from maximum to minimum, as can be seen in Fig. 15 during 1.3–1.55 s. The threshold is 0.98 and below the threshold it is considered as a faulty section. In this paper, the first low peak magnitude is considered as the fault instant to trip the relay for microgrid protection, and the magnitudes of different faults are reported in Table 4.

Fig. 15
figure 15

Fault detection using SMW-PCC at Fd = 40% a P-P fault, b P-P-G fault, c N-P-G fault, c series arc, d shunt arc

4 DC fault classification using M-MFDFA

4.1 Basic MFDFA

Using detrended fluctuation analysis (DFA), monofractal components can be analyzed for long-range but not forlocal fractal components. MFDFA is the extension of DFA which can successfully rectify the drawbacks of DFA [42]. Originally, MFDFA was proposed to analyze the non-stationary time series signals which can also significantly eliminate the characteristics data [32]. In this paper, the proposed algorithm is used to classify the different non-stationary fault signals collected from bus B, and five steps are taken to illustrate the classification of different fault signals.

Step 1. Initially the differential current (i.e., I3 = I1–I2) signal is passed through MFDFA, which contains the vanished components of the non-linear time series. Such components can be eliminated by subtracting the mean from the input signal and expressed as:

$${\text{Y}}\left( {\text{m}} \right) = \mathop \sum \limits_{{{\text{m}} = 1}}^{{\text{n}}} ({\text{I}}\left( {\text{m}} \right) - {\overline{\text{I}}}\left( {\text{m}} \right)),\quad {\text{ n}} = 1,{ }2,{ }3,{ } \ldots {\text{N}}$$

where Y (m) is the obtained signal that represents the profile of MFDFA, \({\text{I}}\left( {\text{m}} \right)\) is the input signal, and \({\overline{\text{I}}}\left( {\text{m}} \right)\) is the mean of \({\text{I}}\left( {\text{m}} \right)\). n is the length of the input signal and varies from 1 to N.

Step 2. Divide the profile Y (m) into Ns, where \(N_{s} = \frac{N}{s}\) is the non-overlapping uninterrupted segment (v) with an equal length of scales. The symbol \(\left\lfloor a \right\rfloor\) refers to only considering the integer part because sometimes the length of the differential current signal is not multiples of the time scale (s). Given this, there may be a small part of the truncated data leftover from the end of the signal and not used. In order to use this data the same process is repeated from the opposite end of Y(m), and as a result of such process, 2Ns components are obtained.

Step 3. Local trends of each 2Ns segment can be calculated using the least squares fitting approach, and then the variance of each segment can be calculated as:

$$F^{2} \left( {v,{ }s} \right) = \left\{ {\frac{1}{s}\mathop \sum \limits_{m = 1}^{s} \left\{ {Y\left( {\left( {v - 1} \right)s + m} \right) - y_{v}^{n} \left( m \right)\}^{2} \quad for\;v = 1,{ }2,{ }3 \ldots N_{s} } \right.} \right.$$
$$F^{2} \left( {v,{ }s} \right) = \left\{ {\frac{1}{s}\mathop \sum \limits_{m = 1}^{s} \left\{ {Y\left( {N - \left( {v - N_{s} } \right)s + m} \right) - y_{v}^{n} \left( m \right)\}^{2} \quad for\;v = N_{s} + 1,{ }2,{ } \ldots 2N_{s} } \right.} \right.$$

Here \(y_{v}^{n} \left( {\text{m}} \right)\) indicates the polynomial trend function by sections familiar inevery segment v. In the least squares fitting procedure, if n = 1, it is linear, if n = 2 quadratic and if n = 3cubic polynomials are used.

Step 4. Average overall segments to achieve the fluctuation function (Fq) or average fluctuation of the qth order, defined as:

$${\text{F}}_{{\text{q}}} \left( {\text{s}} \right) = \left\{ {\begin{array}{*{20}l} {\exp \left[ {\frac{1}{{4{\text{N}}_{{\text{s}}} }}\mathop \sum \limits_{v = 1}^{{2{\text{N}}_{{\text{s}}} }} {\text{ln}}F^{2} \left( {v,{ }s} \right)} \right]} \hfill & {{\text{if}}\;q = 0} \hfill \\ {\left( {\frac{1}{{2N_{s} }}\mathop \sum \limits_{v = 1}^{{2{\text{N}}_{{\text{s}}} }} { }[F^{2} \left( {v,{ }s} \right)]^{{0.{ }5{\text{q}}}} } \right)^{2} } \hfill & {{\text{if}}\;{\text{ q }} \ne 0} \hfill \\ \end{array} } \right.$$

From (14) it is clear that for q = 2, Fq(s) belongs to DFA analysis. To discover how Fq(s) relies on the scales s for other values of q, it is necessary to repeat the steps from 2 to 4 for unlike time scales (s). In this paper, q is restricted within the interval − 5 ≤ q ≤ 5.

Step 5. Finally the scalar behavior of Fq(s) employing log–log graphs against s for each value of q is observed and the range of time series scales is \({\text{m}} + 2 = {\text{ s}}_{{{\text{min}}}} \le {\text{ s }} \le {\text{ s}}_{{{\text{max}}}} = \frac{N}{4}\) in a given order q ≠ 0, for which the following relation can be established:

$$F_{q} \left( s \right) \propto s^{H\left( q \right)}$$

If q = 0, the above equation becomes:

$$F_{0} \left( s \right) \propto s^{H\left( 0 \right)}$$

where H (q) is the Hurst exponent. If both q and H(q) are independent of each other, H(q) has stable values and the resultant of variance \(F^{2} \left( {v,{ }s} \right)\) is the same for all the local fractal segments.

4.1.1 Multifractal spectrum analysis

The relation can be established between the generalized Hurst exponent H(q) and mass exponent E(q) as:

$$E\left( q \right) = qH\left( q \right) - 1$$

The relation between E(q) and q is linear when q and E(q) are independent of each other and is monofractal data. Otherwise, it is a multifractal series data due to the non-linear nature, and has a strong non-linear relation. By using the Legendre transform [32], the relation between the singularity spectrum (Mq) and mass exponent (Eq) can be established as:

$$\lambda q{ } = \frac{dEq}{{dq}}$$
$${\text{Mq }} = {\text{q}}\lambda q - Eq$$

where λ represents the singularity exponent or Holder exponent, and Mq represents the fractal dimension of the time series with distinct values of λ. The graph plot between Mq and λq is termed a multifractal or singularity spectrum, and Mq reaches the maximum value when q = 0. The obtained graph is an inverted parabola, where the width indicates the measure of the multifractal spectrum, with a larger value signifying a higher degree of multifractality. In the case that it shows zero-degree then it is a monofractal time series data because Hq is independent of q.

4.2 Modified MFDFA algorithm (M-MFDFA)

In the basic MFDFA method, local fractal trends are considered to take the fixed polynomial order which was discussed in step 3, (12) and (13). It is not the best way for estimating the local trends, because n will not be stable throughout the time series data, but varies for different time intervals. Basic MFDFA is difficult to apply for measuring the trends in real-time series data with the unknown trend and unknown functional form because it is very difficult to find the best polynomial for eliminating the local trends [34]. To avoid these shortcomings in the basic MFDFA, this paper proposes the M-MFDFA method, where a set of polynomials and trigonometric functions of possible linear combinations are considered as depicted in Table 5.

Table 5 Local trends estimation for each segment (v) with the functions set U

Set of polynomials and trigonometric functions \(U = \left\{ {A_{1} , A_{2} , \ldots . A_{12} } \right\}\) to estimate the local trends are:

$$\begin{aligned} & A_{1} = a, \\ & A_{2} = ax + b, \\ & A_{3} = ax^{2} + bx + a, \\ & A_{4} = a + K_{1} \sin \left( x \right) + K_{2} \cos \left( x \right), \\ & A_{5} = ax + b + K_{1} \sin \left( x \right) + K_{2} \cos \left( x \right), \\ & A_{6} = ax^{2} + bx + c + K_{1} \sin \left( x \right) + K_{2} \cos \left( x \right), \\ & A_{7} = a + {\text{K}}_{3} \sin \left( {2x} \right) + K_{4} \cos \left( {2x} \right), \\ & A_{8} = ax + b + K_{3} \sin \left( {2x} \right) + K_{4} \cos \left( {2x} \right), \\ & A_{9} = ax^{2} + bx + c + K_{3} \sin \left( {2x} \right) + K_{4} \cos \left( {2x} \right), \\ & A_{10} = a + K_{1} \sin \left( x \right) + K_{2} \cos \left( x \right) + K_{3} \sin \left( {2x} \right) + K_{4} \cos \left( {2x} \right), \\ & A_{11} = ax + b + K_{1} \sin \left( x \right) + K_{2} \cos \left( x \right) + K_{3} \sin \left( {2x} \right) + K_{4} \cos \left( {2x} \right),and \\ & A_{12} = ax^{2} + bx + c + K_{1} \sin \left( x \right) + K_{2} \cos \left( x \right) + {\text{K}}_{3} \sin \left( {2x} \right) + K_{4} \cos \left( {2x} \right) \\ \end{aligned}$$

where a, b, c, K1, K2, K3, and K4 are real constants, which come from the DFA analysis for local trends.

The proposed M-MFDFA method only changes step 3 of the basic MFDFA without affecting the other steps. Thus the modified step 3 is as follows:

Step 3. Local fractal trends are calculated for each of the 2Ns segments with the help of the trigonometric functions set \(f_{i}\) for \(i = 1, 2, \ldots . 12\) that belong to the set U. According to the method kurtosis of each of the segments will take only one function from the function set U and is then subtracted from the profile. This optimal mode is obtained to estimate the local trend by the selection of one which has the lowest kurtosis, and variance of each segment can then be calculated as:

$$F^{2} \left( {v,{ }s} \right) = \left\{ {\frac{1}{s}\mathop \sum \limits_{m = 1}^{s} \left\{ {Y\left( {\left( {v - 1} \right)s + m} \right) - f_{i} \left( m \right)\}^{2} \quad for\;v = 1,{ }2,{ }3 \ldots N_{s} } \right.} \right.$$
$$F^{2} \left( {v,{ }s} \right) = \left\{ {\frac{1}{s}\mathop \sum \limits_{m = 1}^{s} \left\{ {Y\left( {N - \left( {v - N_{s} } \right)s + m} \right) - f_{i} \left( m \right)\}^{2} \quad for\;v = N_{s} + 1,{ }2,{ } \ldots 2N_{s} } \right.} \right.$$

Compared with (12) and (13), using the modified (20) and (21) makes it easier to minimize the local trends of any order of polynomial function f set belonging to U. This method is also suitable for cases whoseresponse is curvilinear.

4.3 Analysis of M-MFDFA multifractal features

From M-MFDFA various feature vectors are produced. These can be usedto classify the different fault types. Proper selection of features plays a vital role in classifying the faults distinctively, while the selection of features can be done by trial and error or prior knowledge of various literature surveys on classification.

  • Hurst exponent (Hq)

  • Mass exponent or scaling exponent (Eq)

  • Multifractality spectrum or singularity spectrum (Mq)

  • Extreme right of the multifractal spectrum (λqmax)

  • The peak value of the multifractal spectrum (λpeak)

  • Width of the singularity spectrum (Δλq)

From the aforementioned features, the three main vectors, i.e., Hurst exponent, Mass exponent, and Singularity spectrum, that effect the non-linear characteristics of signals are identified from the various kinds of literature [32]. The impact of these vectors in the proposed model is discussed in Sect. 6.

4.4 Statistical analysis for the selected feature vectors

From the above discussion, the chosen feature vectors are used for fault classification. For accurate classification of DC faults, 2-Dimensional (2-D) and 3-Dimensional (3-D)scatter plots are used. Since the extracted features are in vector form it is compulsory to convert them into statistical measurement data, and then it is simple to visualize the distinctly classified faults in 2-D and 3-D plots. The statistical measurements are numerically-based representations, which give important information for ease of interpretation. Among the various statistical measurements, kurtosis is found to be more sensitive for non-linear characteristics, and thus the kurtosis index is used in this paper [32, 43]. From the statistics, kurtosis can be defined as the combination of a weight distribution’s tail relative to the center of the distribution represented as:

$${\text{Kurtosis}}\,{\text{index}}\,\left( {{\text{KI}}} \right) = \frac{1}{{\text{N}}}\mathop \sum \limits_{{{\text{i}}} = 1}^{{\text{N}}} (({\text{ Y}}_{{\text{i}}} - {\overline{\text{Y} }})^{4} )/{\upsigma }^{4}$$

where Y is the fault signal and \({\overline{\text{Y}}}\) is its mean value, N is the length of the signal, and σ is the standard deviation. The KI data set is obtained from the feature vectors, i.e., Eq, Mq, and Hq of each DC fault under fault resistance and distance variation. The obtained data set is used to enhance the performance of the proposed classifier in terms of classification accuracy. For better visualization, the data is represented in 2-D and 3-D scatter plots in the form of clusters and its results are discussed in Sect. 6.

5 Parameter estimation

The estimation of cable parameters plays a key role in determining the fault instant during a fault in the proposed microgrid model. Thus, in the current section, DC cable parameters are estimated to modify the cable network (i.e., π-section network) as shown in Fig. 3b, to an equivalent fault network. If the fault happens in the cable at a particular point, the part from that point to the rest of the section is disconnected in the modified circuit, which is shown in Fig. 16. To obtain the unknown parameters, the ‘forgetting factor-based recursive least squares’ (FF-RLS)method is used.

Fig. 16
figure 16

Equivalent circuit for Pole–Ground fault

From (1), there is:

$$V_{c} = I_{1} R_{1} + L_{1} \frac{{dI_{1} }}{dt} + { }R_{f} \left( {I_{3} } \right)$$
$$where\, V_{dc1} = V_{dc2} { } = {\text{ V}}_{{\text{c}}} = \frac{1}{C}\smallint I_{1} dt.$$

5.1 Recursive least squares with forgetting factor

In this paper, a novel approach of recursive least squares method with variable forgetting factor [43] is used to locate the fault distance by estimating the unknown parameters of the DC ring microgrid cable. The FF-RLS method is used in various applications such as estimation ofO2 gas–liquid mass-transfer in the chemical industry, in financial studies, biomedical applications for estimating the ECG signals, predicting the torque and speed parameters in mechanical studies as well as recent application of RLS to estimate unknown parameters such as resistance, inductance, and capacitance in electrical circuits. The proposed method is more accurate and stable than others, with low computational time and high robustness which is proven in [43,44,45,46].

Equation (23) can be modified as:

$${\text{V}}_{dc} = {\text{ I}}_{dc} \times {\text{ Z}}_{dc}$$

From the above equations, the known parameters are the current and voltage matrices which are represented for n samples as \({\text{I}}_{dc} \in R^{n \times 3} = [{\text{I}}_{1} \left( n \right);{ }\frac{{\Delta I_{1} \left( n \right)}}{{\Delta t}};I_{3} \left( n \right)]_{n \times 3}\) and \(V_{dc} \in R^{n \times 1} = [V_{c} \left( {\text{n}} \right)]_{n \times 1}\), respectively, and the unknown parameters are \({\text{Z}}_{dc} \in R^{3 \times 1} = \left[ {R_{1} ;{ }L_{1} ;{ }R_{f} } \right]\).

$${\text{where}}\;\left\{ {\begin{array}{*{20}l} {{\text{I}}_{dc} = \left[ {{\text{I}}_{1} \frac{{\Delta {\text{I}}_{1} }}{{\Delta t}}{\text{I}}_{3} } \right]} \hfill \\ {{\text{V}}_{{{\text{dc}}}} = \left[ {{\text{V}}_{{\text{c}}} } \right]} \hfill \\ {{\text{Z}}_{dc} = \left[ {\begin{array}{*{20}c} {R_{1} } \\ {L_{1} } \\ {R_{f} } \\ \end{array} } \right]} \hfill \\ \end{array} } \right.$$

The above equation is illustrated during the period of \({\text{t}}_{{\text{m}}} and {\text{t}}_{{{\text{m}} + 1}}\) as:

$$V_{{{\text{dc}}}} \left( {\text{m}} \right) = {\text{I}}_{dc} \left( m \right){\text{Z}}_{dc}$$

where m represents each iteration cycle.


$$\left\{ {\begin{array}{*{20}c} {A_{c} = \left[ {R_{1} } \right]} \\ {B_{c} = \left[ {L_{1} } \right]} \\ {C_{c} = \left[ {R_{f} } \right]} \\ \end{array} } \right.$$

where \(A_{c} ,{ }B_{c}\), and \(C_{c}\) are the cable resistance, inductance and fault resistance respectively. By using (25), (26) can be modified as follows:

$$\begin{aligned} V_{{{\text{dc}}}} \left( {\text{m}} \right) & = \left[ {\begin{array}{*{20}c} {{\text{I}}_{1} \left( {{\text{m}} - 1} \right)} \\ {\frac{{\Delta {\text{I}}_{1} \left( {{\text{m}} - 1} \right)}}{{\Delta t}}} \\ {{\text{I}}_{3} \left( {{\text{m}} - 1} \right)} \\ \end{array} } \right]^{{\text{T}}} \left[ {\begin{array}{*{20}c} {{\text{A}}_{{\text{c}}} } \\ {{\text{B}}_{{\text{c}}} } \\ {{\text{C}}_{{\text{c}}} } \\ \end{array} } \right] \\ & = {{ \upvarphi }}^{{\text{T}}} \left( {\text{m}} \right){\hat{\theta }}\left( {{\text{m}} - 1} \right) + {\text{ E}}\left( {\text{m}} \right) \\ \end{aligned}$$

where \({{\upvarphi }}\left( {\text{m}} \right)\) is the regression vector and contains the data of the DC cable current, and E(m) represents the prediction error. \({\hat{\theta }}\left( {\text{m}} \right)\) is the estimated state vectorand is updated using FF-RLS to find the unknown parameters, and can be obtained by:

$${\text{where}}\quad \left\{ {\begin{array}{*{20}l} {{\hat{\theta }}\left( {\text{m}} \right) = \left[ {\begin{array}{*{20}c} {{\text{A}}_{{\text{c}}} } \\ {{\text{B}}_{{\text{c}}} } \\ {{\text{C}}_{{\text{c}}} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {{\text{a}}_{1} } \\ {{\text{b}}_{1} } \\ {{\text{c}}_{1} } \\ \end{array} } \right]} \hfill \\ {E\left( {\text{m}} \right) = V_{{{\text{dc}}}} \left( {\text{m}} \right) - {{\upvarphi }}^{{\text{T}}} \left( {\text{m}} \right){\hat{\theta }}\left( {{\text{m}} - 1} \right)} \hfill \\ \end{array} } \right.{ }$$

State vector update estimation is developed by:

$${\hat{\theta }}\left( {\text{m}} \right) = {{ \hat{\uptheta }}}\left( {{\text{m}} - 1} \right) + {\text{G}}\left( {\text{m}} \right) \cdot {\text{E}}\left( {\text{m}} \right)$$

where G(m) is the Kalman gain matrix, given as:

$${\text{G}}\left( {\text{m}} \right) = \frac{{{\text{P}}\left( {{\text{m}} - 1} \right){{\upvarphi }}\left( {\text{m}} \right)}}{{{\uplambda } + {{ \upvarphi }}^{{\text{T}}} \left( {\text{m}} \right){\text{P}}\left( {{\text{m}} - 1} \right){{\upvarphi }}\left( {\text{m}} \right)}}$$

where P is the error covariance matrix and it is obtained as:

$${\text{P}}\left( {\text{m}} \right) = \frac{{{\text{P}}\left( {{\text{m}} - 1} \right)}}{{\uplambda }}\left( {{\text{I}} - {\text{G}}\left( {\text{m}} \right){{\upvarphi }}^{{\text{T}}} \left( {\text{m}} \right)} \right)$$

Equations (26) to (31) are performed recursively with the initial values of the invertible matrix P(0) and an initial state vector θ(0). The forgetting factor for the RLS is λ, and its range is 0 < λ <  = 1. In this paper, λ is varied from 0.78 to 0.997. In the steady-state, the computation speed of the proposed algorithm can be estimated by:

$$\alpha_{R} = \frac{{1 - {{ \uplambda }}}}{{T_{s} }}$$

where \(T_{s}\) is the sampling period, and \(\alpha_{R}\) is the bandwidth of the estimator and must be greater than zero.

From (32) it is clear that a lower value of λ increases the computation speed, reduces the noise rejection and selectivity, where as a higher \({\uplambda }\) value reduces the estimation speed but increases selectivity and stability. Thus, a low value is used in the transient state value. Location of fault distance is estimated using estimated parameters and is briefly discussed in Sect. 6. The overall summary of the FF-RLS algorithm is illustrated in Table 6.

Table 6 Stepwise execution of FF-RLS algorithm

6 Results and discussion

Initially, various faults are simulated in the MATLAB/ SIMULINK platform for the proposed PV-Wind-based DC ring microgrid model under different fault resistances and distances. Signals are collected from bus B, and the fault range of the differential current signals is shown in Table 3. For every fault, it is necessary to identify the fault occurring time, and for that purpose two protection schemes are proposed. The primary protection scheme is a second-order derivative of the differential fault current and SMW-PCC is the secondary protection technique. The primary protection technique is more suitable for low impedance and fault resistance conditions. However, in noisy and high impedance fault conditions, \(\frac{{d^{2} I_{3} }}{{dt^{2} }}\) leads to false detection. Therefore, the secondary protection technique (i.e. SMW-PCC) is introduced in this paper to protect the grid from all aspects. This detection technique works on the basis of the correlation coefficient between the current and the previous windows, and the correlation coefficient threshold is selected as 0.98. By using these techniques all the faults are detected in less than 11 ms, where as the detection time is less than 2 ms in the case of fault resistance variation (Rf = 0.5 Ω) and less than 10 ms in the case of fault distance variation (Fd = 40%) with the \(\frac{{d^{2} I_{3} }}{{dt^{2} }}\) technique. By using the SMW-PCC technique the detection time is less than 9 ms in the case of fault resistance variation (Rf = 2.0 Ω) and less than 11 ms in the case of fault distance variation (Fd = 40%). Compared to the arc faults (i.e., series arc and shunt arc), cable faults are detected very quickly by these approaches, as can be clearly seen from Table 4.

After fault detection, it is necessary to classify the different types of DC faults. In this paper a novel M-MFDFA approach is used to classify the different faults, where a total of five different types of fault signals (i.e., differential current signals) are directly passed through the M-MFDFA classifier. This classifier initially calculates the profile by subtracting the mean from the input, and it then calculates the 2Ns components of each fault segment. The time scale parameters (s) considered from 16 to 1024 have a logarithmic scale of 19 between them and are equally divided by N (i.e., length of the signal) segments.

Thus variance of these segments is calculated for any order of polynomial functions. Under two scenarios, i.e., fault resistance and distance variations, the fluctuation component Fq with the order q is evaluated. Among the three vectors (i.e., Hq, Eq, and Mq), the Hurst exponent (Hq) is identified as the best feature vector to analyze the dynamic characteristics of the non-linear signal based on the literature. Whenever the Hurst exponent Hq shows long-term correlation, the log-linear fluctuation function shows the power-law correlations in that time, and the Hurst exponent Hq and q values are varied from -5 to 5 for the differential fault current signals.

When q = 2, all the considered DC faults of Hq show the discriminative characteristics, while when q = 0.4, Hq shows the undiscriminating non-correlated and overlapping characteristics. If q and Hq are positive, the fluctuation of segments scaling properties are large, whilethey are small when Hq and q are negative, as shown in Figs. 17a and 18a. The plot between the scaling exponent (Eq) andq shows the clear relation between Eq and q. Itis non-linear and similar to a convex shaped curve observed in both Figs. 17b and 18b. From the results, the degree of non-linearity is observed, and is more significant for the P-Pfault signal than the fluctuations of other faults. Figures 17c and 18c show the multifractal spectrum and the shapes look like an inverted parabola. These results show the truncated right tail characteristics for both arc and cable faults, and their properties indicate high magnitude and insensitivity to local fluctuations. In this spectrum, all the faults are seen to be different from one another. For better classification and to enhance the performance of the proposed classifier, the chosen multifractal feature vectors are converted into statistical measurement data using the kurtosis index, as shown in Table 7. The data is represented in 2-D and 3-D scatter plots in Fig. 19 to give the proper DC fault classification in the form of clusters. From Fig. 19 it is clear that all the faults are distinctly classified.

Fig. 17
figure 17

Analysis of M-MFDFA features under fault resistance variation: a Hurst exponent, b Mass exponent and c Multifractal spectrum

Fig. 18
figure 18

Analysis ofM-MFDFA features under fault distance variation: a Hurst exponent, b Mass exponent and c Multifractal spectrum

Table 7 Kurtosis index (KI) data for multifractal feature vectors
Fig. 19
figure 19

M- MFDFA scatter plots for different faults in terms of KI data a scatter plot between Hq and Mq, b scatter plot between Hq and Eq, c 3-D scatter plot among Hq, Eq, and Mq

6.1 Performance evaluation

The performance of the proposed method can be verified with the assistance of classification accuracy (CA), relative computational time (RCT), and percentage of relative error. CA and RCT of M-MFDFA are given as:

$${\text{CA\% }} = \frac{{{\text{Truly}}~\,{\text{classified}}\,{\text{KI}}\,{\text{data}}\,{\text{samples}}}}{{{\text{Randomly}}\,~{\text{chosen}}\,{\text{KI}}\,{\text{data}}\,~{\text{samples}}\,{\text{from}}\,{\text{whole}}\,{\text{data}}\,{\text{set}}}} \times 100 100$$
$${\text{Relative}}\,{\text{computational}}\,{\text{time~}}\,\left( {RCT} \right)~~ = ~~\frac{{{\text{particular}}\,{\text{method}}\,{\text{computational}}\,{\text{time}}}}{{{\text{low}}\,{\text{computational}}\,{\text{time}}\,{\text{among}}\,{\text{all}}\,{\text{the}}\,{\text{methods}}}}$$

For classification, five kinds of DC faults are taken under two cases of fault resistance (Rf) variation and fault distance (Fd) variation for the PV-Wind-based DC ring network. In the case of fault resistance variation, Rf is varied from 0.2 to 2 Ω, with total 20 variations considered for each fault. For fault distance variation, Fd is varied from 10 to 100% in the cable, also resulting in 20 variations for each fault. From these two cases, the total variations are 40 and from each variation of DC faults, KI values are extracted from the chosen multifractal feature vectors. Three variations of KI values for each fault are represented in Table 7. From all the considered faults a total of 200 sample data is obtained, while 180 samples are randomly chosen to perform the classification of different faults. Among the 180 samples, 179 are exactly classified, while misclassification happens between N-P-G fault (F3) and Shunt arc fault (F4) as can be seen in Fig. 19. The classification accuracy of the proposed method can be obtained using (33).

The proposed classifier is compared with existing classifiers, i.e., EEMD, ST, WT, EWT-SVD, and MFDFA in terms of extracted features and classification accuracy for both without and with noise (30 dB noise is intentionally added to the signal), and with the assistance of (34). The relative computational time is calculated for each method and listed in Table 8. From Table 8, it is clear that the proposed M-MFDFA classifier shows dominance in terms of extracted features, classification accuracy, and RCT when compared to the existing classifiers which are shown in bar graphs in Fig. 20. Even though the extracted features are the same in MFDFA and M-MFDFA, M-MFDFA shows superiority in terms of CA, CT, and RCT. Hence it is clear that the proposed classifier is validated for the PV-Wind-based DC ring network.

Table 8 Comparison between the proposed classifier and the existing classifiers
Fig. 20
figure 20

Classification accuracy for the proposed method

After classification, it is necessary to estimate fault location. Thus, FF-RLS is used to estimate the unknown parameters using (29), while among the different unknown parameters this paper focuses on the cable resistance. Fault distance can be obtained by the ratio of estimated to the actual resistance, and using the estimated fault distance relative error can be obtained as:

$$\begin{aligned} & {\text{Percentage}}\,{\text{of}}\,{\text{Relative}}\,{\text{error}}\,~\left( {\% \varepsilon } \right)~ \\ & \quad = ~\left| {\frac{{{\text{estimated}}\,{\text{fault}}\,{\text{distance}}~\,\left( {d_{{efd}} } \right){-}~{\text{actual}}\,{\text{distance}}\,\left( {d_{{afd}} } \right)}}{{{\text{actual}}\,~{\text{distance}}~\,\left( {d_{{afd}} } \right)}}} \right| \times 100 \\ \end{aligned}$$

The proposed FF-RLS algorithm estimates all the locations of all faults accurately using (35) which are listed in Tables 9, 10, 11, 12 and 13. Unknown parameters can be obtained for the concerned fault by updating the fault data along with the variation of the forgetting factor (λ) in the proposed algorithm. After the recursive performance from (31) unknown parameters are obtained.

Table 9 P-P-G fault distance estimation by the FF-RLS algorithm
Table 10 N-P-G fault distance estimation by the FF-RLS algorithm
Table 11 P-P fault distance estimation using FF-RLS algorithm
Table 12 Series arc fault distance estimation using FF-RLS algorithm
Table 13 Shunt arc fault distance estimation using FF-RLS algorithm

To represent fault location effectively, random data has been taken from the P-P-G fault among all the faults at Rf = 1 Ω, and its corresponding plot is represented in Fig. 21. As seen, it is evident that the proposed FF-RLS algorithm can successfully estimate the fault distance at Rf = 1 Ω.

Fig. 21
figure 21

Fault locations for P-P-G fault

7 Conclusion

In this paper a novel approach is presented for fault detection, classification, and distance estimation to obtain reliable operation of a PV-Wind-based DC-ring microgrid. Initially, five kinds of faults are collected from local measurements for two cases, i.e., fault resistance variation (Rf) and fault distance variation (Fd). Differential current is estimated from the collected signals and its fault data is obtained with the help of the maximum and minimum values under different variations of Rf and Fd. The second-order derivative and SMW-PCC are applied to the differential fault current (i.e., the current passing through Rf) for DC fault detection. The fault detection is carried out using \(\frac{{d^{2} I_{3} }}{{dt^{2} }}\) with the first peak magnitude. Below the threshold (0.98 in this paper) is a fault zone where an especially low peak is considered for detection using SMW-PCC. Detected fault signals are passed through the M-MFDFA classifier for classification. The M-MFDFA multifractal features (i.e., Hq, Mq, and Eq) are in vector form, and are converted to statistical measurement data with the assistance of KI and plotted in 2-Dimensional and 3-D dimensional scatter plots for effective visualization. Scatter plots reveal that all the faults are accurately classified. Finally, fault distance estimation is achieved through the unknown parameters using the FF-RLS method. The novelties of this paper are:

  • Modeling of the ring microgrid with the combination of PV array, wind turbine, battery, utility grid, and loads;

  • The combination of primary and secondary detection techniques, i.e., \(\frac{{d^{2} I_{3} }}{{dt^{2} }}\) and sliding mode window-based Pearson’s correlation coefficient (SMW-PCC), is used to protect the microgrid in uncertain conditions.

M-MFDFA has been proposed for fault classification and its main advantages are that it can estimate the local trends of any order polynomial function and it does not t require any signal processing algorithm to decompose the signals. M-MFDFA reduces the computational burden, RCT, extracted features, and increases the robustness of the system.

  • M-MFDFA exhibits higher classification accuracy (99.44%) as compared to the existing techniques of EEMD, ST, MWT, EWT-SVM, and MFDFA, etc.

  • Accurate fault location and very low relative errors are achieved by varying the forgetting factor from 0.78 to 0.997 in FF-RLS.

It is concluded that the proposed method is suitable for the fault diagnosis of the PV-Wind-based DC ring microgrid.

Availability of data and materials

Not applicable.





Maximum power point tracker


Wind turbine


Permanent magnet synchronous generator


Renewable energy sources




Positive pole-ground


Negative pole-ground


Correlation coefficient


Sliding mode window based Pearson’s correlation coefficient


Detrended fluctuation analysis


Multifractal detrended fluctuation analysis


Modified multifractal detrended fluctuation analysis


Recursive least squares with forgetting factor


Modified wavelet transforms


Stockwell transform


Ensemble empirical mode decomposition


Empirical Wavelet Transform with Support Vector Machine


Artificial neural networks


Random vector functional neural network


Kurtosis index


Classification accuracy


Relative computational time


  1. Augustine, S., Quiroz, J. E., Reno, M. J., & Brahma, S. (2018). DC microgrid protection: Review and challenges (No. SAND2018-8853). Sandia National Lab. (SNL-NM).

  2. Zhang, Y., Jiang, T., & Jiao, J. (2020). Model-free predictive current control of a dfig using an ultra-local model for grid synchronization and power regulation. IEEE Transactions on Energy Conversion, 35(4), 2269–2280.

    Article  Google Scholar 

  3. Meghwani, A., Srivastava, S. C., & Chakrabarti, S. (2018). Local measurement-based technique for estimating fault location in multi-source DC microgrids. IET Generation, Transmission & Distribution, 12(13), 3305–3313.

    Article  Google Scholar 

  4. He, J., Chen, K., Li, M., Luo, Y., Liang, C., & Xu, Y. (2020). Review of protection and fault handling for a flexible DC grid. Protection and Control of Modern Power Systems, 5(1), 1–15.

    Article  Google Scholar 

  5. Mirsaeidi, S., Dong, X., Shi, S., & Tzelepis, D. (2017). Challenges, advances and future directions in protection of hybrid AC/DC microgrids. IET Renewable Power Generation, 11(12), 1495–1502.

    Article  Google Scholar 

  6. Aghdam, T. S., Karegar, H. K., & Zeineldin, H. H. (2019). Variable tripping time differential protection for microgrids considering DG stability. IEEE Transations on Smart Grid, 10(3), 2407–2415.

    Article  Google Scholar 

  7. Chaitanya, B. K., Yadav, A., & Pazoki, M. (2019). An improved differential protection scheme for micro-grid using time-frequency transform. International Journal of Electrical Power & Energy Systems, 111, 132–143.

    Article  Google Scholar 

  8. Gururani, A., Mohanty, S. R., & Mohanta, J. C. (2016). Micro-grid protection using Hilbert-Huangtransform basedifferential scheme. IET Generation, Transmission and Distribution, 10(15), 3707–3716.

    Article  Google Scholar 

  9. Sarangi, S., Sahu, B. K., & Rout, P. K. (2020). Distributed generation hybrid AC/DC microgrid protection: A critical review on issues, strategies, and future directions. International Journal of Energy Research, 44(5), 3347–3364.

    Article  Google Scholar 

  10. Shabani, A., & Mazlumi, K. (2019). Evaluation of a communication-assisted overcurrent protection scheme for photovoltaic-based DC microgrid. IEEE Transactions on Smart Grid, 11(1), 429–439.

    Article  Google Scholar 

  11. Beheshtaein, S., Cuzner, R. M., Forouzesh, M., Savaghebi, M., & Guerrero, J. M. (2019). DC microgrid protection: A comprehensive review. IEEE Journal of Emerging and Selected Topics in Power Electronics.

    Article  Google Scholar 

  12. Duan, J., Li, Z., Wei, Z., & Lu, W. (2020). A line accelerated protection scheme of flexible MVDC distribution system based on transient current derivative. Electric Power Systems Research, 183, 106269.

    Article  Google Scholar 

  13. Meghwani, A., Srivastava, S. C., & Chakrabarti, S. (2015). A new protection scheme for DC microgrid using line current derivative. In 2015 IEEE Power & Energy Society General Meeting (pp. 1–5). IEEE.

  14. Kar and S. R. Samantaray. (2014). Time-frequency transform-based differentialscheme for microgridprotection. IET Generation, Transmission and Distribution, 8(2), 310–320.

    Article  Google Scholar 

  15. Mohanty, R., & Pradhan, A. K. (2018). DC ring bus microgrid protection using the oscillation frequency and transient power. IEEE Systems Journal, 13(1), 875–884.

    Article  Google Scholar 

  16. Hedel, J., & Abuelrub, A. (2020). Reliability assessment of protection system for DC Ring microgrid using fault tree method. In 2020 7th International Conference on Electrical and Electronics Engineering (ICEEE) (pp. 106–110). IEEE.

  17. Salehi, M., Taher, S. A., Sadeghkhani, I., & Shahidehpour, M. (2019). A poverty severity index-based protection strategy for ring-bus low-voltage DC microgrids. IEEE Transactions on Smart Grid, 10(6), 6860–6869.

    Article  Google Scholar 

  18. Yang, Y., Huang, C., Zhou, D., & Li, Y. (2021). Fault detection and location in multi-terminal DC microgrid based on local measurement. Electric Power Systems Research, 194, 107047.

    Article  Google Scholar 

  19. Emhemed, A. A., Fong, K., Fletcher, S., & Burt, G. M. (2016). Validation of fast and selective protection scheme for an LVDC distribution network. IEEE Transactions on Power Delivery, 32(3), 1432–1440.

    Article  Google Scholar 

  20. Mohanty, R., & Pradhan, A. K. (2017). Protection of smart DC microgrid with ring configuration using parameter estimation approach. IEEE Transactions on Smart Grid, 9(6), 6328–6337.

    Article  Google Scholar 

  21. Akmaz, D., Mamiş, M. S., Arkan, M., & Tağluk, M. E. (2018). Transmission line fault location using traveling wave frequencies and extreme learning machine. Electric Power Systems Research, 155, 1–7.

    Article  Google Scholar 

  22. Vishnupriya, S., & Kanakasabapathy, P. (2016). Fault ride through for a DC ring bus microgrid. In 2016 International Conference on Energy Efficient Technologies for Sustainability (ICEETS) (pp. 11–16). IEEE.

  23. Saleh, S. A., Aljankawey, A. S., Errouissi, R., & Rahman, M. A. (2015). Experimental performance of the phase-based digital protection against arc flash faults. In 2015 IEEE Industry Applications Society Annual Meeting (pp. 1–10). IEEE.

  24. Ray, P. K., Mohanty, A., Panigrahi, B. K., & Rout, P. K. (2018). Modified wavelet transform based fault analysis in a solar photovoltaic system. Optik, 168, 754–763.

    Article  Google Scholar 

  25. Wang, X., Song, G., Gao, J., Wei, X., Wei, Y., Mostafa, K., Hu, Z., & Zhang, Z. (2019). High impedance fault detection method based on improved complete ensemble empirical mode decomposition for DC distribution network. International Journal of Electrical Power & Energy Systems, 107, 538–556.

    Article  Google Scholar 

  26. Mishra, M., Routray, P., & kumar Rout, P. (2016). A universal high impedance fault detection technique for distribution system using S-transform and pattern recognition. Technology and Economics of Smart Grids and Sustainable Energy, 1(1), 9.

    Article  Google Scholar 

  27. Thirumala, K., Pal, S., Jain, T., & Umarikar, A. C. (2019). A classification method for multiple power quality disturbances using EWT based adaptive filtering and multiclass SVM. Neurocomputing, 334, 265–274.

    Article  Google Scholar 

  28. Xiang, W., Yang, S., & Wen, J. (2019). ANN-based robust DC fault protection algorithm for MMC high-voltage direct current grids. IET Renewable Power Generation, 14(2), 199–210.

    Article  Google Scholar 

  29. Mohanty, R., Sri-Mukha-Balaji, U., & Pradhan, A. K. (2016). An accurate noniterative fault location technique for low-voltage DC microgrid. IEEE Transactions on Power Delivery, 31(2), 475–481.

    Article  Google Scholar 

  30. Das, S., Pradhan, A. K., Kedia, A., Dalai, S., Chatterjee, B., & Chakravorti, S. (2018). Diagnosis of power quality events based on detrended fluctuation analysis. IEEE Transactions on Industrial Electronics, 65(9), 7322–7331.

    Article  Google Scholar 

  31. Pavlov, A. N., Runnova, A. E., Maksimenko, V. A., Pavlova, O. N., Grishina, D. S., & Hramov, A. E. (2018). Detrended fluctuation analysis of EEG patterns associated with real and imaginary arm movements. Physica A: Statistical Mechanics and Its Applications, 509, 777–782.

    Article  Google Scholar 

  32. Du, W., Kang, M., & Pecht, M. (2020). Fault diagnosis using adaptive multifractal detrended fluctuation analysis. IEEE Transactions on Industrial Electronics, 67(3), 2272–2282.

    Article  Google Scholar 

  33. Chatterjee, S., Roy, S. S., Bose, R., & Pratiher, S. (2020). Feature extraction from multifractal spectrum of electromyograms for diagnosis of neuromuscular disorders. IET Science, Measurement & Technology, 14, 817–824.

    Article  Google Scholar 

  34. Martínez, J. L. M., Segovia-Domínguez, I., Rodríguez, I. Q., Horta-Rangel, F. A., & Sosa-Gómez, G. (2021). A modified Multifractal Detrended Fluctuation Analysis (MFDFA) approach for multifractal analysis of precipitation. Physica A: Statistical Mechanics and its Applications, 565, 12561.

    MATH  Google Scholar 

  35. Bhargav, R., Bhalja, B. R., & Gupta, C. P. (2019). Algorithm for fault detection and localisation in a mesh-type bipolar DC microgrid network. IET Generation, Transmission & Distribution, 13(15), 3311–3322.

    Article  Google Scholar 

  36. Fletcher, S. D. A., Norman, P. J., Galloway, S. J., & Burt, G. M. (2011). Determination of protection system requirements for DC unmanned aerial vehicle electrical power networks for enhanced capability and survivability. IET Electrical Systems in Transportation, 1(4), 137–147.

    Article  Google Scholar 

  37. Meghwani, A., Srivastava, S. C., & Chakrabarti, S. (2016). A non-unit protection scheme for DC microgrid based on local measurements. IEEE Transactions on Power Delivery, 32(1), 172–181.

    Article  Google Scholar 

  38. Javed, W., Chen, D., Farrag, M. E., & Xu, Y. (2019). System configuration, fault detection, location, isolation and restoration: A review on LVDC microgrid protections. Energies, 12(6), 1001.

    Article  Google Scholar 

  39. De Andrade, V., & Sorrentino, E. (2010). Typical expected values of the fault resistance in power systems. In 2010 IEEE/PES Transmission and Distribution Conference and Exposition: Latin America (T&D-LA) (pp. 602–609). IEEE.

  40. Liu, J., Tai, N., Fan, C., Chen, S., & Wu, P. (2016). A fault detection method for DC lines in VSC-HVDC system based on current correlation. In 2016 IEEE Power and Energy Society General Meeting (PESGM) (pp. 1–5). IEEE.

  41. Musa, M. H., He, Z., Fu, L., & Deng, Y. (2018). A correlation coefficient-based algorithm for fault detection and classification in a power transmission line. IEEJ Transactions on Electrical and Electronic Engineering, 13(10), 1394–1403.

    Article  Google Scholar 

  42. Guo, J., Li, A., & Zhang, R. (2020). Tool condition monitoring in milling process using multifractal detrended fluctuation analysis and support vector machine. The International Journal of Advanced Manufacturing Technology, 110(5), 1445–1456.

    Article  Google Scholar 

  43. Deng, L., & Zhao, R. (2014). Fault feature extraction of a rotor system based on local mean decomposition and Teager energy kurtosis. Journal of Mechanical Science and Technology, 28(4), 1161–1169.

    Article  Google Scholar 

  44. Chu, Z., & Hu, J. (2016). An improved recursive least square-based adaptive input shaping for zero residual vibration control of flexible system. Advances in Mechanical Engineering, 8(4), 1687814016646504.

    Article  Google Scholar 

  45. Gush, T., Bukhari, S. B. A., Haider, R., Admasie, S., Oh, Y. S., Cho, G. J., & Kim, C. H. (2018). Fault detection and location in a microgrid using mathematical morphology and recursive least square methods. International Journal of Electrical Power & Energy Systems, 102, 324–331.

    Article  Google Scholar 

  46. Jarraya, I., Hmad, J., Trabelsi, H., Houari, A., & Machmoum, M. (2019). An online grid impedance estimation using recursive least square for islanding detection. In 2019 16th International Multi-Conference on Systems, Signals & Devices (SSD) (pp. 193–200). IEEE.

Download references


Not applicable.


Not applicable.

Author information

Authors and Affiliations



KA contributed to the detailed simulation in this paper. PKD conceptualized the problem. MS edited the paper and suggested changes. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Pradipta Kishore Dash.

Ethics declarations

Competing interests

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Anjaiah, K., Dash, P.K. & Sahani, M. A new protection scheme for PV-wind based DC-ring microgrid by using modified multifractal detrended fluctuation analysis. Prot Control Mod Power Syst 7, 8 (2022).

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: