Introduction

In order to link electrical devices and allow electricity to go from generation terminals to consumers, the power network is necessary. However, the network is vulnerable to electrical faults caused by adverse weather conditions, resulting in damage to power conductors and disruptions in power flow. To address this, a protective relaying scheme with a synchronizing mechanism is needed to isolate faulty equipment from the functioning network [1]. The existing protection scheme, known as distance protection, calculates impedance at relay points but has drawbacks such as tripping during normal conditions, temporary faults, power swings, and overloads [2]. Frequent false tripping can lead to system blackouts, necessitating alternative methods for safeguarding electrical components. A prospective scheme should provide fast fault detection and isolation of faulty equipment through a relay mechanism, aided by digital communication and global synchronization [3, 4]. Currently, power network security primarily focuses on electrical problems, but mechanical damage can also occur. To ensure comprehensive protection, the monitoring of connected devices should cover both electrical and mechanical aspects. IoT devices can be utilized alongside electrical measurements to monitor the power distribution system for issues such as voltage fluctuations, power loss, and power imbalance. The installation of shunt/series compensating devices can help mitigate these complications. The protection scheme should address faults in the main and microgrid, considering different current flow directions and magnitudes [5]. Modern compensating devices, employing power electronics switching devices, require special protection schemes. A static Var Compensator (SVC) made up of TCR,TSC,FC and a mix of photovoltaic and wind energy sources is the test system that has been proposed [6, 7].However, the presence of FACTS devices, particularly in SVC connected systems, introduces challenges related to under-reach phenomena [8]. Wavelet detailed coefficients are used for fault detection and discrimination, while artificial neural networks (ANNs) are employed to locate faults in the power network based on current measurements [9, 10]. Power systems are complex and immense, requiring efficient decision-making methods for operation and control tasks. With the integration of renewable energy sources and evolving demand patterns, power grid operations have undergone significant transformations. To address the resulting complications and unknown models, supervised and unsupervised machine learning algorithms [11] have been rapidly adopted for predicting the stability of different types and sizes of power systems during sudden changes using a specialized machine learning technique called twin convolution support vector machine (TCSVM) [12]. This method involves collecting and processing power system data, creating a model that combines aspects of image analysis and classification, training and validating the model, and potentially applying it to real-world power systems to predict stability outcomes. The ultimate goal is to develop a versatile and accurate tool for power system engineers to assess transient stability [13, 14].

The conventional algorithms used previously took a considerable amount of time, approximately 2 cycles, to identify and differentiate faults. Additionally, there was a deficiency in physically monitoring system performance. The proposed research emphasizes IoT monitoring of solar energy, wind energy, and reactive power compensated devices within a wide-area power network, achieving a security level of less than half a cycle time using Multi-Resolution Analysis (MRA) with wavelet coefficients derived from the Bior-1.5 mother wavelet. This study seeks to improve the digital relays' interaction with the power network, facilitating quicker isolation of faulty equipment compared to traditional methods.

Mathematical modeling and System Analysis

The wind farms and PV-Solar sources are natural and sustainable energy resources that generate electricity through the transformation of solar and wind energy. In the test power network, a Static Var Compensator (SVC) is incorporated for reactive power compensation, along with Photo-Voltaic (PV) and wind energy sources. The mathematical modeling of these devices is described as follows:

Photovoltaic(PV)Solar Source

The investigation on how high-voltage power transmission lines affect photovoltaic energy output might have the effects of high-voltage power transmission lines on photovoltaic (PV) power generating systems' output and efficiency. As solar energy becomes a prominent renewable source, understanding the interaction between PV panels and nearby transmission lines is crucial for efficient energy integration. We analyze the effects of electromagnetic interference, shadowing, noise, and vibrations caused by transmission lines on PV systems. The extent to which these factors impact PV panel performance and overall energy production. Additionally, we explore potential mitigation strategies to minimize these adverse effects and enhance the reliability of solar energy integration. The findings of this study contribute to informed urban planning, solar farm design, and sustainable energy policy decisions. The insights gained hold significance for both optimizing renewable energy systems and ensuring the seamless integration of solar power into existing grids [15, 16].

The mathematical modeling of a solar photovoltaic (PV) system involves describing the electrical behavior of the PV module and its relationship with solar irradiance and temperature conditions. Overall, the mathematical model of a solar photovoltaic system combines the electrical behavior of the PV module, the influence of solar irradiance, and the temperature dependence to predict the power output under different operating conditions. These models are essential for system design, performance evaluation, and optimization of solar PV systems.

A mathematical model of a solar photovoltaic (PV) system describes the relationship between various parameters and components involved in the generation of electricity from sunlight. The model typically takes into account factors such as solar irradiance, temperature, efficiency of the PV cells, and other system-specific parameters. Here's a simplified example of a mathematical model for a solar PV system:

