Multiple distributed generators islanding detection using GBDT-JS techniques

. Photovoltaic arrays and wind Distributed Generators (DG) have become integral to our renewable energy landscape. However, when a DG disconnects from the grid, the risk of islanding arises, necessitating detection within the stringent of two-second timeframe mandated by IEEE standards. Machine-level algorithms play a pivotal role in enhancing power system reliability and safety by swiftly identifying and isolating isolated segments, thereby preventing potential hazards and ensuring ef ﬁ cient grid operation. This study introduces an algorithm-based islanding detection approach for distributed generating systems employing both Solar Photo Voltaic (SPV) and wind systems. The GBDT-JS algorithm, a combination of Gradient Boosting Decision Trees and Jelly Fish Techniques, emerges as an intelligent solution. The focus of this technique is based on the Rate of Change in Phase Angle (RCPP) at the target DG position, offering a characterized approach to islanding detection. In addressing the major dif ﬁ culties and challenges, the GBDT-JS method proves instrumental in categorizing islanding situations and grid disturbances. This classi ﬁ cation aids in determining the system ’ s adoptability based on various loading and switching capabilities. The achievements in overcoming these challenges lie in the algorithm ’ s ability to provide a comprehensive solution, ensuring the reliability and safety of distributed generating systems.


Introduction
In Over the past few decades, the vital role of renewable, decentralized energy sources in fulfilling the world's energy demands has risen significantly.In typical scenarios, generators often link to a grid but islanding may arise whenever the grid turns off.[1].In addition to causing losses in the system, unintentional islanding harms utility workers who are exposed to shocks [2][3].A short-term solution to islanding is required when an electrical system is interrupted [4].Any frequency and voltage variations must be considered while linking electrical equipment to an islanded section.Island procedures should be separated into different sorts based on the location and communication practices.Local islands identification techniques are different from methodologies like passive, active, and hybrid islanding.[5][6][7].Communication islanding is one of the islanding techniques that are more complicated and more expensive, but it is very reliable [8] and other parameters affecting the PCC influence passive islanding [9][10][11].The islanding detection technique detects fluctuation in the output signal and allows the PCC to allow signals for certain cycles [12][13][14].It is more desirable to use the active method for islanding detection than the passive method because it enhances power quality [15][16][17].Low-frequency currents are introduced directly into the NDZ by utilizing a DQ controller.[18][19].A wide range of common algorithmic strategies, including decision-tree models (DTs), support vector machine models (SVMs), and artificial neural networks (ANNs), are utilized to make the distinction between islanding and non-islanding instances, [20][21].
Active methods maintain minimal NDZ despite complex control circuits and real-time processes.
The fact is that communication-oriented approaches are far more complicated and costly than alternatives while yet being extremely effective and exhibiting no adverse impacts on a system's power quality.PLCCs and SCADAs are used in this application.PLCs monitor the utility grid.If this signal is not there, it leads to islanding.To detect islanding, a SCADA system relies on the circuit breakers' auxiliary contacts.Here, if the passive method suspects an islanding is taking place, it will be confirmed by the active method.In addition, the low NDZ level affects the system's power quality [24].The organizational structure of the work is illustrated in Figure 1.

