Advanced Fault Detection, Classification, and Localization in Transmission Lines: A Comparative Study of ANFIS, Neural Networks, and Hybrid Methods
Advanced Fault Detection, Classification, and Localization in Transmission Lines: A Comparative Study of ANFIS, Neural Networks, and Hybrid Methods
ABSTRACT Electric systems are getting more complex with time, and primitive protection methods such
as traveling wave and impedance-based methods face limitations and shortcomings. This paper incorporates
and presents the applications of an adaptive neuro-fuzzy inference system and compares it with a back
propagation neural network, self-organizing map, and hybrid method of discrete wavelet with adaptive
neuro-fuzzy inference system for fault detections, classification, and localization in transmission lines. These
methods, in comparison with primitive methods, could be capable of detecting, identifying, and predicting
the location of the faults more accurately. The IEEE 9-bus system is utilized to obtain data from one end of
the transmission line to develop an ANFIS-based model. This system is simulated in MATLAB/Simulink
for different fault cases at various locations. The three-phase voltage and current at one end of IEEE 9-bus
number seven are taken for training. Three ANFIS models are developed for fault detection, classification,
and localization and compared with other models. For verification of the models, mean square error, mean
absolute error, and regression analysis have been computed and compared for all the models. All four
techniques have performed well for fault classification, detection, and location. However, the percentage
error for the ANFIS-based fault model is less compared to backpropagation, self-organizing map, and
discrete wavelet transform with ANFIS. Therefore, the proposed ANFIS models can be implemented for
deploying in real-time-based protection systems.
INDEX TERMS ANFIS, SOM, DWT fault detection, classification and location, IEEE 9-bus system,
transmission line.
ground (BC-G), phase CA to ground (CA-G) faults. These a signal processing tool, was established in the
faults cause instability in the power supply and severe damage nineties [4], [8].
to the system and humans [2]. Locating faults quickly and The discrete variant of the wavelet transform (WT), known
accurately is vital to reduce the outage time and save the as the discrete wavelet transform (DWT), is widely used to
system from major damage. Intelligent fault detection, iden- analyze discrete or sampled signals. The demand for DWT
tification, and location will increase the electrical system’s techniques in digital relaying systems has been rising recently
reliability, restore the power system, and reduce the power in an era of digital communication and analysis [10].
system’s outage time [1], [3]. For the safety of transmission lines, different AI-based
Protecting a transmission line uses relays at both ends fault detection, classification, and Location techniques, such
that continuously monitor voltages and currents and respond as ANN, Fuzzy logic, and hybrid algorithms using integrated
to a fault. The most frequently utilized transmission line wavelet transform ANN, SVM, and fuzzy logic, have been
protection method is distance protection, with a line safety used for the past few years [9], [11], [14].
of around 85% [4]. Artificial neural networks, or ANNs, have traditionally
There are a few limitations in using phasor-based methods been used successfully in various fault analysis studies.
in the protection system. First, delay associated with relay ANN’s ability to learn independently is its most valuable
operation results in uncertainty in voltage protection. Second, feature.
to ensure quick tripping from both ends, it is necessary to The author in [11] suggested an ANN-based method in
employ a communication link between the relays at the two which a feed-forward neural network is used to detect and
ends of the line [5]. Relay communication links provide a classify transmission line faults.
cyber threat when relays are connected to substation local ANN is frequently combined with fuzzy logic inference to
area networks (LANs). create an Adaptive Neuro-Fuzzy Inference System (ANFIS)
Researchers have presented several methods for transmis- topology, which many researchers have utilized to provide
sion line fault detection and location methods; the broader adequate security measures [6], [12], [13].
categories are mentioned here: Conventional methods, Signal ANFIS is similar to a neural network, and the function is
processing-based methods, and Artificial intelligence-based the same as a fuzzy inference system. ANFIS is used for the
methods. location and classification of faults in a transmission line.
The conventional methods that are often used for the An adaptive network is a multilayer network where every
detection, classification, and localization of the fault in a node operates a particular function of the applied data set.
transmission line are the traveling wave method and the The process of the node varies from node to node.
impedance measurement-based method [6]. Single-end or The author in [1] presented a neuro-fuzzy technique to
two-end impedance techniques are suggested based on a investigate fault location estimates in power systems. The
variation of current and voltage signals gathered from a trans- development of a 264 km, 132 kV, 50 Hz transmission line
mission line terminal. Due to the high fault impedance, load model and the simulation of various faults using MATLAB
on the line, source characteristics, and shunt capacitance, Simulink. To train the ANFIS, wavelet-processed data from
the fault location error of the impedance-based method is both ends of the line are used, including the detailed features
high [7]. of the signal.
To calculate the fault’s distance, the traveling wave-based In contrast to other machine learning methods, the effec-
method compares the forward and backward propagation tiveness of the Adaptive Neuro-Fuzzy Inference System
of waves in a transmission line. This approach is more (ANFIS) as an estimation model is discussed in [2]. In [13],
accurate in finding faults in high resistance faults. How- to localize the fault site precisely, the method feeds the
ever, the challenges are the high sampling frequency, high data into ANFIS and computes the line impedance using the
cost, and computational complexity that make practical use approximation coefficients of these signals.
difficult [8]. The use of an ANFIS and ANN for the classifica-
Signal processing methods such as fast Fourier transform tion and localization of faults in a lengthy transmis-
(FFT), wavelet transform (WT), multiresolution analysis sion line is presented in [8]. Artificial intelligence-based
(MRA), and discrete wavelet transform are some of the machine learning techniques do better in specific tasks
famous methods. WT is entirely accurate and can identify the than other approaches. Using current and voltage data
fault characteristics using a faulty waveform’s decomposed from the source end, ANFIS and ANN are used to pre-
frequency components [9]. For the calculation of coefficients cisely identify fault types and pinpoint the transmission line
to be proper and precise, the FFT needs the signal to be issue. Global System For Mobile Communication (GSM)
stationary in the broad sense. However, most signals in power and Global Positioning System (GPS) based ANN model
systems are flexible and fluctuate over time concerning their has been developed in [15]. The challenge with such a
properties [4]. communication-based protection system is that it could be
To address several issues with Fourier transform more reliable, and there are always issues with cybersecurity
analysis techniques, multiresolution analysis (MRA), threats.
B. PROPOSED TECHNIQUE
1) ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM
ANFIS is a hybrid learning algorithm that best uses ANN
and fuzzy logic. An adaptive network is a multilayer network FIGURE 2. IEEE 9-bus system impedance diagram [17] [18].
Layer 5:
In this layer, all the inputs from the previous layer are
summed together to get the predicted output. The total sum
output is given by below equation:
X
O51 = yi
Xi
= wi fi = w1 p1 x1 ) + w1 (q1 x2 ) + (w1 r 1 + w2
i
p2 x2 ) + w2 (q2 x2 ) + (w2 r 2 (5)
The succeeding parameters can be solved using a least
FIGURE 3. ANFIS architecture with input features [19].
squares technique in this final layer. The final equation can
be written as:
and has a number of features that are compatible with the
p1
ANFIS system. q1
The mathematical structure of an Adaptive Neuro-fuzzy
r1
inference system with one prediction (output) y and two y = [w1 x1 w1 x2 w1 w2 x2 w2 ]
p2 = XW
(6)
inputs x1 (current) and x2 (voltage) is defined below [6].
q
2
The rule base has two Takagi and Sugeno-type fuzzy if- r2
then rules.
Rule I: If x1 is A1 and x2 is B1 , then f1 = pl x1 + q1 x2 + rl . The flow diagram for ANFIS techniques is shown in
Rule 2: If x1 is A2 and x2 is B2 , then f2 = p2 x1 + Fig.4. The steps followed for the ANFIS model are as
q2 x2 + r2 . follows [28], [29]:
The five layers of the ANFIS structure are as follows: Step 1. Select the area in the power system for study; in
Layer 1: this study, the area between bus seven and bus eight has been
Each node i in this layer has a node function. An adaptive selected as shown in Fig. 1.
node is present in this labeling. The fuzzy membership grade Step 2. Generate fault between bus seven and bus 8,
of the inputs is the layer’s executed output and is represented and capture the voltage and current values from one
as follows: end.
Step 3. Apply all fault conditions, AG, BG, CG, AB, BC,
O1i = µAi (x) (1) CA, ABG, BCG, CAG and no-fault
where A is the linguistic label connected to this node. isO1i Step 4. Change the fault position and collect the faulty
the membership function of µAi (x). Every MF (membership signal’s voltage and current (rms)values.
function) is changed according to the layer’s parameter. Step 5. Normalization of the data
Layer 2: Step 6. Select the structure of ANFIS
The nodes are fixed, nodes with the symbol π, which Step 7. Choose input and target data
denotes that they perform function as a multiplier. Each node Step 8. Train ANFIS with the dataset
in this layer multiplies the input signals to determine the Step 9. Test the models
firing strength of each rule before sending the result out. The Step 10. Compute and record the Mean square error and
equation is written as follows: coefficient of determination(R2 ) for the ANFIS-based detec-
tor, classifier, and location to check the performance of the
O2i = wi = πj=1
m
µAi (x) (2)
ANFIS model.
Layer 3:
The nodes in this layer are fixed nodes as well. The nodes
2) BACK PROPAGATION NEURAL NETWORK (BPNN)
marked with a N, as shown in Fig.3, indicate that the firing
The ability of ANNs to work with complex systems makes
strength has been normalized from the preceding layer. The
ANNS a good network for fault detection, classification, and
equation for this layer is represented as follows:
wi location [25].
O3i = w = (3) Some of the properties that make ANNs better to work for
w1 + w2 complex and nonlinear tasks are as follows:
Layer 4:
a) Every electrical system fault causes a change in the
Each node in this layer is an adaptive node, and the output
power system, and a neural network (NN) can reorga-
parameters are modified in this layer. The output, which com-
nize according to these changes
bined the first-order polynomial with the normalized firing
b) ANN can make decisions and learn through
strength, was processed for each node in the layer. As a result,
experience
this layer’s outputs are provided as follows:
c) Due to their numerical strength, they can carry out
O4i = yi = Wi fi = Wi (pi x1 + qi x2 + ri ) , i = 1, 2, .. (4) several tasks at once.
The ANN offers a lot of benefits, but it also has certain the models.
drawbacks. The choice of network type, the number of hidden v
u n
layers, the number of neurons, and the settings of the learning uX
RMSE = t ypredicted − yactual
2
(7)
method are some crucial elements [4]. There are several limi- i=1
tations, such as post-fault values of line currents and voltages
for fault identification and classification. The line current This way, it generates the error for fault detection, classifi-
and voltage of the fault transmission lines are considerably cation, and location against the fault generated in the IEEE
different before and after the incident. Therefore, determining 9-bus system for each case of fault. The final output of BPNN
the type of faults from pre- and post-fault value patterns is generated for sample j can be calculated as below:
necessary for the fault classification procedure. The BPNN n
X
basic structure and the network used in this paper are given in yj = ωk,j f (hk ) + βj (8)
Fig. 5a and 5b, respectively. Correct weight tuning in BPNN j=1
reduces the error rate [30]. Weights are selected at random. The ωk,j in equation 8 is the weight of hidden node k at the
The consequences are updated after each iteration or epoch, jth epoch. βj is the bias value of the output node at the jth
and the procedure is repeated. The following are some of age. f (hk ) is the output value of hidden node k. The fitness
BPNNs’ most valuable benefits: of values can be calculated using the Error in the equation
Backpropagation may function without having thorough below.
network expertise since it is simple, quick, and straightfor-
ward to implement [7], [32]. Fitness (x) = minimum(RMSE) (9)
As shown in Fig. 5c the simple flow diagram of
ANN-based fault detection. It just requires tuning a small 3) SELF ORGANIZING MAP (SOM) NEURAL NETWORK
number of input parameters, such as the number of hid- SOM is an extensively used neural model in the competitive
den layers and neurons in each hidden layer. Levenberg- learning network category. It uses unsupervised learning.
Marquardt backpropagation is used to modify the weights and Therefore, there is no need for human assistance during train-
biases of the training process. Additionally, the mean absolute ing or extensive prior knowledge of the input and output data.
error (MAE), root mean square error (RMSE), and mean SOM is used for tasks like clustering input data and locating
square error (MSE) can be used to calculate learning errors. the faults.
The following equation 7 is used to compute RMSE, The self-organizing map (SOM), which has strong visu-
which has been used in this paper for the performance of alization capabilities, is particularly well suited for data
FIGURE 6. a. SOM structure with clustered input b. Flow chart for SOM-based fault model.
In equation (10), Wi is the input vector, and Wi is the weight such as grid size and number of input features for fault detec-
vector of nodes. tion, classification, and location, are defined using the Matlab
Step 3. Calculating the size of BMU tool first, and changes are made in the SOM code according
n to the learning rate. The size of the grid as we test the grid
σ (n) = σ0 exp − (11) for larger size; the higher the size, the better. We tested for as
T
In equation 11, σ (n) is the width of the lettuce the at time high as a 60∗60 grid. After defining the features, we train the
zero, n is the epoch, and T is the time constant SOM model for detection, classification, and Location. After
Step 4. Weights adjustment can be done using equation (12) training, the training data and testing points to the SOM grid
and (13) using the SOM function in Matlab [20].
Then, the fault type, fault detected value, and fault location
Wnew = Wold +L (X−Wold ) (12) within each mapped neuron were retrieved for training data.
W (n + 1) = W (n) + L (n) (X (n) − W (n)) (13) The flow diagram of the whole process is given in Fig. 6b. The
In equations (12) and (13), L is the learning rate, Wnew new weights generated by the SOM model for each input is given
weights, Wold is old weights, and X is the input vector. in Fig. 8a and Fig. 8b shows the distance created between all
The learning rate is calculated at each epoch using the neighboring weights.
equation (14). 4) DISCRETE WAVELET TRANSFORM AND ANFIS
n
L (n) = L0 exp − (14) Wavelet transform, using information from the frequency
T domain and time domain, can detect and classify differ-
In this paper, we preprocessed the data: six features of three- ent kinds of faults. Wavelet transform is sensitive to signal
phase voltage and current. Meanwhile, the SOM parameters, abnormalities [22]. In this algorithm, the DWT is employed
FIGURE 8. a). Weights for each input, b) Neighbor distance between weights.
TABLE 1. Sample data set for the ANFIS-based fault detection, classification, and for location.
TABLE 2. Performance of ANFIS -based fault detection, classification and location model.
with the system post-fault rms values of three-phase voltage generated. According to the results shown in Table 1, the
and current, the model gives the output based on the fault system has the respective fault.
TABLE 3. Performance of ANN based fault detection, classification and location model.
The same inputs and outputs are employed by ANN and For the fault classification model of DWT-ANFIS, the detail
SOM-based classification models for training and testing. coefficient of the faulty current signal is used in addition to
TABLE 4. Performance of SOM -based fault detection, classification and location model.
the raw voltage and current signal values for training and 4) FAULT LOCATION
testing of the DWT-ANFIS model. The performance of all ANFIS fault location trained model is developed for six
models is simulated and recorded in Tables 6 and 7 for all the inputs and one output for four different locations. The Loca-
models. tion is in kilometers (km), and the eight various faults are
TABLE 6. Percentage error comparison of Ann, Anfis, Wt-Anfis, and som models.
FIGURE 9. The performance of ANFIS, ANN, SOM, and DWT-ANFIS models for testing: a. Fault detection, b: fault classification, c: fault location.
generated at 100km, 75km, 50km, and 25km. The model The first six columns in the Table are six inputs, and the
is trained with the generated data for 40 different fault last three columns are output data.
conditions.
The trained model is then tested with different conditions III. RESULT AND COMPARISON OF MODELS
and three-phase current and voltage values; the results are A total number of 40 different fault conditions have been
given in the next section. studied. Ten fault types are generated in the IEEE 9-bus sys-
The same inputs and outputs as in ANFIS are used with tem at four locations. Nine asymmetrical faults and no-fault
ANN and SOM models for training and testing to find the states to analyze the performance of the proposed technique.
Location of the fault generated in the system. For the Fault These faults were caused on transmission lines at four differ-
detection model of DWT-ANFIS, the detail coefficient of the ent locations at different times.
faulty current signal is used in addition to the raw voltage The ANFIS model is trained and tested for six inputs and
and current signal values for training and testing of the DWT- one output for fault detection. The results from the training
ANFIS model. The results for all the models are displayed in and testing of ANFIS are given in Table 2. Predicted fault
the results section in Tables 6 and 7. detection, classification, and Location have been recorded,
TABLE 7. Training and testing performance of ANN, ANFIS, DWT-ANFIS and SOM based models.
and percentage error has been computed for each case. The Fault detection in the SOM-based model is computed in
average percentage error for ANFIS-based fault detection, Table 4. The SOM clustered accurately for fault detection
type, and Location is 0.008%. -0.005% and 0.547%, respec- for all the faults and did not miss any fault with zero per-
tively. Which is less than zero. Compared to other models, centage error. In the case of SOM-based fault classification,
the based model can detect all faults accurately, as shown in the percentage error for all classifications is zero. However,
Table 2, it detected all faults correctly. For Fault classifica- the percentage error is more than one percent for AB-G fault
tion, the ANFIS model classified all fault classes with less classification at 100 km, as shown in Table. 4. Fault location is
than zero percent error. However, for the AB-G fault, the per- predicted well for most fault locations with zero percent error;
centage error is -1.224 at 100 km. For fault location, ANFIS however, it cannot detect the Location for two fault conditions
performed well with an average percent error of 0.547%. The at 100km and once for 50km, as shown in Table 4. The weight
root mean square error and mean absolute error are calculated plane representation of the SOM classes displaying each of
and recorded in Table 7. the six input features is shown in Fig. 8 (a), providing a visual
ANN-based models are given in Table 3. The average depiction of the weights that link each input to a single neuron
percentage error is recorded in Table 6. The average percent- in the 6∗8 hexagonal grid. Heavy weights are indicated by
age error for ANN-based Fault detection, classification, and darker hues than lighter ones. Six inputs are highly correlated
Location is zero, 0.268, and 0.348 percent. The root mean when they have comparable weight planes (color gradients
square error. It can detect the fault correctly with zero percent can be inverted or identical).
error and classify the error with less than zero percent error It was also shown that the weight ratios of voltage and
except for phase C to A fault at 25km and phase A to phase B current are opposite to one another when all four variables
fault at 50 km. are weighted equally. Consequently, the Euclidean interval
between each neuron’s class and its surroundings is shown IV. CONCLUSION
in Fig. 8(b). In this study, we compared the effectiveness of several meth-
The input space’s highly related regions are indicated by ods, including Artificial Neural Networks (ANN), Adaptive
the vivid connections. On the other hand, groups representing Neuro-Fuzzy Inference Systems (ANFIS), Self-Organizing
areas of the function space that have few or no members Maps (SOM), and a hybrid approach that combines Discrete
separating them are shown by the dark links. Wavelet Transform (DWT) with ANFIS, for fault detection,
Large swaths of the input space are divided by extended classification, and localization in transmission lines. Our
boundaries with dark connections, indicating that the groups study set out to investigate the effectiveness of these tech-
on either side of the boundary reflect substantially different niques in managing the complex tasks (faults) that are a part
neighborhoods. of power transmission networks.
The DWT-ANFIS-based fault model predicted results are Our findings show that the average percentage error for
computed and recorded in Table 5. The percentage error for each of the approaches under investigation differs signif-
fault detection for all the fault conditions is zero, as shown icantly. The average percentage error for the ANN-based
in Table 5. Performance of DWT-ANFIS based model needs models was 0.039, which is a good result. But with a
more improvement as the average percentage error for fault noticeably lower average percentage error of 0.0015, the
classification is -0.364% as shown in Table 6. For fault loca- ANFIS-based models beat their ANN counterparts, demon-
tion, the DWT-ANFIS-based model detected fault location strating the greater adaptability and robustness of the ANFIS
with a percentage error less than zero for most cases. Still, for technique in fault identification.
some, the percentage error is 1 percent, as shown in Table 5. The SOM-based models showed an average percentage
The average error for this model is recorded in Table 6. error of -0.197, which can be explained by the special proper-
The average percentage error for all the models is com- ties of SOMs and their effective mapping of high-dimensional
puted and recorded in Table 6. data to low-dimensional space. This negative error number
The performance of various models including ANN, shows how well the SOM-based models handled complicated
ANFIS, SOM, and DWT-ANFIS are illustrated in transmission line fault situations by continuously producing
Fig. 9 a, b, and c, representing fault detection, classifica- findings that were closer to ground truth values.
tion, and location respectively. Fig. 9a showcases the fault Additionally, with an average percentage error of -0.103,
detection capabilities of these models across forty distinct the hybrid strategy that combined DWT with ANFIS demon-
scenarios, each assessed with a testing dataset comprising strated a significant improvement. This enhancement high-
400 instances. The simulation was conducted for fault (1) lights how well DWT and ANFIS operate together, using
and no-fault (0) conditions, with all models demonstrating DWT’s signal processing capabilities to improve the ANFIS
accurate detection capabilities for both scenarios. framework’s fault detection, classification, and location
For fault classification, depicted in Fig. 9b, the models’ accuracy.
performance is evaluated across ten fault classes (AG, BG, Overall, our comparative analysis demonstrates how well
CG, AB, BC, CA, ABG, BCG, CAG) as well as the no-fault ANFIS and hybrid approaches work to address the problems
case. While overall performance was satisfactory, certain related to fault localization, classification, and detection in
fault classes exhibited lower accuracy, particularly with ANN transmission lines. These results highlight the need of utiliz-
and DWT-ANFIS models. ing cutting-edge computational methods and hybrid strategies
In the context of fault location prediction, the models were to improve the dependability and effectiveness of electricity
tested across four distinct locations. ANFIS and SOM notably transmission networks.