Solar Irradiance (G): the amount of solar energy received per unit area, usually measured in watts per square meter(W/m2).

Temperature (T): the operating temperature of the PV cells. Higher temperatures can reduce the efficiency of the cells.

PV Cell Efficiency (η): the efficiency of converting sunlight into electricity, expressed as the ratio of electrical power output to solar energy input.

PV Array Area (A): the total area covered by the PV modules.

Electrical Power Output (Pout): the actual electrical power produced by the PV system.

When it comes to the mathematical modeling of a solar photovoltaic (PV) system, it includes the representation of the PV module’s electrical behavior and how it relates to temperature and solar ir- radiance. A solar photovoltaic system’s mathematical model combines the PV module’s electrical properties, the effect of sun irradiation, and temperature dependency to predict power output under various operating scenarios involved in producing energy from sunshine. Commonly, this model takes into account variables like temperature, solar irradiation, PV cell efficiency, and other system-specific characteristics. An illustration of such a mathematical model for a photovoltaic system may be found here:

The mathematical model can be represented as:

$${P}_{{\text{out}}}= G X A X \eta X f\left(T\right)$$

where Pout is the electrical power output of the PV system. G is the solar irradiance. A is the PV array area. η is the PV cell efficiency. f (T) is a function that considers the temperature effect on efficiency. The function f (T) could be a simple linear or nonlinear relationship that considers the temperature coefficient of the PV cells. Generally, as temperature increases, efficiency decreases. A few essential formulas for modeling solar photovoltaic (PV) systems. Remember that these are simplified versions of the equations; real-world models might have more intricate variables and parameters. Here is a summary of a few key equations: Equation for the characteristic of current–voltage (IV): The behavior of a PV cell or module under various operating conditions is described by the IV characteristic equation. Frequently employed is the Shockley diode equation:

$$I={I}_{\text{ph}}-{I}_{\text{sat}}\left({\text{exp}}\left(\frac{V+I\cdot {R}_{\text{ser}}}{a\cdot {V}_{\text{th}}}\right)-1\right)$$
(1)

where I, Iph, Isat is the cell/module current, photo current(current generated by light),reverse saturation current. V is the voltage across the cell/module terminals. Rser is the series resistance. a is the diode ideality factor. Vth is the thermal voltage (kT/q, where k is Boltzmann’s constant, T is temperature, and q is the elementary charge).

PV Characteristic Equation: the power–voltage (PV) characteristic of a PV cell/module provides insights into its power generation capabilities:

$$ P = I \cdot V $$
(2)

where P is the power output of the cell/module.

Single-Diode Model: this is an extended version of the IV characteristic equation that includes parameters like shunt resistance (Rsh) and considers the non-ideal behavior of the PV cell/module:

$$I={I}_{\text{ph}}-{I}_{\text{sat}}\left({\text{exp}}\left(\frac{V+I\cdot {R}_{\text{ser}}}{a\cdot {V}_{\text{th}}}\right)-1\right)-\frac{V+I\cdot {R}_{\text{ser}}}{{R}_{\text{sh}}}$$
(3)

Temperature Effects: the PV cell/module efficiency and performance are influenced by temperature. The temperature adjusted IV equation considers this effect:

$$ I = I_{{1}} + I_{{2}} $$
(4)
$${I}_{1}={I}_{\text{ph}}-{I}_{\text{sat}}\left({\text{exp}}\left(\frac{V+I\cdot \left({R}_{\text{ser}}+{R}_{temp}. \Delta T\right)}{a\cdot {V}_{\text{th}}}\right)-1\right)$$
(5)
$${I}_{2}=-\left(\frac{V+I\cdot \left({R}_{\text{ser}}+{R}_{temp}. \Delta T\right)}{{R}_{sh}}\right)$$
(6)

This equation describes the current–voltage (IV) relationship of a photovoltaic cell/module, accounting for temperature effects. It includes terms for photocurrent (Iph), reverse saturation current (Isat), voltage (V), series resistance (Rser), temperature-dependent series resistance (Rtemp), diode ideality factor (a), thermal voltage (Vth), temperature difference (∆T), and shunt resistance (Rsh). Where ∆T is the temperature difference from the reference temperature.

System-Level Equations: to model a complete solar PV system, you’d integrate the cell/module models into a system- level model that includes factors like shading, inverter efficiency, and electrical losses. The system’s overall power output can be estimated as the total of each cell’s or module’s individual power outputs:

$${P}_{{\text{out}},{\text{system}}}=\sum_{i=1}^{n}{P}_{{\text{out}},{\text{cell}}}$$
(7)