Current Research Work
Over time, further study was conducted implementing various methods and attributes to identify islanding in distributed electricity generation.The following are a few of them: Taheri and Ghaffarzadeh [25] employed phaselet algorithms for islanding detection, using efficient half-cycle phaselet multiplication.No disturbances or high-frequency signals were observed during islanding, ensuring reliable results without impacting power quality.Paiva et al [26].introduced real-time execution of wavelet-based hybrid island detection (WB-HIDS), assessing power quality variables to identify islanding conditions or faults.
Baysal et al [27].introduced a unique passive islanding method (IDM) for inverter-interfaced microgrids (MGs).Microgrids, vital for future energy generation, integrate renewable sources like photovoltaic, wind, and hydropower in islanding or grid-connected modes.Unintentional islanding poses threats to power quality, voltage stability, and security.Simulations on the MATLAB/SIMULINK platform validated the system's efficacy, emphasizing the importance of intelligent IDMs in recognizing islanding instances for ensuring safety in distributed generating systems.
MATLAB/SIMULINK platform was used to conduct simulations.By using intelligent IDMs, the effectiveness of the introduced system was verified.For the purpose of recognizing islanding instances in distributed generating systems and assuring the safety of both individuals and machinery, Nayak et al. [28] presented a novel islanding detection approach using Empirical Mode Decomposition (EMD).The raw signal was processed into intrinsic mode functions (IMFs) at different frequency scales.In the study, restoration of the signal enabled the use of IMFs based on their correlation coefficients.A hybrid method was implemented to enhance detection speed and accuracy.
Markovic et al [29].introduced Loss of Mains (LoM) protection as a common interfacing prevention method for Distribution Generation (DGs).This technique identifies islanding at the point of connection and disconnects the DG to prevent system damage.Decommissioning synchronous generators and increased DG connections minimize system inertia, resulting in faster changes and larger voltage and frequency fluctuations.The article utilized an analytical approach to determine the Neutral Displacement Zone (NDZ) of LoM protection, suggesting the need for inverter performance analysis and comprehensive dynamic simulations to define new operational requirements.Renewable energy sources, driven by advancements in wind turbines, solar PVs, and fuel cells, are gaining prominence with enhanced power electronics.The increasing demand for electricity necessitates the intermittent activation of distribution generation.To safeguard personnel from power quality issues, a paper emphasized identifying islanding instances during distribution generation.A practical anti-islanding detection mechanism for DG was developed, introducing a Phasor Measurement Unit (PMU)-based system.Substantial results were achieved through simulations using MATLAB/Simulink.
Elshrief et al [31] identified an islanding phenomenon and employed passive measures for protection.The focus was on detecting islands based on time and accuracy using rates of change of power (ROCOP) systems based on terminal voltage (TV) of photovoltaic (PV) inverters.This system ensures power supply to the load at the Point of Common Coupling (PCC) when disconnected from the utility grid.The ROCOP-TV system underwent assessment against various passive sensing relays following synchronization.
Harsito et al [32] investigate the heat potential within solar panels for thermoelectric generators, utilizing ANSYS software for comprehensive analysis.The research is anticipated to focus on evaluating the thermal efficiency of solar panels and their capability to produce heat for thermoelectric power generation.The choice of ANSYS software implies a sophisticated and widely accepted tool for detailed simulations and engineering analyses, underscoring the research's meticulous approach in unraveling the thermoelectric characteristics of solar panels [33] focuses on assessing and enhancing hybrid energy solutions (Solar PV/Batteries/Diesel Generator) in Mobile Service Units (MSU) catering to rural services.Two deployed photovoltaic systems on trucks (2.12 kWp and 3.54 kWp) are evaluated by analyzing solar production, consumption, and battery State of Charge (SOC).The energy conversion chain is modeled and simulated throughout the year, with results compared to on-site measurements.Various PV/battery scenarios are studied to determine optimal combinations considering roof space, battery weight, and lifespan.The proposed solution suggests more efficient PV/storage associations, reducing reliance on the Diesel Generator.Simulation results for different battery capacities show improved performance for a 3540 Wp field compared to a 2120 Wp field, with reduced battery charge/discharge cycles.
The methods described above, including phase let algorithms, real-time wavelet-based hybrid detection, passive islanding methods, EMD-based detection, Loss of Mains (LoM) protection, and anti-islanding mechanisms, each exhibit specific merits and demerits.While phase let algorithms and real-time wavelet-based approaches emphasize efficiency and reliability, their performance might be context-dependent.Passive islanding methods, such as IDM, are unique but may have limitations in dynamic scenarios.EMD-based methods offer a novel approach but might face challenges in accuracy.LoM protection ensures disconnection but may lead to rapid changes and fluctuations.Anti-islanding mechanisms are practical but may vary in effectiveness.
In contrast, the GBDT-JS machine-level algorithm, not explicitly described, is likely to offer benefits in adaptability and accuracy through its intelligent combination of Gradient Boosting Decision Trees and Jelly Fish Techniques.Its effectiveness may stem from nuanced phase angle analysis and discrete wavelet transformations.However, it may require careful calibration and validation against different scenarios to optimize performance.

