Fault Detection and Classification Using
Fault Detection and Classification Using
Fault Detection and Classification Using
https://doi.org/10.22214/ijraset.2023.50867
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
Abstract: Machine learning plays a crucial role in predicting and clas- sifying faults in electrical power systems. The complexity
and dynamic nature of these systems make them vulnerable to disturbances and elec- trical faults. Detecting faults in the circuit
can aid in maintaining the system by preventing potential damage from occurring. It is particularly important to be able to locate
faults in transmission lines to minimize power and revenue losses. In this study, MATLAB software will be uti- lized to simulate
and locate faults in transmission lines. A transmission line model will be designed, and a fault toolbox will be employed to cre-
ate various faults. These faults will be saved and used to train machine learning models to identify the best algorithm with high
precision and accuracy.
Keywords: Machine learning· Fault classification· MATLAB· Power sys-tems.
I. INTRODUCTION
The task of fault detection and classification (FDC) holds significant importance in a range of industries, including transportation,
energy, and manufacturing. The primary objective of FDC is to recognize any abnormal conditions present in a given system or
process and categorize them into distinct fault categories. This process can aid in the prevention of system failures, reduction of
down- time, and improvement of overall productivity. With the emergence of machine learning (ML), FDC has become more
efficient as it can learn patterns and re- lationships automatically from large amounts of data. ML algorithms can be trained on data
collected from MATLAB Simulink models to accurately detect and classify faults. Additionally, ML-based FDC has the capability
to adapt to changing conditions and learn from past experiences, making it more effective than conventional rule-based methods.
© IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3063
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
Therefore, it is important to explore alter- native methods such as impedance-based techniques and traveling-wave-based fault
location and integrate them into algorithms and online simulations to find an efficient means of detecting faults.
With the rapid advancements and constant changes in technology, the de- mand for power continues to rise steadily. As a result, it is
imperative to en- sure the safe, efficient, and maximum delivery of power. Rajput and Chaturvedi conducted a MATLAB simulation
which demonstrated that the software is a proficient tool for executing algorithms to detect faults in transmission lines [5]. Out of
the various simulations and techniques tested, online simulations proved to be a viable option, as they are cost-effective and easily
modifiable.
Learning to Optimize" is a research paper presented at the International Conference on Machine Learning (ICML) in 2018[6]. The
paper proposes a new approach to optimization that learns to optimize using deep neural networks. The traditional optimization
methods used in machine learning involve finding the best values for a set of parameters in a given function. However, these
methods can be slow and inefficient for complex functions, and they often require man- ual tuning. Overall, "Learning to Optimize"
presents an innovative approach to optimization that has the potential to improve the efficiency and effectiveness of machine
learning algorithms. The paper provides valuable insights into the application of deep learning to optimization problems and has
implications for the development of more efficient and effective machine learning systems.
Fig. 1. Simulink block model of the Transmission Line System featuring a connected fault block.
© IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 30
64
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
V. METHODOLOGY
A. Methodology for creating MATLAB Simulink Model
1) Model Preparation
Created a Simulink model as described in figure 1, and set parameters as described above. we began by constructing a transmission
line block system in Simulink. The specific blocks used were the following: 1. Three-Phase Pi Section Line 2. Connec- tion Port 3.
Three-Phase Fault 4. Three-Phase V-I Measurement 5. Three-Phase Source 6. Powergui 7. Scope 8. From 9. To Workspace
We initiated the creation of a Transmission Line system by generating a Three-Phase Pi Line subsystem. This involved importing
five Three-Phase Pi Line blocks and six connection port blocks into the workspace. In Matlab R2013, these blocks should be found
in Simscape > Electrical > Specialized Power Systems > Fundamental Blocks > Elements.
As part of the theoretical assumptions of an ideal transmission line system,we did not modify the default settings of the Three-Phase
Pi Section Line blocks. These blocks were then connected in the manner depicted below. The blocks were then connected in the
manner shown below.
After setting up the Three-Phase Pi Section Line blocks as described above, we selected all the blocks and used the Ctrl+G keyboard
shortcut to create a subsystem block.
The Three-Phase Source block will act as the voltage source of the transmis-sion line circuit.
The Voltage (Vabc) and Current (Iabc) measurements will be taken on this block.
© IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3065
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
The second Three-Phase V-I Measurement block did not perform any mea- surements. Instead, it functioned as a relay bus for the
circuit.In this block select voltage and current measurements as ’no’.
To decrease simulation computation time, the Powergui block was set to Discrete-time. The sample time was set to 3e-5, although
this value is arbitrary. Lower sample times will generate more accurate results at the expense of longer computation times. Prior to
running any simulations, no faults were enabled in the Fault block.
2) Signal Selection
Selected the signal’s voltage and current as parameters for data collection and evaluation from respective scopes.
Simulation: simulated Simulink model with the selected signals to generate data. The simulation can be run for a specific time
period, here we chose it around 0.5 or until a specific event occurs, such as a fault or a change in the system operation.
B. Methodology For Fault Detection And Classification Using Machine Learning In Power System Considered
1) Data Collection: Collected fault data from MATLAB workspace. This data includes signals relevant to the system’s operation,
such as voltages and currents only in the range where the fault occurred, and added 4 columns[G, C, B, A] to represent various
faults in binary format.
2) Data Labeling: Labeled the extracted features with the corresponding fault type as shown above in the data collection and
preprocessing section of Matlab methodologies.
3) Data Visualization: Data visualization plays a significant role in fault de- tection and classification using machine learning. It
helps in identifying patterns and anomalies that may indicate faults, understanding the relationship between different variables
and their impact on the system, and aiding in feature selec- tion for building accurate machine learning models. Here, the data
visualization libraries used are Seaborn, and Matplotlib.
© IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 30
66
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
4) Model Training: Trained the selected machine learning model using the labeled data. This involves using a portion of the
labeled data to train the model(Train data: 80 percent) and another portion to validate the model’s per- formance.
5) Model Testing: Tested the trained model using additional data that was not used in the training phase( Test data: 20 percent).
This is necessary to evaluate the model’s performance on new, unseen data.
6) Data Encoding: Labeled the extracted features with the corresponding fault type. as shown in the figure 4.
7) Model selection: By performing all suitable machine learning models an optimal model was chosen for the task of fault
detection and classification. Which possesses the necessary capabilities to effectively handle the unique features of the collected
power system data. This model has been shown to achieve a higher degree of accuracy in accurately classifying different types
of faults.
This link guides you through Machine Learning Code in Github: click here.
© IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3067
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
Fig. 5. Parameters on 3 phase fault block (ex: fault between line C and Ground.)
© IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 30
68
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
Phase peaks abruptly at around 0.02 seconds, causing destabilization, whereas the currents in the other phases remain stable
throughout the simulation. The fault can occur when A and B, B and C, or A and C are connected to the ground. The voltage
experiences significant fluctuations during the fault, while the cur- rent in the faulted phase peaks at the beginning of the fault and
continues to fluctuate. The current in the non-faulted phase remains stable. The results indi- cate that the fault occurred at
approximately 0.02 seconds, causing the voltage to drop to 0 and the current in the faulted phase to peak. After approximately 1
second, both voltage and current stabilize. For line-to-line faults and beyond, the behavior is similar to that of multi-line-to-ground
faults.
VIII. CONCLUSION
MATLAB Simulink can be a potent tool to simulate transmission line faults. Before creating our own simulation model, this study
explored different trans- mission line fault detection techniques proposed in recent studies. They demon- strated how various
algorithms can be used to assess faults. The study then explained how to create a Transmission Line simulation model in Simulink,
in- cluding creating a cascaded Three-Phase Pi Line subsystem. The Three-Phase fault block was used for fault detection
simulations and connected across the circuit to simulate different fault scenarios. These scenarios showed different outcomes, with
voltage destabilization and lowering, and abrupt increases in current. The model was simulated in discrete time to reduce
computation time. The data collected was then fed into all suitable machine-learning models and we chose a model with greater
accuracy i.e Random forest. In summary, this study has successfully demonstrated the effectiveness of MATLAB and Machine
learning in simulating and detecting transmission line faults and classifying them with high accuracy.
REFERENCES
[1] H.H Goh et al., “Fault Location Techniques in Electrical Power System: A Review,” Indonesian Journal of Electrical Engineering and Computer Science, Vol.
8, No. 1, pp. 206 - 212, 2017.
[2] C. Tharani, M. Nandhini, R. Sundar, and K. Nithiyananthan, “MATLAB based Simulations model for three phases Power System Network,” International Journal
for Research in Applied Science Engineering Technology (IJRASET), vol. 4, p. 502-509, 2016.
[3] S. Karekar, V. Thakur and M., “A Novel Scheme of Transmission Line Faults Analysis and Detection by Using MATLAB Simulation,” International Journal
of Engineering Research and General Science, Vol. 4, No. 1, 2016.
[4] M. Salehi, et al. “Determining minimum number and placement of fault detectors in transmission network for fault location observability,”International Journal of
Electrical Power and Energy Systems, vol. 124, 2020.
[5] S. Rajput and K.T. Chaturvedi, “Transmission Line Fault Analysis by Us- ing Matlab Simulation,” IJREE - International Journal of Research in Electrical
Engineering, vol. 3, no. 4, 2016.
[6] "Learning to Optimize" by Yutian Chen, Matthew W. Hoffman, Sergio Gomez Colmenarejo, Misha Denil, Timothy P. Lillicrap, and David Duvenaud.
Conference: International Conference on Machine Learning (ICML), 2018.
© IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3069