These equations provide a foundation for modeling solar PV systems. Keep in mind that real-world modeling can involve additional complexities and factors, and specialized software tools are often used for accurate system simulations (Figs. 1, 2, 3).

Fig. 1
figure 1

CircuitequaltoaPVcell

Fig. 2
figure 2

The PVequivalentcircuit-Array

Fig. 3
figure 3

Solar PV model representation

The following is a description of the photovoltaic (PV) array’s mathematical equivalent circuit: the solar irradiance (Ir), (Isc) and (ki) short-circuit current and constant, and operating temperature (T) in Kelvin are used to calculate the photo current (Iph) of the PV cell. This formula is used to calculate it.

$${I}_{ph}=\frac{\left[{k}_{i}\left(T-298\right)+Isc\right]\times {I}_{r}}{1000}$$
(8)

The module saturation current (I0) is computed using the Richardson-Dushman equation. It depends on the reverse saturation current of the cell (Irs), the Boltzmann constant (k), the ideality factor (n), the temperature (T), and the band gap energy (Eg0). The formula for I0is given by

$${I}_{0}={I}_{rs}{\left[\frac{T}{{I}_{r}}\right]}^{3}{\text{exp}}\left[\frac{q\times {E}_{g0}}{nk}\left(\frac{1}{T}-\frac{1}{{T}_{r}}\right)\right]$$
(9)

where Tr is the reference temperature (298.15 K) and Eg0is the band gap energy (1.1 eV).

The thermal voltage (Vt) is determined during the Boltzmann constant (k) and the absolute temperature (T) in Kelvin:

$${V}_{t}=\frac{k\times T}{q}$$
(10)

The shunt current (Ish) represents the current flowing through the shunt resistance (Rsh).It is computed based on the voltage across the shunt resistance (V) and the number of modules in parallel (Np) and series (Ns), as well as the series resistance (Rs). The formula for Ish is given by:

$${I}_{{\text{sh}}}=\frac{V\times \frac{{N}_{p}}{{N}_{s}}+1\times {R}_{s}}{{R}_{{\text{sh}}}}$$
(11)

Solar energy modules may instantly transform radiant solar energy into low voltage, which is then increased to the required voltage level using DC–DC converters and switch-mode regulators. For a variety of grid connections and applications, this regulated DC output voltage is suitable.

Wind Energy Conversion System modeling

The wind energy source captures the kinetic energy from moving air to produce electrical power. Its mathematical representation incorporates various characteristics of the wind turbine, encompassing the power coefficient, wind velocity, and turbine parameters. This model takes into account factors like wind direction, fluctuations in wind speed, and the efficiency of the turbine to compute the resulting power output.

Wind energy is transformed into electrical energy during the process, producing a low alternating current (AC) voltage output. A mix of buck and boost converters is used to raise this AC voltage output to an appropriate transmission level [17]. The Doubly-Fed Induction Generator (DFIG) wind turbine, which is the centerpiece of the proposed system, is made up of necessary parts. These DFIG turbines, which are commonly used, generate electricity by using coupled turbines and generators to capture the kinetic energy of the wind [18]. The generator has windings on its rotor and stator that can send electricity to the utility grid.

The generator boasts distinctive features, including a grid-connected stator and a bidirectional power converter integrated into the rotor, as depicted in Fig. 4. These components consist of two IGBT bridge voltage-source converters linked to a DC connection. This configuration enables the system to dynamically adjust its frequency. The following equations elucidate how modulation of the turbine rotor's blade angle governs the strength and rotational speed of powerful winds.

Fig. 4
figure 4

Model for producing energy from windmill

The development of the mathematical model for the Doubly-Fed Induction Generator (DFIG) relies on the application of fundamental principles from the domains of electrical and mechanical systems. These principles are leveraged to elucidate the dynamic behavior of the DFIG. Specifically, the derivation of the DFIG model equations is rooted in the principles of electromagnetism and rotational mechanics.

As seen in Fig. 4, the generator has unique characteristics such as a bidirectional power converter built into the rotor and a stator connected to the grid. Two IGBT bridge voltage-source converters connected to a DC connector make up these parts. With this setup, the system can dynamically change its frequency. The strength and rotational speed of strong winds are controlled by varying the blade angle of the turbine rotor, as shown by the following formulae.

Representing the parts and interactions of a wind turbine system is necessary when developing a mathematical model for a Wind Energy Conversion System (WECS). An overview of the essential elements and formulas used frequently in wind energy system modeling is provided below.