Configurationof the Proposed System
Configuring a system with multiple distributed generation (DG) sources introduces complexities in power flows and voltage variations during islanding events.

PLoad2+QLoad2
Figure 2:Proposedgrid connected solar PV system The DFIG wind DG system consists of key elements: a wind turbine, a DFIG generator with its control system, a power converter (rotor-side and grid-side), and a transformer.Wind energy is captured by the turbine, converting it into mechanical energy.The DFIG generator then transforms this mechanical energy into electrical energy with variable frequencies and voltages.For seamless integration into the grid, a power converter aligns the DFIG's output with the grid's voltage and frequency.A transformer adjusts the voltage to match the grid's 120 kV level.Notably, the DFIG wind DG system operates uniquely in the sub-synchronous region, with the rotor speed slightly below the synchronous speed of the grid.This precision is achieved through meticulous control of the rotor current using the converter system.In the scenario of islanding, where the grid disconnects from DGs, the DGs independently bear the load.Significantly, all DG and grid bus bars are interconnected, allowing for power exchange among different sources and the grid.The explanation provides a clear and original overview of the DFIG wind DG system's components and operational intricacies..
RCPP serves to detect islanding at a common Point of Common Coupling (PCC) as illustrated in Fig. 3.The electrical attributes of the Distributed Generation (DG), including RCPP, ROCOV (Rate of Change of Voltage), and ROCOF (Rate of Change of Frequency), are selected as variables in the dataset.After Discrete Wavelet Transform (DWT) analysis up to level 4, the detailed coefficients dataset is forwarded to the GBDT-JS algorithm.The objective of the GBDT algorithm is to categorize both islanding and non-islanding scenarios within the chosen dataset.Concurrently, the JS algorithm estimates the time required to identify islanding across various scenarios.This approach provides a clear and original explanation of the methodology employed in recognizing islanding events.

Data Generation
The suggested IDT is evaluated for various active power mismatch situations ranging from -20% to +20% (steps of -40%,-20%,0%,+20%,) while keeping the load power constant.The test system is used to assess the likelihood of islanding events for various loadings [33].During nonislanding scenarios; capacitor bank switching and inductive load switching are taken into account.The dataset was generated for all case studies

Feature Extraction Using Discrete Wavelet Transform (DWT)
After the data generation process, the feature extraction method is utilized to gather voltage, signal characteristics that can indicate defects in the DG.In this manner, the suggested approach extracts multiple variables.The variables mentioned above are used to extract features by standard deviation (SD) inside a sliding data window with width T. These attributes are stated in the equations below, Where T represents the transpose operator.
A wavelet transform, which comprises the location and dimension of two fundamental components, is the ideal choice for signal processing [34][35].The wavelet transform is made up of a series of wavelet functions of different dimensions.Lower-resolution components are generated using the HPF and LPF.The decomposition process is repeated until the final components.The objective signal (S) is sent via the HPF and LPF.Wavelet transform is classified into two types such as continuous (CWT) and discrete (DWT).
A CWT signal expressed as Where  indicates the scale (dilation) constant, y denotes the translation (time shift) constant and the mother wavelet is denoted by * .
A DWT signal denoted as(, , ) = The x and y terms in equation ( 9)are replaced by using integer variables  0  .The HPF preserves the wavelet function's signal qualities, whereas the LPF demonstrates the approximation signal's coarser information.DWT analysis is done up to level4.