$${P}_{{\text{turbine}}}(\vartheta ) = \left\{\begin{array}{c}0, \vartheta <{\vartheta }_{{\text{cut}}-{\text{in}}}\\ 0, \vartheta >{\vartheta }_{{\text{cut}}-{\text{out}}}\\ \begin{array}{c}\frac{1}{2}\rho .\Delta .{{C}_{p}(\vartheta ). {\vartheta }^{3}}_{ , {\vartheta }_{{\text{cut}}-{\text{in}}}\ge \vartheta \ge {\vartheta }_{{\text{rated}}}}\\ {{P}_{{\text{rated}} ,}\vartheta }_{{\text{rated}}}\ge \vartheta \ge {\vartheta }_{{\text{cut}}-{\text{out}}}\end{array}\end{array}\right\}$$
(12)

where v is the wind speed. ρ is the air density. A is the swept area of the rotor. Cp(v) is the power coefficient at a given wind speed. Prated is the rated power of the turbine. vcut-in isthecut-inwindspeed.vratedistheratedwindspeed.vcut-outisthecut-outwindspeed.

Generator Model: the electrical power output from the wind turbine generator depends on the mechanical power captured from the wind and the generator’s efficiency. It can be represented as:

$${P}_{\text{gen}}={\eta }_{\text{gen}}\cdot {P}_{\text{turbine}}$$
(13)

where \({\eta }_{\text{gen}}\) is the generator efficiency.

Transmission and Distribution Losses: the power delivered to the grid is further reduced by losses in the transmission and distribution system:

$${P}_{\text{grid}}={P}_{\text{gen}}-{P}_{\text{loss}}$$
(14)

Differential equations are used to describe the mechanical and electrical dynamics involved in wind turbine reaction to changing wind conditions. Pitch, yaw, and torque control are examples of control strategies that maximize performance. Statistical distributions for wind speed at hub height are used in wind resource models. Turbulence and air density are examples of environmental factors that affect turbine performance. Real-world wind energy conversion system models grow complex and are frequently simulated using programs such as FAST. Key formulas and parts are needed to model a doubly fed induction generator (DFIG) in wind systems.

The stator equations for a DFIG are similar to those of a standard induction generator. The stator currents \({i}_{as},{i}_{bs},{i}_{cs}\) are related to the stator voltages \({v}_{as},{v}_{bs},{v}_{cs}\) and stator resistance \({R}_{s}:\)

$${v}_{as}={R}_{s}{i}_{as}+{L}_{s}\frac{d{i}_{as}}{dt}+p{\uplambda }_{m}sr{i}_{ar}$$
(15)
$${v}_{bs}={R}_{s}{i}_{bs}+{L}_{s}\frac{d{i}_{bs}}{dt}+p{\uplambda }_{m}sr{i}_{br}$$
(16)

where

L_s is the stator self-inductance.

sis the slip frequency.

p is the number of pole pairs.

\({\lambda }_{m}\) is the magnetizing current coefficient.

\({i}_{ar} {\text{and}} {i}_{br}\) are the real and imaginary parts of the rotor current.

r is the rotor resistance.

The rotor equations describe the rotor currents \({i}_{ar},{i}_{br}\) and rotor voltages \({v}_{ar},{v}_{br}\) in terms of slip frequency, rotor resistance, and rotor inductance \({L}_{r}\):

$${v}_{ar}={R}_{r}{i}_{ar}+{L}_{r}\frac{d{i}_{ar}}{dt}-p{\uplambda }_{m}sr{i}_{as}$$
(17)
$${v}_{br}={R}_{r}{i}_{br}+{L}_{r}\frac{d{i}_{br}}{dt}-p{\uplambda }_{m}sr{i}_{bs}$$
(18)

Torque Equation:

The electromagnetic torque \({T}_{\text{em}}\) generated by the DFIG is related to the rotor currents and voltages:

$${T}_{\text{em}}=\frac{3}{2}p{\uplambda }_{m}\left({i}_{ar}{i}_{bs}-{i}_{br}{i}_{as}\right)$$
(19)

Mechanical Equations:

The mechanical equations describe the rotational dynamics of the DFIG's shaft. The mechanical torque \({T}_{\text{m}}\) applied to the shaft and the electromagnetic torque are related by the moment of inertia J and the angular acceleration \(\dot{\upomega }\):

$$J\frac{\mathrm{d\omega }}{{\text{d}}t}={T}_{\text{m}}-{T}_{\text{em}}$$
(20)

DFIGs often incorporate control strategies to regulate various parameters. These strategies may include pitch control, active and reactive power control, and rotor-side converter control.

When connected to the grid, the DFIG's behavior is influenced by the grid voltage and frequency. Equations related to the grid-side converter are used to control the interaction between the DFIG and the grid.

These equations provide a foundation for modeling a Doubly Fed Induction Generator. To perform simulations and analyzes, software tools like MATLAB/Simulink, and specialized DFIG simulation packages can be used to create and study dynamic models of DFIG-based wind energy systems.

Static Var Compensator (SVC)