Gradient Boosting Decision Tree (GBDT)
The GBDT technique used a stage-by-stage approach in model construction, allowing the optimization function and model to be extended [36].The decision tree with constant size is used as the base learner in a gradient boosting system.The main task of the GBDT is to improve the weak base classifiers obtained in the robust classifier.It can also be utilized to accelerate the algorithm's global convergence..The inspiration diagram of the GBDT approach portrays inFig.4.In Part 3, theJellyfish search algorithm(JS) and a swarm intelligence-drivenoptimization algorithm thatmimics jellyfish movements to find food are applied.The algorithm takes into account the current from the ocean and uses a time delay mechanism to move within the swarm.Jellyfish have been known to travel into areas with ample food availability when they are looking for food.This behavior is used by the Jellyfish search algorithm to determine which solution would be most effective for an optimization problem.Use the fitness function, which guides the algorithm's movements, to represent the amount of food available at each location.
The algorithm consists of a swarm of jellyfish, each representing a potential solution to the problem.The jellyfish navigate around the search space based on their fitness value and the location of other jellyfish in the swarm.
To control the movement of the jellyfish, the algorithm uses a time control mechanism.When the algorithm finds an optimal solution, it slows the jellyfish's movement and helps to minimize overshooting.The time control mechanism of JS algorithm is shown in Fig. 5.In general, Jellyfish's search algorithm is an effective optimization method that may be used in a variety of applications, such as island discovery in distributed power systems To find the best answer to difficult optimization problems, an algorithm capable of reproducing jellyfish mobility in pursuit of food can be used.
An algorithm for jellyfish is created using the three key rules listed below and illustrated in the figure of a JS algorithm flowchart below in Fig 6 .1.The jellyfish traverses in tandem with the swarm's timing mechanism while taking the ocean current into account.2. When a jellyfish is in quest of food, it floats through the water and draws itself to locations where it finds plenty of food.3. The amount of food used in conjunction with location and its equivalent function.

Fori=1
Calculate the time control function c(t) Here t represents the time identified iteration number and a maximal number of iterations is represented as

Result and Discussion
Under identical conditions, the GBDT-JS method is employed for the same test system depicted in Fig.For step-by-step analysis, both decreased loading and balanced loading are initially evaluated, and final results for various loading circumstances are provided. .

Case 3: Normal Loading Conditions
During normal circumstances, RCPP detectsislanding condition at 15 msec as shown in Fig. 13.The RCPP approach can identify alterations in frequency and phase angle at the PCC.The DWT analysis can extract sub-band signals from the RCPP waveform and analyse their frequency and amplitude changes under normal loading conditions.These changes can then be used to identify the presence of islanding and trigger appropriate control measures to ensure system stability.

Case 5: Switching Conditions for Inductive Loads (50 HP) (Non islanding)
When an inductive load connected to the common bus bar is switched on or off, it can cause transient changes in the voltage and current waveforms which can temporarily affect the phase relationship between voltage and current.But these deviations are very less compared to islanding situations so the RCPP technique is unable to detect islanding as these deviations will not exceed the threshold value (2000deg/msec) as shown in Fig. 15.

Figure 15: RCPP detection during inductive loadswitching
The DWT analysis may be utilized to extract the high-frequency components of the RCPP waveforms and investigate their variations to detect any abnormal system behavior during inductive load switching.The changes in the wavelet coefficients can be used to identify any sudden changes in the power factor or reactive power demand, which can cause voltage fluctuations and affect the system's stability.This information can be used by the control system to take corrective actions, such as adjusting the voltage or reactive power control, to maintain system stability.

Case 5: Switching condition of a capacitor (10KVA)(Non islanding)
A rapid change in voltage and current may occur when a capacitive load connected to the common bus bar is turned on or off.The current-voltage phase connection may be momentarily interrupted.However, the RCPP approach is unable to detect islanding because these deviations are so small compared to the island conditions since they do not meet the threshold value of 2000deg/msec, as shown in Fig 16.Capacitor switching can change reactive power abruptly, causing voltage and current waveform distortions.High-frequency components of the RCPP waveform capture this distortion.The discrete wavelet transform canbe used to analyze these high-frequency components and detect any sudden changes during islanding.This technique can ensure system stability during capacitor-switching events.

ANN modeling and its performance comparison with GBDT algorithms
The ANN algorithm is used to discriminate between islanding and non-islanding events to predict islanding events.The ANN model is used to extract voltage, current, active, and reactive power features of both DG systems, RCPP, and % loading.Level 4 signals are more susceptible to rapid changes or disturbances in the system than level 1 signals.As a result, during islanding events, level 4 coefficients can be employed to provide more exact and thorough information about the system's dynamics.As a result, islanding detection times can be more accurately predicted.A good epoch selection results in increased accuracy during testing and training.Different case studies have variable levels of accuracy based on the number of epochs and time approximation samples employed.
Data testing becomes more accurate as epochs increase, whereas islanding identification becomes more accurate as epochs decrease.Epochs will be chosen as part of the islanding prediction model based on accuracy, precision, and recall levels.
The suggested method predicts islanding with an accuracy of 94-99% for varied loads with different islanding detection durations, whereas the accuracy for balanced islanding occurrences is around 87%.The suggested DWT-ANN approach showed increased accuracy, precision, sensitivity, recall, and score for level 4 coefficients during islanding prediction.
The GBDT-JS algorithm classifier's performance is evaluated on the test system depicted in Fig 6 .1, and it is validated using both the ANN classifier and the light Gradient boost classifier (GBDT algorithm).As mentioned in Chapter 5, the data is classified in two ways.Initially, the GBDT-JS algorithm is tested under low-load conditions.The performance indicators of this classifier are compared to those of ANN and GBDT classifiers.Following that, the final outcomes of various loadings are discussed.The confusion matrices of all three classifiers under lower loading circumstances are shown in Tables 6.1 and 6.2  .
The Gradient Boost Classifier with Jellyfish Algorithm showcases superior performance across various metrics.It consistently achieves the highest accuracy rates in both training and testing datasets.Additionally, it boasts the lowest Mean Squared Error (MSE), signifying enhanced predictive capabilities.Furthermore, its Precision, Recall, F1-score, Specificity, and Sensitivity values remain consistently high, indicating a robust and well-balanced classification performance.The incorporation of the Jellyfish algorithm for hyperparameter optimization evidently contributes to its superior performance.While the Light Gradient Boost Classifier also delivers commendable results, the Gradient Boost Classifier with Jellyfish Algorithm demonstrates a more refined and optimized approach, notably reflected in its higher accuracy and lower MSE.Overall, these results are shown in Fig. 18 -Fig.21 and Tables 3-5 which indicates that the combination of DWT feature extraction and the GBDT-JS algorithm with optimized hyper parameters is an effective approach for detecting islanding and grid disturbances with high accuracy and classification performance.

Conclusion
This chapter introduces RCPP, a new parameter for passive recognition, for wind and solar DG systems connected to a shared grid.Various islanding and non-islanding scenarios are investigated.The balanced islanding detection time is 15 msec, which is slightly faster than a single DG system.With a threshold of 2000 degrees/msec, this approach effectively distinguishes between islanding and non-islanding conditions.This system is subjected to an ANN-DWT analysis, and its performance is compared with intelligent algorithms such as Light GBDT and the GBDT-JS algorithm under balanced circumstances, revealing that the GBDT-JS algorithm predicts islanding with a high accuracy of almost 98.3%.Advanced approaches such as multiple regressions, recurrent neural networks and others can be used to implement the recommended approach for detecting islands without sacrificing accuracy in the future.

Figure 1 :
Figure 1: Organization of the work

Figure 5 :
Figure 5: Inspiration diagram of the GBDT approach

Part 3 :
BeginChoose map coefficient self.eta=4.0,distribution coefficient self.beta= 3.0, motion coefficient self.gamma=0.2Build the class of parameter Self.Class(params)Initialize chaotic mapping to generate random variable r1Calculate the mean location of all jellyfish 'u' using np.mean function Determine ocean current 'TREND' Trend=best_agent.position-self.beta×r1 × u Calculate Type A and Type B motion using random variable r1, mean location of jellyfishes In type A the jellyfish are available at their location represented(10) Here represents the motion coefficient represents upper and lower boundaries of search space basespace