In order to maintain a constant voltage level on a bus, a Static VAR Compensator (SVC) is a device that effectively controls capacitive or inductive currents in an electrical power system. The inductance can be continuously changed from zero to its maximum value. These components define the operational range of the SVC and enable it to create or absorb the required reactive power as necessary.

The simplified diagram of the SVC and its control model is depicted in Fig. 5.

Fig. 5
figure 5

Diagram of the SVC and control system

The core configuration of the TCR encompasses a fixed reactor with an inductance denoted as 'L', along with two bidirectional thyristor valves connected in series. These valves serve for conduction and blocking modes and are regulated using a firing angle indicated byα.

The instantaneous phase voltage 'v(t)' in the Static Var Compensator (SVC) equivalent circuit, as shown in Fig. 6a, can be represented by the following equation:

Fig. 6
figure 6

Operation and analysis of SVC

$$v\left(t\right)=\sqrt{{v}_{dc}^{2}+{v}_{ac}^{2}\cdot {\text{sin}}\left(\upomega t-\upphi \right)}$$
(21)

In this equation, vdc represents the DC voltage component, vac stands for the AC voltage component, ω is the angular frequency, t- denotes time, and ϕ represents the phase angle. For the calculation of current in the equivalent circuit of the SVC as presented in Fig. 6b, The instantaneous current is calculated as:

$${I}_{L}\left(\upomega t\right)=\frac{\sqrt{2V}}{{X}_{L}}\left({\text{sin}}\left(\upomega t\right)-{\text{sin}}\left(\mathrm{\alpha }\right)\right)$$
(22)

The relationship \(\sigma =\upphi - 2\alpha \) suggests that the conduction angle \(\upsigma \) can be determined by subtracting twice the firing angle \(2\alpha \) from the phase angle \(\upphi \). This equation is useful for calculating the portion of each AC cycle during which the thyristor conducts, based on when it is triggered to start conducting (the firing angle).

The control voltage at the SVC bus is denoted as the input, \(\Delta {V}_{{\text{svc}}}\). The susceptance value is determined by the firing angle and is regulated through a proportional-integral (PI) control loop with reference voltage \({V}_{{\text{ref}}}\) for the SVC, as illustrated in Fig. 6b.

The linearized state-space representation is as follows:

$$\Delta \dot{{V}_{0}}=-\frac{1}{{T}_{2}}\Delta {V}_{0}+\frac{{k}_{{\text{svc}}}}{{\upomega }_{s}}\left(\frac{1}{{T}_{2}}\right)\mathrm{\Delta \omega }+\frac{{k}_{{\text{svc}}}}{{\upomega }_{s}}\left(\frac{{T}_{1}}{{T}_{2}}\right)\mathrm{\Delta \omega }$$
$$\Delta \dot{\mathrm{\alpha }}=-{k}_{1}\Delta {V}_{0}+{k}_{1}\Delta {V}_{{\text{svc}}}-{k}_{1}\Delta {V}_{{\text{Ref}}}$$
$$\Delta \dot{{B}_{{\text{svc}}}}=-\frac{1}{{T}_{{\text{svc}}}}\mathrm{\Delta \alpha }-\frac{1}{{T}_{{\text{svc}}}}\Delta {B}_{{\text{svc}}}$$
(23)

Here, \({T}_{1},{T}_{2},{\text{and}}{ T}_{{\text{svc}}}\) denote lead, lag, and time delay constants, respectively, while \({k}_{{\text{svc}}}\) represents the gain constant.

The linearized reactive power induced by the SVC at bus 'n' in the network is calculated using:

$$\Delta {Q}_{n}=\frac{{\text{d}}{Q}_{n}}{{\text{d}}{\uptheta }_{n}}\Delta {\uptheta }_{n}+\frac{{\text{d}}{Q}_{n}}{{\text{d}}{V}_{n}}\Delta {V}_{n}+\frac{{\text{d}}{Q}_{n}}{\mathrm{d\alpha }}\Delta \alpha $$
(24)

Given that \({Q}_{n}=-{B}_{{\text{svc}}}{V}_{n}^{2}\), the equation is modified as:

$${Q}_{n}=-{B}_{{\text{svc}}}{V}_{n}^{2}\times \left[\begin{array}{ccc}0& -2{V}_{n}{B}_{{\text{svc}}}& 2{V}_{n}^{2}\left(1-\mathrm{cos }\frac{2\mathrm{\alpha }}{{X}_{L}}\right)\end{array}\right]$$
(25)
$$\left[\begin{array}{c}\Delta {P}_{n}\\\Delta {P}_{n}\end{array}\right]=\left[\begin{array}{ccc}0& 0& 0\\ 0& -2{V}_{n}{B}_{{\text{svc}}}& 2{V}_{n}^{2}\left(1-{\text{cos}}\frac{2\mathrm{\alpha }}{{X}_{L}}\right)\end{array}\right]\left[\begin{array}{c}\Delta {\theta }_{n}\\\Delta {V}_{n}\\\Delta \alpha \end{array}\right]$$
(26)

Analysis of Faults with Symmetrical Components

A methodical approach to fault-based network analysis of power systems, with a particular emphasis on fault types including Single-Line-to-Ground (SLG), Line-to-Line-Ground (DLG), and Three-Phase-Ground (3Phase) faults. The system must be changed from the phase frame (a–b–c) to the sequence frame (1–2–0) and the sequence network must be connected according to the type of fault. Here is a more thorough explanation of each step:

As an illustration, for a single-line-to-ground fault, the current in phase-a (Ia) can be calculated as follows:

$${I}_{a}=\frac{3{V}_{a}}{{Z}_{0}+{Z}_{1}+{Z}_{2}+3{Z}_{f}}$$
(27)

The fault current in phase-b (Ib) of the line-to-line-ground fault is computed as follows:

$${I}_{b}=-\frac{j\sqrt{3}{V}_{a}}{{Z}_{1}+{Z}_{2}+{Z}_{f}}$$
(28)

And in the three-phase-ground fault, the fault currents in all three phases are calculated as:

$${I}_{a}=\frac{{V}_{a}}{{Z}_{1}+{Z}_{f}}$$
(29)
$${I}_{b}={a}^{2}{I}_{a}$$
(30)
$${I}_{c}=a{I}_{a}$$
(31)

The suggested fault analysis approach enables the evaluation of various problem kinds and aids in comprehending how the power system behaves when it has defects. To ensure the stability and dependability of the electrical grid, effective protection strategies can be adopted by precisely evaluating the fault conditions [19].

Machine Learning for Enhancing Power System Network Protection

The proposed smart transmission system for power networks incorporates machine learning and IoT technologies to enhance power system efficiency, staff safety, and fault detection capabilities. The system utilizes physical sensors, cameras, and measuring devices to collect real-time data from the power system. This data includes measurements such as voltage, current, and fault-inception angle. IoT technologies are employed to ensure efficient data collection and monitoring. The following sequence of task to be considered:

Data Collection and Processing

Collecting reliable and high-quality data is indeed crucial for training machine learning models effectively. The accuracy and performance of the model heavily depend on the quality of the data it receives. Here’s a breakdown of the data collection process described in your statement:

The initial data is collected from the data center. This could include historical data, real-time measurements, or other relevant information from the power network. IoT devices, such as sensors and GPS satellites, are employed to gather data from various sources within the power network. These devices provide measurements, location information, and other relevant data. The collected data is sent to an expert data center, where it undergoes further processing and analysis. Simulation models and input data are used to initialize the wide area network data. This may involve setting up simulated scenarios or injecting specific data patterns into the network for testing and analysis. Machine code is employed to process and analyze the network data, extracting relevant features and patterns. The data collection and processing illustrated from Fig. 7.

Fig. 7
figure 7

Data collection and processing

Input Data Compilation and Visualization

Data from various sensors and monitoring devices installed throughout the transmission system are collected. This data may include voltage, current, frequency, phase angle, and other relevant parameters. The collected data is pre-processed to clean and normalize it. Data pre-processing techniques are used to handle missing values, remove noise, and prepare the data for further analysis. Relevant features are extracted from the data to represent specific patterns and characteristics of normal and fault conditions. Figure 8 illustrates the power system network in both healthy and faulty conditions, which can be seen in the example below.

Fig. 8
figure 8

Visualization of network under healthy and fault condition

Feature Extraction

A crucial phase in machine learning is feature extraction, which involves converting unprocessed data into a format that can be used to train models. To improve the model's predictive ability, pertinent data is condensed using methods like feature selection and dimensionality reduction. Improving model performance and generalization on untested data requires this procedure. The feature is extracted from training data which is from machine learning algorithm as shown in Fig. 9.

Fig. 9
figure 9

Data collection and feature extraction through code implementation

Model Selection and Training

Various machine learning algorithms, such as support vector machines (SVM), decision trees, random forests, or deep neural networks, can be employed. The selected model is trained using the training data, and it learns to recognize patterns associated with different fault conditions. The trained machine learning model analyzes real-time data from the transmission system and detects abnormal patterns that indicate the presence of faults. The model can classify the type of fault based on the patterns it has learned during training.

This helps in understanding the nature of the fault and aids in deciding the appropriate response. In some cases, additional sensors are used at different locations in the transmission system to enable the model to localize the fault accurately.

E. prediction of Result