Figure 7 Figure 7 :
Figure 7 depicts estimated and detailed Daubechies wavelet family coefficients up to level 4 under 70 percent loading circumstances.During islanding the phase angle between the voltage and current signals will start to diverge slightly from the expected value due to reduced load burden.The PLL-based islanding detection technique monitors the phase angle continuously and detects islanding within nearly 15 msec.

Figure 10 :
Figure 10: RCPP detection during balanced loading conditions The phase angle deviations at the PCC caused by islanding are also taken into consideration.The RCPP waveform obtained from the DWT analysis as shown in Fig. 11(a)-(d) & Fig. 12(a)-(d) can provide useful information for detecting islanding.The characteristics of the sub-bands and the threshold values for detecting islanding may vary depending on the loading conditions.

Figure 13 :
Figure 13: RCPP detection during normal loading conditions Case 4: Conditions of Over loading The voltage and current signals may deviate more from their normal values due to the increased current flow and voltage drops across the system components.So RCPP detection technique detects islanding within 13.3 msec much faster than the balanced loading situation as shown in Fig. 14.The approximation and detail coefficients of the Daubechies wavelet family up to level 4 for overloading situations with a load capacity of 120 % of its DG capacity.

Figure 14 :
Figure 14: RCPP detection during over loading conditions

Figure 16 :
Figure 16: RCPP detection during capacitive loadswitching The classifier algorithm is tested in 2 ways (i)80% Training data and 20% Testing data (ii)70% Training data and 30% Testing data Various parameters of the different classifiers are explained below during the data classification process.Based on the islanding accuracy, the random states, loss function, and learning rate are chosen in the algorithm.During ANN modeling 80% of Training data and 20% of Testing data have shown better performance which is shown in Fig.13.

Figure 13 :F 1 F 1
Figure 13: ANN classifier performance under various wavelet coefficient levels

Figure 18 :Figure 19 :Figure 20 :Figure 21 :
Figure 18: Accuracy comparison of different classifiers for 70% of Training data and 30% of Testing data 1. Importing the data matrix with all key elements such as time, R, Y, and B phase voltages, currents in R, Y, and B circuits, active power, reactive power, ROCOF, RCPP, ROCOV, load, target, and so on.DWT is used to decompose the time series.Use pyt.Dwt discrete-level transforms function to decompose the signal up to level 4 and save the results.Before training the model in Part 2, several hyperparameters must be set up using the Gradient Boosting Decision Tree technique (GBDT).These hyperparameters govern the complexity of a model, and their effects on performance can be significant.
Following the determination of the hyperparameters, the data is generally separated into training and test sets.During training, a test set is utilized to evaluate the model's performance.During training, the GBDT iteratively constructs a series of decision trees, with each new tree seeking to correct the faults of previous trees.Several hyper-parameters in GBDT, such as loss function, random variables, maximum features, and so on, might impact model performance.Hyperparameters, such as n_estimators, learning rate, random_state, and max_features, play a crucial role in optimizing the GBDT algorithm's performance on a specific dataset.After training the model with parameters set at n_estimators=500, learning rate=0.05,random_state=100,and max_features=5, its evaluation involves metrics like accuracy, specificity, recall, precision, RMSE, MBE, MAPE, and consumption time.These metrics collectively assess the model's effectiveness, helping identify strengths and areas for improvement without borrowing from existing content.3.Set the number of regression trees n, learning rate, loss function, random state, and max features.

5.1.1 Discrete wavelet and ANN The
number of neurons in the input, hidden and output layers, Activation function, learning rate, Batch size, and Number of epoch selections are important factors in neural network classification.The neural network classifier achieved high accuracy of 87.

Table 3 :
Detection time comparison under balanced loading

Table 5 :
Detection Results of proposed technique