The protection method can incorporate the machine learning model to continually and in real-time monitor the transmission system. The protection strategy can initiate automated procedures to isolate a malfunction and resume normal operation when one is discovered. The prediction of proposed results are disseminated in Fig. 10 Additionally, the research encompasses an evaluation of network faults through positive, negative, and zero sequence components, which undergo mathematical analysis. The overarching goal of the research is to cultivate an intelligent transmission system that harnesses machine learning and IoT (Internet of Things) technologies to bolster power system protection, fault detection, and fault discrimination capabilities. The fusion of wavelet analysis [20], Support Vector Machine (SVM), and Artificial Neural Networks (ANN) enables effective and precise fault diagnosis and prediction, ultimately enhancing the reliability and performance of the power network [21,22,23].

Fig. 10
figure 10

Prediction of results

Implementation Process: Case Study

The proposed scheme’s combination of discrete wavelet transform and artificial neural networks holds great promise for enhancing fault detection and classification in transmission line protection. The use of wavelet analysis allows for a detailed examination of current samples, enabling the identification of specific fault patterns. By comparing wavelet detailed coefficients with other indices, faults can be efficiently detected and categorized. The fault detection algorithm, Polyfit analysis method tuning the test data to implement machine learning approach effectively. Overall, the proposed scheme’s integration of wavelet analysis and artificial neural networks offers a promising approach to advance transmission system protection is presented in this research. By effectively detecting and locating faults, the scheme can significantly contribute to enhancing the overall reliability and resilience of power transmission networks. Addressing the challenges and fine-tuning the algorithms will be crucial to achieve optimal performance and ensure successful implementation in real world power systems.

In the realm of electrical protection techniques, supervised learning algorithms play a pivotal role, particularly through the utilization of Artificial Neural Networks (ANN) and Support Vector Machines (SVM), to conduct fault analysis and classification. To enhance the efficiency of fault detection and discrimination, the Integrated Moving Window Average Technique is harnessed. In the pursuit of uncovering concealed data patterns, unsupervised learning methods come into play. Meanwhile, the formulation of load balancing forecasts and fault detection within electrical system protection are two areas.

Where semi-supervised learning approaches are put to use. Wavelet analysis, specifically Bior1.5 mother wavelets, is utilized for analyzing steady-state and transient signals in fault discrimination and detection. Wavelet coefficients extracted from current waveform are used to train the ANN after calibrating Polyfit() function implementation, encoding the distance from the source to the fault based on wavelet indices. Multi-resolution analysis (MRA) of short-term current waveform is performed for micro-grid protection, facilitating fault detection. The sequence of machine learning process is discussed through Fig. 11.

Fig. 11
figure 11

Machine learning approach Implementation

Test System

These specifications provide an overview of the power system configuration, including the sources, transformers, line sections, and line parameters as shown in Fig. 12. It forms the basis for further analysis and modeling of the power system.

Fig. 12
figure 12

Proposed wide-area power monitoring system

Based on the provided specifications, here are the details of the power system configuration:

Utility Grid: Terminal T1 and T2 with Power Rating: 500.

MVA/25 kV Connected through Transformer: 100 MVA, 25 kV/230 kV.

PV Source: Terminal T3 and T4 with Power Rating: 100 MVA/ 25 kV Connected through Transformer: 100 MVA, 25 kV/230 kV.

Wind Farm: Terminal T5: Wind Farm with Power Rating: 100 MVA/25 kV Connected through Transformer: 100 MVA, 25 kV/230 kV.

SVC: Connected in the middle of Zone-4 with Rating: 300 MVAR.

Area-I Specifications: Zone-1,Zone-2 and Zone-3 having distances of 25 km,10 km and 110 km.

Area-II Specifications: Zone-4,Zone-5 and Zone-6 having distances of 25 km,10 km and 110 km.

Line Parameters:

Resistance per Unit Length R = 0.1153 \(\Omega /{\text{km}}\); Zero-Sequence Resistance \({R}_{0}=0.4131\hspace{0.17em}\Omega /{\text{km}}\)

Inductance per Unit Length L = 1.053 \({\text{mH}}\text{/}{\text{km}}\); Zero-Sequence Inductance \({L}_{0}=3.324\hspace{0.17em}{\text{mH}}\text{/}{\text{km}}\)

Capacitance per Unit Length C = 11.33nF/km; Zero-Sequence Capacitance \({C}_{0}=33.99\hspace{0.17em}{\text{nF}}\text{/}{\text{km}}\)

These values represent the key parameters used in modeling and analyzing power transmission lines in a power system.

Result Analysis

The proposed research work focuses on fault categorization, fault detection at particular fault inception angles (FIA), distances, and the effects of the Static Var Compensator (SVC). There are different types faults that are taken into consideration, such as single-phase to ground (1ϕG), two phase to ground (2ϕG), and three-phase to ground (3ϕG) faults.

The primary study cases encompass fault classification, varying faults at specific fault inception angles and distances. Detailed coefficients for each zone are calibrated to locate faults within that zone. Elevated index values, compared to the rest, indicate SLG, DLG, or TLG faults. The research further encompasses fault analysis at varying distances, with and without the presence of a compensated solar-PV connected system.

Phase analysis and fault identification are crucial aspects of power system management. Faults are accurately pinpointed by comparing 3-phase current index values with a threshold. When index values of faulty phases exceed the threshold while others remain below, the fault is located within those phases. Figure 13 illustrates fault identification using phase analysis based on current signals.

Fig. 13
figure 13

current based fault identification

When doing Fault Analysis calibration, the impact of SVC (Static Var Compensator) compensation is taken into account when calculating the index at various distances during fault occurrences. In addition, the suggested methodology shows a decrease in quantum time when compared to conventional techniques. Figures 13, 14, 15 compare different faults, distances, and fault initiation angles to demonstrate the effect of SVC.

Fig. 14
figure 14

Index based fault identification

Fig. 15
figure 15

Performance analysis of SVC under fault condition

The research focuses on fault classification, pinpointing fault inception angles and distances, and evaluating the role of SVC. The results underscore the efficacy of employing wavelet-based methodologies, particularly the sum-of-detailed coefficients technique, for accelerated fault identification. The investigation highlights the influence of SVC on fault severity, showcasing the proposed algorithm’s ability to outperform considering current signal analysis (Fig. 13), fault identification demands a time quantum exceeding 40 ms, while the sum-of-detailed coefficients analysis (Fig. 14) accomplishes fault identification in less than 15 ms. This underlines the superiority of the proposed method compared to conventional techniques. Precise fault identification is achieved by scrutinizing 3-phase current index values against a predefined threshold. Instances where faulty phase index values surpass the threshold indicate that the respective phases are affected, while the remaining phases remain healthy (as illustrated in Fig. 14).

SVC compensation helps mitigate fault severity, potentially affecting relay operation based on predefined settings. Additionally, the research showcases a reduction in time quantum compared to traditional methods through the proposed algorithm. Figures 13, 14, 15, 16 highlight the impact of SVC by comparing various faults, distances, and fault inception angles.

Fig. 16
figure 16

Analysis of SVC performance under various fault inception angles

The study primarily focuses on fault classification, pinpointing fault inception angles and distances, and evaluating the role of SVC. The efficacy of wavelet-based methodologies, particularly the sum-of-detailed coefficients technique, for accelerated fault identification is emphasized. The investigation underscores the superiority of the proposed method over conventional techniques in terms of time efficiency.

The research further encompasses fault analysis at varying distances, demonstrating the impact of SVC compensation on fault severity reduction. The study also acknowledges faults in discrete zones through the utilization of sum-of-the-detailed coefficients of the current signal. The recommended report stresses the method’s ability to reduce time quantum, from around 0.40–0.15 s, compared to traditional methods. Finally, the impact of SVC is observed by comparing various faults, distances, and fault inception angles, as depicted in Figs. 15 and 16.

Fault analysis results with and without a compensated solar- PV linked system are shown in Table 1. It shows how to determine the type of fault independent of the fault’s location or angle of initiation. Relay functioning based on preset settings may be impacted by the use of SVC compensation, which helps to mitigate fault severity. Table 2 presents the % error analysis utilizing both real and ANN calibrated distance at different fault locations. The research shows that the actual distance varies very little between fault locations.

Table 1 Comparative Fault analysis with and without SVC Integrated system through Fault Indices at Zone-3
Table 2 Error calibration using Actual Distance and ANN Calculated Distance at Zones 3 and 4

Conclusion

The incorporation of reactive power compensation devices and renewable energy sources, in conjunction with methodical maintenance protocols, is vital in guaranteeing the continuous distribution of electrical power across a country's grid. Furthermore, in order to reduce disturbances caused by both balanced and unbalanced electrical problems, a responsive security system is necessary. This work uses mathematical and electrical principles to investigate transitory signals through wavelet and machine learning techniques, providing important new insights into power network issues.

However, demand variations, the unpredictability of renewable energy supply, and the complexity of the grid, which is made worse by unidentified grid models, make it difficult to deploy reactive power devices and renewable energy sources. supervised and unsupervised machine learning techniques are used in this research to address these issues and progress power system analysis.

The suggested algorithm shows effectiveness in identifying and differentiating fault behavior in PV-Wind integrated power system networks, with or without Static Var compensators, by employing a wavelet-based machine learning technique. The findings show that the algorithm works better than conventional methods, providing a viable path for improving power transmission systems' dependability and efficiency in the face of changing energy environments.