Next Article in Journal
Integrated Energy and Social Retrofit Strategies for Lima’s Central Market: Balancing Cost and Sustainability
Previous Article in Journal
An Optimization Method for Day-Ahead Generation Interval of Cascade Hydropower Adapting to Multi-Source Coordinated Scheduling Requirements
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Deep-Learning-Based Controller for Parallel DSTATCOM to Improve Power Quality in Distribution System

1
Department of Electrical and Electronics Engineering, Koneru Lakshmaiah Education Foundation, Guntur 522302, Andhra Pradesh, India
2
Department of Electrical and Electronics Engineering, Joginpally B R Engineering College, Hyderabad 500075, India
3
Applied Science Research Center, Applied Science Private University, Amman 11937, Jordan
4
Department of Electrical Engineering, College of Engineering, Northern Border University, Arar 73222, Saudi Arabia
5
Electrical Engineering Department, University of Business and Technology, Jeddah 23435, Saudi Arabia
*
Authors to whom correspondence should be addressed.
Energies 2025, 18(18), 4902; https://doi.org/10.3390/en18184902
Submission received: 17 July 2025 / Revised: 7 September 2025 / Accepted: 9 September 2025 / Published: 15 September 2025

Abstract

Modern utility systems are being heavily strained by rising energy consumption and dynamic load variations, which have an impact on the quality and reliability of the supply. Harmonic injection and reactive power imbalance are caused by the widespread divergence. Power quality (PQ) issues are mostly caused by renewable energy powered by power electronic converters that are integrated into the utility grid, despite the fact that a range of industries require high-quality power to function properly at all times. Several solutions have been created, but continuing efforts and newly improved solutions are needed to solve these problems by operating according to various international standards. Distributed Static Compensator (DSTATCOM) was created in the proposed model to enhance PQ in a standard bus system. A standard bus system using the DSTATCOM model was initially developed. A real-time dataset was gathered while applying various PQ disturbance conditions. A deep learning controller was created using this generated dataset, which examined the bus voltages to generate the DSTATCOM pulse signal. Two case studies, the IEEE 13 bus and the IEEE 33 bus system, were used to analyze the proposed work. Performance of the proposed deep learning controller was verified in various situations, including interruption, swell, harmonics, and sag. The outcome of THD in the IEEE 13 bus is 0.09% at the sag period, 0.08% at the swell period, 0.01% at the interruption period, and in the IEEE 33 bus was 1.99% at the sag period, 0.44% at the swell period, and 0.01% at the interruption period. Also, the effectiveness of the proposed deep learning controller was examined and contrasted with current methods like K-Nearest Neighbor (KNN) and Feed Forward Neural Network (FFNN). The validated results show that the suggested method provides an efficient mitigation mechanism, making it suitable for all cases involving PQ issues.

1. Introduction

Power Quality (PQ) has been a concern for both utility and end-user consumers over the past twenty years [1]. Interest in power electronics has grown quickly due to its widespread application in industrial processes, regulators, microprocessor-based devices, nonlinear loads, and the growth of computer networks. The quality of power delivered is also impacted by the grid integration of Distributed Generation (DG) technologies, including wind, fuel cells, and solar photovoltaics [2]. PQ is the term for any variation in current, voltage, or frequency from their typical values that might lead to malfunctions or failures in user equipment [3]. PQ is related to many other types of disturbances, such as oscillatory and impulsive transients, voltage sag, voltage flicker, harmonics, multiple notches, and swell [4].
Several techniques have been suggested and put into use in order to lessen the impact on the system caused by voltage and power quality disturbances. The voltage differential between normal and disturbed operation circumstances is typically compensated for by using custom equipment [5]. Recently, load balancing, reactive power compensation, and harmonic reduction have been implemented in the distribution system via use of the Distribution Static Compensator (DSTATCOM) [6]. The performance of DSTATCOM is influenced by the control method utilized for the extraction of reference current components. Several scholars have proposed a variety of control techniques to accomplish this goal. These algorithms are based on a number of theories, including the ones on Instantaneous Reactive Power (IRP) [7], the Synchronous Reference Frame (SRF) [8], the Symmetrical Component (SC) [7], and the current compensation approach employing dc bus voltage regulation.
Afterward, some of the traditional controlling schemes were introduced to improve the power quality, like Proportional Integral Differentiator (PID) [9], Proportional Integral (PI), fuzzy controller [10], and Fractional Order PID (FOPID) controller [11]. However, the ideal problem for these devices is challenging. In order to solve the problems with choosing the best parameters, an optimal controlling method is presented. Numerous optimal solving models were introduced for optimal parameter selection, such as Particle Swarm Optimization (PSO) [12] and Atom Search Optimization (ASO). However, due to their long response times, high frequency noise, poor performance under parameter fluctuations, and difficult parameter tweaking, these approaches are not always effective. Artificial Intelligence (AI) is chosen to manage the compensator’s performance to overcome these constraints.
AI methods are now widely used to solve a variety of power system issues, including forecasting, planning, scheduling, control, and more [13]. These solutions are able to perform difficult tasks in modern massive power networks with even more interconnections established to suit increased load demand. A regulating technique based on Deep Learning (DL) is created to enhance PQ in the distribution system in light of these advantages. A real-time dataset is generated under both normal and varied PQ problem conditions when the DSTATCOM model is integrated into a system. This dataset is used to construct the DL controller, which analyzes the system’s voltage ranges and generates the appropriate compensator pulsed to inject power for compensation. Enhancing a system’s power quality is necessary for safe and dependable operation. To enhance security, a well-designed controlling system is essential for managing the compensator’s operational condition. The following is a discussion of the planned work’s primary contribution:
  • A standard bus system like IEEE 13 and IEEE 33 test bus system with DL-based DSTATCOM model is designed to analyze various PQ issue scenarios.
  • At the grid, a generator is chosen whose bus is regarded as PCC. In that system, a DSTATCOM compensator is connected.
  • A real-time dataset is generated that contains three-phase bus voltages under normal and various PQ issue conditions.
  • As per the obtained dataset, a Deep Neural network (DNN) controller is constructed, and its trained model is integrated into the system.
  • The controller analyzes the voltage of each bus every second and generates the appropriate pulse signal of the compensator. The proposed model mitigation process is validated in several circumstances, like swell, sag, interruption, and harmonics.
The following is the way the manuscript is set up: A few modern controlling techniques for enhancing PQ in a system with compensators are shown in Section 2. The operational process and numerical modeling of the compensator using the DL controller for improving PQ are explained in Section 3. The results and discussion are offered in Section 4, and the proposed model’s conclusions are found in Section 5.

2. Related Work

Mitigation of PQ issues in the distribution system is essential for improving power quality in a system. According to the development of technology, several methods were developed to improve PQ in the distribution system. Some of the recently developed approaches were discussed as follows.
Prasad, et al. [14] had developed a Reduced Switch Count Multilevel Converter coupled with a PV system, and a dc-link voltage of a DSTATCOM was optimized according to the requirement for load adjustment. The speedier and simpler hysteresis controller was employed to regulate the inverter switch gate pulses. However, it has a delayed transient reaction because of the hysteresis controller’s behavior, which causes rippling dc-link voltage and renders it unstable for fast-changing loads. Badoni, et al. [15] had suggested a shunt compensator designed and implemented with an affine projection control technique to lessen PQ problems. The weighted values’ convergence served as the basis for the control approach, which was independent of the properties of the input signal. A working DSTATCOM prototype was created using a digital signal processor (DSP) and a three-phase voltage supply (VSC). Nevertheless, the models are not desirable choices because of their size, increased space requirements, gradual detuning, and potential for resonance load.
Kumar and Kumar [16] had developed a DSTATCOM to enhance the grid-connected PV system’s PQ. The online weight is determined by the ADALINE-based LMS controller based on the measured load current and the previous weights. However, there are downsides to these systems, including oscillation around the goal point, fixed perturbation steps, and limited efficiency in dynamic situations. Kanase and Jadhav [17] had suggested a Voltage Source Converter (VSC) reference signal by using an SRFT method to extract the necessary current components. DSTATCOM removed harmonics and reactive power from the three-phase distribution system using this technique. One of this model’s biggest flaws was its dependence on voltage feed-forward and cross-coupling blocks.
Pandu, et al. [18] had developed a DSTATCOM for neutral current compensation, load balancing, and the reduction of harmonics. To enhance power quality in the Local Distribution Grid, Recursive Least Square and the Interval Type-2 Fuzzy Logic Controller filter were used to generate switch signals for IGBT in DSTATCOM. The FLC cannot deduce knowledge or relationships from the system’s imprecise data, which is a disadvantage of utilizing this paradigm. Babu and Malligunta [19] had suggested to enhance power quality in the power distribution system that provides high-quality power to consumers and load devices, a multilevel DSTATCOM configuration. The “PQ”-based control approach creates a reference signal that was then further processed using a level-shifted multi-carrier PWM technique to produce gate pulses for a multi-level DSTATCOM structure. However, the usage of a high pass filter can result in undesirable phase shifts at some frequencies, as well as ripples in the passband or the stopband.
Hasanzadeh, et al. [20] had developed a STATCOM-based one-cycle controller to boost distribution network power quality. Switching pulses, a perfect control method, could be generated in STATCOM’s compensating switching design for a variety of goals. But this approach exhibits substantial inaccuracy in the response to the permanent state and poor response to the dynamic state, in addition to being extremely difficult to execute. Arya, et al. [21] had developed a D-STATCOM for the study of DS that was precisely positioned and scaled employing the gravitational search algorithm (GSA). IEEE 33 and IEEE 69 buses were utilized to test the algorithm’s efficacy. However, because reactive power modifies the voltage across the entire power system network, it jeopardizes the security of electrical networks.
Gopal and Sreenivas [22] had suggested a Voltage Source Converter (VSC)-based model for improving power factor, lowering harmonics, and eliminating voltage sags and swells utilizing a Distribution Static Compensator. This model simulates the IEEE 15 bus system, and it uses the sensitivity index to determine where the D-STATCOM should be placed within the test system. However, the model’s poor controlling performance rendered it unsuitable for actual application. Ahmed [23] had suggested an IEEE 14-bus system Flexible AC transmission system (FACTS) device for enhancing PQ. The system with STATCOM responds to voltage changes better than the system without STATCOM in terms of overshoot. The 3-phase voltage and currents d-q components are calculated using the PLL output. However, because the model has poor regulating performance, it cannot withstand all conditions.
The aforementioned literature presents several recently developed approaches aimed at improving power quality in electrical systems. While these models perform better in mitigating power quality (PQ) issues, they still exhibit several limitations. Some models are unreliable under fast-changing load conditions [14], while others demand more installation space, limiting their applicability in space-constrained environments [15]. Certain methods suffer from low efficiency under dynamic load conditions [16], and the use of cross-coupling blocks increases control complexity and can introduce stability issues, especially under dynamic conditions [17]. In addition, some approaches are very complex to implement [18], and the limited learning capability of Fuzzy Logic Controllers (FLC) restricts adaptability [19]. Other models show poor control performance [20], pose risks to power system security [21], and are unable to reliably maintain power quality under all grid scenarios [22]. Finally, some systems fail to ensure consistent performance in rapidly changing grid environments [23]. To overcome these issues, the proposed model used a compact Distributed Static Compensator (DSTATCOM) controlled by a deep-learning-based system that automatically generated control pulses without complex structures or manual tuning. This approach improved stability, efficiency, and adaptability, effectively mitigating voltage sags, swells, interruptions, and harmonics.

3. Proposed Methodology

PQ improvement on the distribution side is considered as a significant task in the power system. Poor PQ causes several economic losses, interrupted power supply, and component misbehavior. To maintain a constant power on the load side, several controlling system-based FACTS devices were introduced, but the models had some limitations due to a poor parameter selection process. A controller based on DL has been developed recently to govern the efficiency of the compensator power injection. DL offers a wonderful alternative to classical machine learning, which depends on human experience. It can handle enormous amounts of data for small networks with a considerably reduced learning cost and can also adapt instantly to all data. So, in the proposed model, an advanced DL controller is designed to regulate the DSTATCOM for improving PQ in the distribution system.
Intelligent learning controller-based DSTATCOM for the PQ improvement model is illustrated in Figure 1. At first, a standard bus system is designed based on the rule of IEEE standards. One of the generators is assumed as the grid supply in the designed bus system. The nearest bus of the grid is taken as a point of common coupling (PCC). A DSTATCOM is fixed at any location in a system; also, an Energy Storage System (ESS) is linked to the DSTATCOM. A real-time implemented dataset is generated that contains voltage ranges of all buses at normal and PQ issue conditions. Based on this dataset, the DL controller model is designed, and its trained model is fixed into the system. The DL model decides whether the power may inject from the energy storage system at the present period based on the trained model. PThe mathematical design of the proposed components are discussed as follows.

3.1. Modeling of STATCOM

Insulated Gate Bipolar Transistors (IGBT) are constant high speed switching elements used in DSTATCOM, a reactive power compensation device for diversion, with a control strategy based on “pulse-width modulation.” Through the use of energy loading devices at its input terminals, it may receive power from a DC energy source and generate and excite fully controlled reactive and real power at its output terminals. The equivalent diagram of DSTATCOM is shown in Figure 2.
The equation of the DSTATCOM terminal is stated as follows:
V ¯ = V a V b V c ;   V s h ¯ = V a   s h V b   s h V c   s h ;   I s h ¯ = I s h   a I s h   b I s h   c
where I s h signifies shunt current and V s h denotes shunt voltage. The real and reactive power exchanged with the system is stated as:
P = V s V s h X t sin δ s h Q = V s 2 X t V s V s h X t cos δ s h
The reference compensator currents by i f a , i f b , and i f c are expressed as:
i f a = i l a v t a v 0 p l a v i f b = i l b v t b v 0 p l a v i f c = i l c v t c v 0 p l a v
where = γ = a , b , c v t γ 2 v 0 2 and v 0 = 1 / 3 γ = a , b , c v t γ , p l a v denotes the average load power, and i l a ,   i l b , and i l c are three-phase current. The power injected is given in the below equation.
S ¯ = V t ¯ I s h ¯ = V t ¯ V s h ¯ V t ¯ j X t = V t ¯ · V s h ¯ V t 2 ¯ j X t
The DSTATCOM injects the power based on the PWM signal of the switches. In order to inject enough power into the compensator to offset the load demand, an ESS is connected to it.

3.2. Voltage Regulation of DSTATCOM

It is feasible to regulate the compensator’s current by including one in tandem with the load:
I s = I L + I R
where I R signifies compensator current and I L denotes load current.
I L = P L j Q L v
The fundamental workings of a DSATCOM are comparable to those of synchronous machines. When underexcited, the synchronous machine will produce lagging current; when anxious, it will produce a leading current. Similar to synchronous machines, DSTATCOM may produce and absorb reactive power. If an external device is connected to it, it may exchange real power with the DC power supply.
Exchange of reactive power—When the voltage source converter’s voltage output exceeds the system voltage, the DSATCOM functions as a capacitor and produces reactive power.
Exchange of real power—The DC capacitor is necessary to give the switches the necessary actual power because the switching devices cannot be lossless. For direct voltage management, actual power exchange to an AC system is therefore required to maintain a constant capacitor voltage.
Reactive power correction keeps the source current at unity power factor (UPF) by supplying reactive power as required by the load using DSTATCOM. Load balancing is accomplished by balancing the source reference current because the source is the only source of power. The true basic frequency component of the load current is present in the reference source current, which is utilized to determine when to switch on the DSTATCOM. The most crucial aspect of DSTATCOM control is the generation of appropriate PWM firing, which has a significant influence on both steady state and transient performances, as well as compensating objectives. The suggested approach uses a DL-based controller to create a PWM signal in a compensator so that the power supply remains constant while the load is being operated.

3.3. Modeling of DL Controller

A deep-learning-based controlling system of the compensator is discussed in this section. Deep learning (DL) teaches computers to learn from examples in the same way that people do. A computer may build a hierarchy of complicated concepts from smaller ones by using layer-based learning. So, in the proposed model, a deep-learning-based controlling system of DSTATCOM is developed to improve PQ in the distribution system. Here, a deep neural network (DNN) is preferred to analyze the voltage and produce a suitable PWM signal for a compensator. The numerical expression of the proposed controller is stated as follows.

3.4. Modeling of DNN Controller

In the proposed model, a dataset is created as per the real-time simulation analysis. On the basis of the generated dataset, the intelligent controller is constructed. In this case, the DNN is made to produce the proper pulse signal for the compensator. The key advantage of employing this controller is its capacity to bridge extremely long-time lags without the need for fine modifications due to its constant error back propagation between memory cells. The voltage of each bus is sent as the input to the DNN, and the output is the pulse signal of the compensator at that time.

3.5. Working Process

A DNN is a system of neurons organized in layers, where each layer processes simple calculations and receives input from the layers above it. The layers are made up of nodes that are just locations where computation takes place. For each pair of units in every two-layer succession, there is a difference in the bias and weight of every node. The output layer, input layer, and hidden layer are the three stages that comprise a DNN. The DNN input layer receives the given input data. Thirteen distinct sources provide input to the proposed model’s input layer. The input data are processed mathematically by the DNN hidden layer. There are a lot of hidden layers in DNN. The final layer, also known as the output layer, has a direct connection to the desired outcome that the model is trying to predict. The architecture of DNN is shown in Figure 3.
The number of inputs are v 1 ,   v 2 ,   ,   v i ,   i = 1 ,   2 ,   ,   n ; H 1 ,   H 2 ,   ,   H k is hidden layers k differs from 1, 2, …, n; the hidden neuron bias, B = 1 ,   2 ,     n and W denote the weight of the layer.
The general form of the input layer is
V N = ( i = 1 m v i × w i N I ) + B
Taking into account a DNN with three hidden layers, the term for network computing with three hidden layers is
h i ( 1 ) = φ ( 1 ) ( j w 11 I x i + B i )
h i ( 2 ) = φ 2 ( j w 11 I I h j 1 + B i )
h i ( 3 ) = φ 3 ( j w 11 I I I h j 2 + B i )
The general phrase for a hidden layer is
h i ( i ) = φ i ( j = 1 N w j N h   i j ) + B
The following equation is computed as the output:
y i = φ 3 ( j w i j i h j i + b i i )
where b is bias, v j is refers to input units, w is the input, h j i is units in the hidden layer, y is the output unit, and φ is the activation function, using this DL controller to generate the pulse signal of a compensator.

4. Result and Discussion

The purpose of the proposed DL controller-based DSTATCOM model is to validate its efficacy under the different conditions covered in this part. Initially, a standard bus system with a DSTATCOM model is designed; at this period, the bus voltages are collected and named as a normal condition. Then, applying various kinds of faults in the system to generate PQ issues, at each period, the bus voltages are collected and named individually. The collected bus voltages are termed as a real-time dataset; as per this dataset, the proposed DL controller is designed. Each second, the proposed controller analyzes the bus voltages and produces a parallel PWM signal of DSTATCOM. The proposed model was designed, and the performance was validated using MATLAB/Simulink 2021b software. The performance analysis of the proposed model is validated under two conditions, namely,
  • Case 1: Performance analysis in IEEE 13 bus system
  • Case 2: Performance analysis in IEEE 33 bus system
Each case is examined separately, and the results are given in the sections that follow. In each scenario, the suggested controller efficiency is validated in several circumstances, like sag, interruption, swell, and Total Harmonic Distortion (THD) content. Table 1 demonstrates the designing parameters of STATCOM.
Table 2 contains the parameters that were utilized to create the proposed and present controller designs.

4.1. Dataset Generation

The generation of the dataset, which is a crucial step for PQ mitigation, comes first in the suggested paradigm. A standard IEEE bus model with DSTATCOM is developed and collects each bus voltage without altering any of the factors that are taken into account for normal system data. Apply a fault to the system next to make it sag in a similar manner; swells and interruptions are made in the system to gather data. The categorized collected datasets are saved in an excel file.
Designing the DNN controller that generates the pulse signal for the IGBT of DSTATCOM uses this real-time dataset. The suggested controller analyszs the bus system voltage once every second and produces a suitable pulse for the switches. In this manner, the dataset for a bus system is produced, and its PQ mitigation effectiveness is examined. Table 3 demonstrates the overall samples of the dataset and its attributes.
The voltage data used for training and testing the deep-learning-based DSTATCOM controller were collected at a sampling rate of 10 kHz, which provides adequate temporal resolution to capture transient events and high-frequency components commonly associated with power quality disturbances. For each type of disturbance voltage, sag, swell, and interruption, a fault duration of 0.2 s was used within a 1 s simulation window. This time frame ensures that the controller can detect and react to PQ events promptly. This fault injection helps the controller learn to operate effectively under variable and imperfect conditions that are typically found in practical utility environments.

4.2. Case 1: Performance Analysis in IEEE 13 Bus System

In this case, the effectiveness of PQ mitigation is analyzed using the IEEE 13 bus system. The suggested controller-based DSTATCOM is intended to be kept in the bus system, and its mitigation process has been examined in the issues of sag, swell, and interruption. Additionally, its THD was examined both before and after compensation.

4.2.1. IEEE 13 Bus System

The executed simulations were based on the IEEE-13 bus test feeder to analyze the impact of DSTATCOM on PQ concerns in distribution systems. This system is comprised of a single generation unit, a voltage regulator unit consisting of three single-phase units linked in a wye, a main transformer ∆-Y to 115/4.16 kV (substation), an in-line Y-Y transformer to 4.16/0.480 kV, scattered, two shunt capacitor banks, unbalanced loads, and thirteen buses via ten lines [24]. This bus system is used to analyze the sag, swell, interruption, and THD, which are all discussed in the section below.
i. 
Sag issues
The voltage drops by 10% of the nominal voltage during the short instant when the waveforms collapse. Every bus voltage is transmitted to the proposed controller, which analyzes the input voltages (39 attributes) and produces the appropriate DSTATCOM pulse signal. Bus number 4 develops a sag fault, which lowers the voltage for a short period of time.
The compensator injects voltage to make up for the voltage in the load during a sag event, which occurs when the voltage falls below the nominal value. The voltage waveforms for the proposed model are shown in Figure 4 during the sag period. That causes the sag problems to occur between 0.25 and 0.5 s. DSTATCOM injects voltage throughout that time, allowing the load voltage to be adjusted and a steady power flow to be maintained. Figure 5 analyzes and plots the THD data for the load side. THD is a measure of signal distortion that assesses the energy contained in the harmonics of the original signal. According to the graphical model, the load side’s THD value after correction is 0.09%.
ii. 
Swell issues
Sag compensation is followed by analysis of the swell fault, and performance is observed. The voltage is raised 10% over the nominal voltage during this time. The suggested controller receives the bus voltages every second, analyzes them, and generates the pulse signal for the compensators.
Figure 6 analyzes and shows the voltage waveform of the swell period on the source side, the injected side, and the load. The waveform shows that the swell problem appears between 0.5 and 0.75 s, during which time the waveform increases above the nominal voltage. The injected voltage shows that the voltage was injected between 0.5 and 0.75 s at the swell issue, compensating the load voltage in order to keep the constant power flow. The THD value is then analyzed during this time, as seen in Figure 7. After resolving the PQ issues, the THD value on the load side before compensation is 0.08%, which is less than IEEE standard limits.
iii. 
Interruption issues
Analyzing the issue of interruptions and its compensation performance is observed. Deployment of a fault in bus number 4 causes interruption. During that moment, the voltage is 0.1 p.u for a short time that will not last longer than 1 min. Figure 8 shows the proposed controller’s interruption mitigation process.
The voltage drops to 0.1 p.u. for a second during the interruption time, thus creating a major problem on the load side. To keep the load voltage constant flow, the suggested controller analyzes the bus voltage and generates the pulse signal of the compensator. Figure 8 shows the suggested controller interruption compensation. It contains a source voltage interruption fault that lasts between 0.75 and 1 s. The proposed controller would inject voltage during such time, reducing the effect of the interruption on the load voltage.
Figure 9 displays the proposed model’s load-side THD value. For a short time, the interruption caused the nominal voltage to drop. The THD value similarly decreased to 0.01% after the interruption was compensated for by using the suggested controller. The observed values show that the suggested methodology regularly yields superior outcomes.

4.2.2. Performance Analysis of the Proposed Controller

The performance metrics are computed using the confusion matrix. The metrics for geometrical modeling are discussed as follows.
  • Sensitivity: Its definition was given as the proportion of real positives to the sum of true positives and false negatives.
    S e n s i t i v i t y = T P T P + F N
  • Specificity: The total number of true negatives produced to the sum of true negatives and false positives produced is defined by this measure.
    S p e c i f i c i t y = T N T N + F P
  • Accuracy: It can be calculated with specificity and sensitivity metrics. In mathematics, it looks as follows:
    A c c u r a c y = T P + T N T P + T N + F P + F N
  • FPR: It is the percentage of all drawbacks that still result in benefits.
    F P R = F P F P + T N
  • Precision: The quantity of created labels is divided by the quantity of appropriately annotated labels.
    P r e c i s i o n = T P ( T P + F P )
  • F1 measure: It is the recall and precision scores’ geometric mean.
    F m e a s u r e = 2 × P r e c i s i o n × R e c a l l P r e c i s i o n + R e c a l l
  • Error: It is computed using the accuracy metrics; the numerical modeling of error computation is stated as follows:
    E r r o r = 1 a c c u r a c y
  • Kappa: A metric used to compare an actual accuracy with a predicted accuracy is the Kappa statistic.
    K a p p a = 2 T P T N F N F P T P + F P F P + T N + T P + F N F N + T N
  • MCC: The Mathew Correlation Coefficient (MCC) is essentially a correlation coefficient among observed and predicted classifications.
    M C C = T P T N F P F N T P + F P T P + F N T N + F P T N + F N
To verify the proposed controller’s effectiveness, its performance measures are contrasted with those of certain different methods. Feed Forward Neural Network (FFNN) and K-Nearest Neighbor (KNN) are contrasted with the suggested DNN controller. Metrics for suggested and current methods are compared in Figure 10, Figure 11 and Figure 12.
The comparison is initially performed to ensure accuracy, which is shown in Figure 10a. The accuracy of the proposed DNN model is 99.9%, while those of the FFNN and KNN are 97% and 69.5%, respectively. The accuracy values of existing techniques are substantially lower than the one proposed. The error values of the proposed and current models are then compared, illustrated in Figure 10b. The accuracy is subtracted from 100 to calculate the inaccuracy. The existing FFNN and KNN have 0.3% and 35.5% error, compared to the suggested model, which is 0.1% error. Consequently, this confirms that the suggested strategy yields superior results than the current models.
The F1 score results from the DNN, and the presently used methods are then compared, demonstrated in Figure 10c. The current models of FFNN and KNN have F1 scores of 98% and 69.9%, respectively, whereas the DNN model provides a 99.9% F1 score.
After that, an analysis and comparison of the False Positive Rate (FPR) of DNN and current methods follows, shown in Figure 11a. The proposed DNN model FPR is 0.1%, FFNN is 1.5%, and KNN is 11.3%. A comparative study shows that the suggested DNN model has a lower FPR value than the current methods. The DNN kappa value and current techniques are then analyzed, which is shown in Figure 11b.
Kappa is able to categorize the consistency of several variables across rates. The FFNN has a kappa value of 88%, the KNN has a kappa value of 61%, and the DNN controller has a kappa value of 99.9%. Current methods and FFNN approach Mathew Correlation Coefficient (MCC) are analyzed, as shown in Figure 11c, and the observed values are compared. The MCC is the correlation between the observed and expected binary categorization. The existing FFNN has 95% MCC, the KNN has 62% MCC, and the proposed DNN has 99% MCC. Figure 12a illustrates the analysis of the DNN precision values and existing techniques. The accuracy of the DNN is 99.9%, that of the FFNN is 96%, and that of the KNN is 75%. Figure 12b compares sensitivity to other methods after it has been tested. It is recognized that there is a ratio between what is actually positive and what is positive in the related elements. The sensitivity of the proposed DNN is 99.9%, FFNN is 95%, and KNN is 69%. The specificity of the suggested strategies is then contrasted and investigated to confirm their efficacy. The specificity of the suggested DNN model is 98%, FFNN is 93%, and KNN is 90%. Table 4 demonstrates the outcome of the load flow analysis of the IEEE 13 bus system.

4.3. Case 2: Performance Analysis in IEEE 33 Bus System

In this instance, the IEEE 33 bus system’s performance of the suggested controller PQ mitigation is analyzed. The generator bus system is intimately connected to the proposed controller-based DSTATCOM design. The performance of the suggested controller was then examined under a variety of conditions, including sag, swell, interruption, and THD.

IEEE 33 Bus System

There are no reactive power compensation units in the IEEE 33 bus system, which consists of 33 buses, 32 fixed lines, and 5 switchable lines. There are no additional power-producing units in the grid, and the feeder that supplies the grid is connected to the first bus. Bus voltage restrictions range from 0.9 to 1.1 p.u. The IEEE 33-bus radial distribution system’s total reactive and real power loads are 2300 kVAr and 3,715 kW, individually, and the system’s rated line voltage is 12.66 kV [25]. The proposed model controller PQ mitigation performance is examined using this bus system.
i. 
Sag issue
Sag problems are a type of PQ disturbance that causes the source voltage to drop by 10%. Economic loss and component malfunctions are the results of sag problems. This section examined the proposed controller mitigation process for the sag issue.
The sag fault waveform, the injected waveform, and the adjusted load waveform are shown in Figure 13. The fault occurs between 0.25 and 0.5 s, during which the voltage is injected. The load voltage is maintained consistently owing to the DSTATCOM’s voltage injection.
The THD was also examined in the system after the sag problem was corrected, as shown in Figure 14. The compensated load voltage’s THD value is 1.99%, which is a highly satisfactory figure by IEEE standards. Examined is the suggested model’s performance in the context of the swell issue.
ii. 
Swell issue
Swell is a PQ issue that occurs temporarily while nonlinear load or grid integration is occurring. This damages the equipment and has a severe impact on the load side. The suggested DNN controller analyzes the bus voltage every second to control the DSTATCOM and minimize the swell problem. The following is a discussion of the proposed controller’s mitigation performance.
The suggested controller generates the pulse of DSTATCOM, which is off during ordinary times. Bus voltages are delivered into the suggested controller input once every second, producing the appropriate pulse signal for the compensator. Figure 15 shows the source voltage under swell conditions, as well as the load voltage that has been corrected.
After analyzing the swell state, Figure 16 analyzes and plots the THD of the corrected load voltage. The harmonic is 0.44% in the compensated waveform, which is a satisfactory value in the power system. The proposed model’s functioning procedure is then verified under the interruption circumstance.
iii. 
Interruption issues
The term interruption refers to a voltage reduction of less than 1 p.u. for a brief period of time. This causes end users to fluctuate, which causes sensitive loads to malfunction. The proposed controller has the capability to reduce interruptions.
Figure 17 depicts the proposed controller’s mitigation method during the interruption period. It demonstrates that interruptions occur every 0.75 to 1 s. The DSTATCOM injects voltage to correct the load voltage at the same time.
The performance is then shown in Figure 18, along with an analysis of the THD value of the compensated load voltage. The observed harmonic value during the interruption duration is 0.01%. The aforementioned explanation and the measured results show how well the suggested model fits all PQ issue conditions.

4.4. Comparison of Performance Metrics

Performance measures for the suggested controller are compared to those of several other approaches in order to assess its effectiveness. The proposed DNN controller is contrasted with the FFNN and KNN controllers. Initially, the comparison is performed to confirm accuracy. Accuracy is defined as the system’s ability to forecast a value with the least amount of error. Figure 19a illustrates the DNN accuracy as well as a comparison to the present FFNN and KNN techniques. The accuracy of the suggested DNN model is 99.9%, compared to 98% and 48% for the FFNN and KNN, respectively. Accuracy estimates for existing methodologies are much inferior to the suggested model.
Then, the suggested and present model error values are compared. Figure 19b displays the graphical modeling of the present and proposed methods. The suggested models have a 0.1% error, while the current FFNN and KNN have 3% and 52% error, respectively. Consequently, this verifies that the suggested strategy yields superior outcomes compared to the current models. The results of the currently employed methodologies and the DNN F1 score are then compared.
Figure 19c compares the analysis of the DNN with the existing FFNN and KNN. The F1 scores for the present FFNN and KNN models are 98% and 44%, respectively, while the F1 scores for the DNN model are 99.9%. Following that, a comparison and analysis of the FPR of DNN and existing techniques was performed. Figure 20a shows a proposed DNN controller and a comparison of current techniques to FPR. FPR value of FFNN is 0.9%, KNN is 17.9%, and the suggested DNN is 0.01%. The comparison reveals that the suggested DNN model has a very low FPR value when compared to other recent approaches. Then, the kappa values of the suggested and existing approaches are analyzed. Kappa is a statistical measure of consistency across rates of various variables. Figure 20b depicts a Kappa contrast of the proposed DNN controller with present FFNN and KNN techniques. The Mathew Correlation Coefficient (MCC) of the DNN models is analyzed, and its observed values are compared. The MCC serves as a connecting factor between observed and anticipated binary categorization. Figure 20c compares the MCC for the DNN, FFNN, and KNN models. The planned DNN has 99.9% MCC, the FFNN has 99% MCC, and the KNN has 31% MCC. The precision metrics for the DNN were investigated and compared to existing approaches. The amount of favorable events that can be predicted with confidence is frequently used to define accurate measurement. Figure 21a compares the precision of the present FFNN and KNN controllers with the DNN controller. The precision values for the DNN, FFNN, and KNN are 99.9%, 98%, and 51%, respectively.
Afterwards, sensitivity is studied and compared to other strategies. It is acknowledged that there is a ratio between what is actually positive and what is positive in the exact sense. Figure 21b shows the sensitivity analysis graphical model. Sensitivity for DNN is 99.9%, FFNN is 98%, and KNN is 48%. Figure 21c provides an analysis and demonstration of the specificity of the proposed and current methodologies. It shows that the specificity of the DNN technique is 99.9%, the FFNN is 99%, and the KNN is 83%. The comparative analysis demonstrates the proposed DL controller provides a better outcome compared to existing approaches. Table 5 demonstrates the outcome of load flow analysis of the IEEE 33 bus system.

4.5. Comparison of Performance in IEEE 13 and IEEE 33 Bus System

In this section, the operational performance of both bus systems is validated by comparison of their respective performance metrics. According to the comparison, both bus systems provide a similar performance under all conditions. Table 6 displays a comparison of both bus systems.
The comparison of THD in the two bus systems is then covered. The bus system is connected to the FFNN-based DSTATCOM model, and PQ problems and THD analysis were developed to study the mitigation process. Table 7 compares the THD mitigation abilities of the suggested controller for the IEEE 33 and IEEE 13 bus systems. The comparison study shows that the proposed model-based IEEE 33 bus system produces better results.

4.6. Comparative Analysis of the Controller

This section compares the suggested model’s performance to a few alternative methods, like the 15-level CHBMLI and A-LMS model at the balanced load condition. The comparative analysis is shown in Table 8, demonstrating the proposed approach offers 0.09% THD and 1.99% THD; yet, the existing approach has 3.91% THD in CHBMLI, 3.65% THD in VSC, and 1.21% THD in A-LMS. Consequently, this shows that the suggested model yields a sufficient result when compared to the current model.
The above observed values show the proposed model provides a better performance compared to other models because it has an advanced neural network learning process to analyze the voltages and generate the pulse signal based on the trained value; thus, the model was more fit for all PQ issue conditions.
The Table 9 presents a ablation study of different neural network model architectures used for reducing THD% under voltage sag conditions in IEEE 13-Bus and 33-Bus systems.
Table 10 shows that the scenario-based analysis demonstrates the effectiveness of the proposed deep-learning-based DSTATCOM controller under varying operating conditions, including changes in power load, harmonic distortion levels, and control unit location.

5. Conclusions

A standard IEEE bus system’s performance under various PQ disturbances was validated using a DSTATCOM model based on a deep learning controller. Low power quality damages electrical and mechanical equipment, increases electricity costs, and has an adverse effect on the economy. With its flexibility, simplicity, and allowance for dynamic load, DSTATCOM was able to address these problems. A standard bus system using the DSTATCOM model was designed, and the normal voltage flow of each bus was collected. Similar to this, voltages were collected after applying various PQ issues in the same standard bus system. A deep learning controller was created utilizing this gathered dataset. Each and every second, the controller examined the voltage to produce a corresponding pulse signal for the compensator. The compensator injects voltage based on the pulse signal to reduce harmonic content and PQ difficulties in the system. Using the IEEE 13 bus and IEEE 33 bus, the performance of the proposed controller-based DSTATCOM model in mitigating PQ problems was evaluated. The performance of the suggested controller was compared to a few other modern methods to ensure that it would truly function. THD results for the IEEE 13 bus are 0.09% during sag, 0.08% during swell, and 0.01% during interruption; for the IEEE 33 bus, the results are 1.99% during sag, 0.44% during swell, and 0.01% during interruption. Likewise, the efficiency of the proposed model is the same in both bus systems; 99.9% accuracy, 99.9% F1 score, and 99.9% specificity, which is further compared to traditional models for validation. The mitigation performance of the compensator in the standard bus system will be significantly improved in the future with the development of an advanced novel controller.
The proposed deep-learning-based DSTATCOM controller showed significant accuracy in alleviating power quality concerns on IEEE 13 bus and 33 bus systems; nevertheless, this study is confined to simulations and primarily addresses sag, swell, and interruption phenomena. Real-time problems such as controller delays, sensor faults, and switching non-idealities were not dealt with. Future work should concentrate on the advancement of sophisticated hybrid AI controllers, the expansion of validation to encompass bigger and renewable-integrated grids, and the execution of hardware-in-the-loop or real-time implementation. Also, looking into multi-objective optimization and cyber–physical resilience will make the suggested system more useful and dependable.

Author Contributions

Conceptualization, A.K.V., C.R.R. and A.E.; Methodology, C.R.R.; Software, P.S.V.; Validation, A.K.V., P.S.V., C.R.R. and A.A.; Formal analysis, P.S.V., C.R.R. and A.A.; Investigation, A.K.V. and C.R.R.; Resources, A.K.V., P.S.V., C.R.R., A.A. and A.E.; Data curation, A.K.V., P.S.V., A.A. and A.E.; Writing – original draft, A.K.V., P.S.V., C.R.R., A.A. and A.E.; Writing – review & editing, P.S.V. and A.A.; Supervision, C.R.R.; Project administration, A.K.V., P.S.V., A.A. and A.E.; Funding acquisition, A.K.V., A.A. and A.E. All authors have read and agreed to the published version of the manuscript.

Funding

The authors extend their appreciation to the Deanship of Scientific Research at Northern Border University, Arar, KSA for funding this research work through project number “NBU-FFR-2025-332-07”.

Data Availability Statement

Data is contained within the article.

Acknowledgments

The authors gratefully thank the Prince Faisal bin Khalid bin Sultan Research Chair in Renewable Energy Studies and Applications (PFCRE) at Northern Border University for their support and assistance.

Conflicts of Interest

The authors declare that they have no conflicts of interest in this work.

References

  1. Ghiasi, M. Technical and economic evaluation of power quality performance using FACTS devices considering renewable generations. Renew. Energy Focus 2019, 29, 49–62. [Google Scholar] [CrossRef]
  2. Bajaj, M.; Singh, A.K.; Alowaidi, M.; Sharma, N.K.; Sharma, S.K.; Mishra, S. Power quality assessment of distorted distribution networks incorporating renewable distributed generation systems based on the analytic hierarchy process. IEEE Access 2020, 8, 145713–145737. [Google Scholar] [CrossRef]
  3. Pene, A.D.; Bikai, J.; Bidias, J.B.; Louossi, T.; Gilbert, D.B.; Dieudonne, K.K.; Nsouandele, J.L.; Djongyang, N.; Kapseu, C. A Robust Maximum Power Point Tracking Control under Shading Effects on Photovoltaic Systems. Int. Trans. Electr. Eng. Comput. Sci. 2025, 4, 137–151. [Google Scholar] [CrossRef]
  4. Mahela, O.P.; Parihar, M.; Garg, A.R.; Khan, B.; Kamel, S. A hybrid signal processing technique for recognition of complex power quality disturbances. Electr. Power Syst. Res. 2022, 207, 107865. [Google Scholar] [CrossRef]
  5. Raju, S.G. Hybrid Energy Generation System with Brushless Generators. Int. Trans. Electr. Eng. Comput. Sci. 2023, 2, 20–29. [Google Scholar] [CrossRef]
  6. Ansari, M.N.; Singh, R.K. Application of D-STATCOM for harmonic reduction using power balance theory. Turk. J. Comput. Math. Educ. TURCOMAT 2021, 12, 2496–2503. [Google Scholar]
  7. Nanda, H.; Chalamalla, S.R. Harmonic and reactive power compensation with IRP controlled DSTATCOM. In Innovations in Electrical and Electronics Engineering: Proceedings of the 4th ICIEEE 2019, Hyderabad, India, 26–27 July 2019; Springer: Singapore, 2020; pp. 215–224. [Google Scholar]
  8. Balasubramanian, M.; Nagarajan, C. FFDSOGI-PLL-based DSTATCOM for Power Quality Enhancement. IEIE Trans. Smart Process. Comput. 2022, 11, 376–384. [Google Scholar]
  9. Naz, M.N.; Imtiaz, S.; Bhatti, M.K.; Awan, W.Q.; Siddique, M.; Riaz, A. Dynamic stability improvement of decentralized wind farms by effective distribution static compensator. J. Mod. Power Syst. Clean Energy 2020, 9, 516–525. [Google Scholar]
  10. Karimi, H.; Simab, M.; Nafar, M. Enhancement of power quality utilizing photovoltaic fed D-STATCOM based on zig-zag transformer and fuzzy controller. Sci. Iran. 2022, 29, 2465–2479. [Google Scholar] [CrossRef]
  11. Goud, B.S.; Reddy, C.R.; Bajaj, M.; Elattar, E.E.; Kamel, S. Power Quality Improvement Using Distributed Power Flow Controller with BWO-Based FOPID Controller. Sustainability 2021, 13, 11194. [Google Scholar] [CrossRef]
  12. Krishna, D.V.; Kalavathi, M.S.; Ganeshbabu, B. A Novel NR-DA-Based ANN for SHEPWM in Cascaded Multilevel Inverters for Renewable Energy Applications. Int. Trans. Electr. Eng. Comput. Sci. 2024, 3, 135–143. [Google Scholar] [CrossRef]
  13. Ahmad, T.; Zhang, D.; Huang, C.; Zhang, H.; Dai, N.; Song, Y.; Chen, H. Artificial intelligence in sustainable energy industry: Status Quo, challenges and opportunities. J. Clean. Prod. 2021, 289, 125834. [Google Scholar] [CrossRef]
  14. Prasad, K.K.; Myneni, H.; Kumar, G.S. Power quality improvement and PV power injection by DSTATCOM with variable DC link voltage control from RSC-MLC. IEEE Trans. Sustain. Energy 2018, 10, 876–885. [Google Scholar] [CrossRef]
  15. Badoni, M.; Singh, A.; Singh, B. Power quality improvement using DSTATCOM with affine projection algorithm. IET Gener. Transm. Distrib. 2018, 12, 3261–3269. [Google Scholar] [CrossRef]
  16. Kumar, A.; Kumar, P. Power quality improvement for grid-connected PV system based on distribution static compensator with fuzzy logic controller and UVT/ADALINE-based least mean square controller. J. Mod. Power Syst. Clean Energy 2021, 9, 1289–1299. [Google Scholar] [CrossRef]
  17. Kanase, D.B.; Jadhav, H.T. Three-phase distribution static compensator for power quality improvement. J. Inst. Eng. India Ser. B 2022, 103, 1809–1826. [Google Scholar] [CrossRef]
  18. Pandu, S.B.; Sundarabalan, C.K.; Srinath, N.S.; Krishnan, T.S.; Priya, G.S.; Balasundar, C.; Sharma, J.; Soundarya, G.; Siano, P.; Alhelou, H.H. Power quality enhancement in sensitive local distribution grid using interval type-II fuzzy logic controlled DSTATCOM. IEEE Access 2021, 9, 59888–59899. [Google Scholar] [CrossRef]
  19. Babu, J.V.; Malligunta, K.K. Multilevel diode clamped D-Statcom for power quality improvement in distribution systems. Int. J. Power Electron. Drive Syst. 2021, 12, 217. [Google Scholar] [CrossRef]
  20. Hasanzadeh, S.; Shojaeian, H.; Mohsenzadeh, M.M.; Heydarian-Forushani, E.; Alhelou, H.H.; Siano, P. Power quality enhancement of the distribution network by multilevel STATCOM-compensated based on improved one-cycle controller. IEEE Access 2022, 10, 50578–50588. [Google Scholar] [CrossRef]
  21. Arya, A.K.; Kumar, A.; Chanana, S. Analysis of distribution system with D-STATCOM by gravitational search algorithm (GSA). J. Inst. Eng. India Ser. B 2019, 100, 207–215. [Google Scholar] [CrossRef]
  22. Gopal, B.; Sreenivas, G.N. Improvement in Power Quality with D-Statcom Using Voltage Source Converters in Dg Systems. Ilkogr. Online 2019, 18, 1495–1513. [Google Scholar]
  23. Ahmed, S.A. Performance Analysis of Power Quality Improvement for Standard IEEE 14-Bus Power System based on FACTS Controller. J. Electr. Eng. Electron. Control. Comput. Sci. 2019, 5, 11–18. [Google Scholar]
  24. Dataset 1. Available online: http://images.shoutwiki.com/mindworks/7/7e/IEEE_13_Bus_Power_System.pdf (accessed on 1 September 2025).
  25. Dataset 2. Available online: https://link.springer.com/content/pdf/bbm:978-3-030-39943-6/1.pdf (accessed on 1 September 2025).
  26. Juyal, V.D.; Arora, S. Power quality improvement of a system using three phase cascaded H-bridge multilevel inverters (a comparison). In Proceedings of the 2016 International Conference on Recent Advances and Innovations in Engineering (ICRAIE), Jaipur, India, 23–25 December 2016; IEEE: Piscataway, NJ, USA, 2019; pp. 1–7. [Google Scholar]
  27. Das, S.R.; Ray, P.K.; Sahoo, A.K.; Balasubramanian, K.; Reddy, G.S. Improvement of power quality in a three-phase system using an adaline-based multilevel inverter. Front. Energy Res. 2020, 8, 23. [Google Scholar] [CrossRef]
  28. Mangaraj, M.; Muyeen, S.M.; Babu, B.C.; Nizami, T.K.; Singh, S.; Chakravarthy, A. Deep Reinforced Learning-Based Inductively Coupled DSTATCOM under load uncertainties. Electr. Eng. 2024, 107, 8761–8772. [Google Scholar] [CrossRef]
Figure 1. Structural design of proposed DL-DSTATCOM model.
Figure 1. Structural design of proposed DL-DSTATCOM model.
Energies 18 04902 g001
Figure 2. Equivalent circuit of DSTATCOM.
Figure 2. Equivalent circuit of DSTATCOM.
Energies 18 04902 g002
Figure 3. Architecture model of DNN network.
Figure 3. Architecture model of DNN network.
Energies 18 04902 g003
Figure 4. Voltage waveforms of (a) source, (b) injected, and (c) load voltage at sag period.
Figure 4. Voltage waveforms of (a) source, (b) injected, and (c) load voltage at sag period.
Energies 18 04902 g004
Figure 5. Load voltage THD after sag compensation.
Figure 5. Load voltage THD after sag compensation.
Energies 18 04902 g005
Figure 6. Voltage waveforms of (a) source, (b) injected, and (c) load voltage at swell period.
Figure 6. Voltage waveforms of (a) source, (b) injected, and (c) load voltage at swell period.
Energies 18 04902 g006
Figure 7. Load voltage THD after swell compensation.
Figure 7. Load voltage THD after swell compensation.
Energies 18 04902 g007
Figure 8. Voltage waveforms of (a) source, (b) injected, and (c) load voltage at interruption period.
Figure 8. Voltage waveforms of (a) source, (b) injected, and (c) load voltage at interruption period.
Energies 18 04902 g008
Figure 9. Load voltage THD after interruption compensation.
Figure 9. Load voltage THD after interruption compensation.
Energies 18 04902 g009
Figure 10. Comparison of (a) accuracy, (b) error, and (c) F1 score.
Figure 10. Comparison of (a) accuracy, (b) error, and (c) F1 score.
Energies 18 04902 g010aEnergies 18 04902 g010b
Figure 11. Comparison of (a) FPR, (b) Kappa, and (c) MCC.
Figure 11. Comparison of (a) FPR, (b) Kappa, and (c) MCC.
Energies 18 04902 g011aEnergies 18 04902 g011b
Figure 12. Comparison of (a) precision, (b) sensitivity, and (c) specificity.
Figure 12. Comparison of (a) precision, (b) sensitivity, and (c) specificity.
Energies 18 04902 g012aEnergies 18 04902 g012b
Figure 13. Voltage waveforms of (a) source, (b) injected, and (c) load voltage at sag period.
Figure 13. Voltage waveforms of (a) source, (b) injected, and (c) load voltage at sag period.
Energies 18 04902 g013
Figure 14. Load voltage THD after sag compensation.
Figure 14. Load voltage THD after sag compensation.
Energies 18 04902 g014
Figure 15. Voltage waveforms of (a) source, (b) injected, and (c) load voltage at swell period.
Figure 15. Voltage waveforms of (a) source, (b) injected, and (c) load voltage at swell period.
Energies 18 04902 g015
Figure 16. Load voltage THD after swell compensation.
Figure 16. Load voltage THD after swell compensation.
Energies 18 04902 g016
Figure 17. Voltage waveforms of (a) source, (b) injected, and (c) load voltage at interruption period.
Figure 17. Voltage waveforms of (a) source, (b) injected, and (c) load voltage at interruption period.
Energies 18 04902 g017
Figure 18. Load voltage THD after interruption compensation.
Figure 18. Load voltage THD after interruption compensation.
Energies 18 04902 g018
Figure 19. Comparison of (a) accuracy, (b) error, and (c) F1 score.
Figure 19. Comparison of (a) accuracy, (b) error, and (c) F1 score.
Energies 18 04902 g019
Figure 20. Comparison of (a) FPR, (b) kappa, and (c) MCC.
Figure 20. Comparison of (a) FPR, (b) kappa, and (c) MCC.
Energies 18 04902 g020aEnergies 18 04902 g020b
Figure 21. Comparison of (a) precision, (b) sensitivity, and (c) specificity.
Figure 21. Comparison of (a) precision, (b) sensitivity, and (c) specificity.
Energies 18 04902 g021aEnergies 18 04902 g021b
Table 1. STATCOM parameter.
Table 1. STATCOM parameter.
ParameterRanges
Capacitance1000 × 10−6 F
Initial voltage800 V
Table 2. Simulation parameters of proposed and existing approaches.
Table 2. Simulation parameters of proposed and existing approaches.
ParameterMethodRanges
Hidden neuronDNN10
Epoch30
EpochFFNN100
Gradient6.8 × 10−5
µ1 × 10−7
Training algorithmLevenberg-Marquardt
Num. NeighborsKNN5
Num. Observations150
DistanceEuclidean
Table 3. Dataset samples.
Table 3. Dataset samples.
DatasetIEEE 13 BusIEEE 33 Bus
Overall data20,00020,000
Attributes3999
Table 4. Load flow analysis of IEEE 13 bus system.
Table 4. Load flow analysis of IEEE 13 bus system.
Bus no.Voltage (V)Sag (V)Swell (V)Interruption (V)
13417289039002300
24100356046303325
34180345548502200
441803278560015
541802280560015
610,89010,55010,60010,500
79143867791508580
86937634073006000
97175680074506665
106860644571506265
116650620069506000
126600612569205858
136770623071056910
Table 5. Load flow analysis of IEEE 33 bus system.
Table 5. Load flow analysis of IEEE 33 bus system.
Bus no.Voltage (V)Sag (V)Swell (V)Interruption (V)
11.79 × 1041.7885 × 1041.7913 × 1041.7837 × 104
21.785 × 1041.77 × 1041.8 × 1041.7 × 104
31.765 × 1041.69 × 1041.865 × 1041.334 × 104
41.7578 × 1041.67 × 1041.874 × 1041.25 × 104
51.75 × 1041.65 × 1041.88 × 1041.175 × 104
61.736 × 1041.6 × 1041.915 × 1049680
71.734 × 1041.6 × 1041.9 × 1041 × 104
81.732 × 1041.618 × 1041.894 × 1041 × 104
91.725 × 1041.607 × 1041.89 × 1041 × 104
101.724 × 1041.61 × 1041.888 × 1041 × 104
111.725 × 1041.61 × 1041.883 × 1041 × 104
121.725 × 1041.6 × 1041.887 × 1041 × 104
131.718 × 1041.58 × 1041.9 × 1049400
141.7162 × 1041.58 × 1041.9 × 1049050
151.715 × 1041.58 × 1041.91 × 1048700
161.712 × 1041.564 × 1041.92 × 1048000
171.705 × 1041.5 × 1041.95 × 1046200
181.703 × 1041.5 × 1041.97 × 1045450
191.781 × 1041.76 × 1041.80 × 1041.667 × 104
201.754 × 1041.688 × 1041.84 × 1041.37 × 104
211.7468 × 1041.668 × 1041.856 × 1041.275 × 104
221.74 × 1041.65 × 1041.864 × 10412,000
231.752 × 1041.642 × 1041.9 × 1041750
241.734 × 1041.55 × 1042 × 1045400
251.72 × 1041.456 × 1042.1 × 10478
261.734 × 1041.6 × 1041.82 × 1049130
271.731 × 1041.584 × 1041.94 × 1048357
281.722 × 1041.5 × 1042 × 1045000
291.715 × 1041.5 × 1042.07 × 1042300
301.700 × 1041.5 × 1042.02 × 1042785
311.703 × 1041.5 × 1042 × 1043750
321.7 × 1041.5 × 1042 × 1044300
331.7 × 1041.5 × 1042 × 1045000
Table 6. Comparison of performance metrics.
Table 6. Comparison of performance metrics.
MetricsIEEE 13 Bus SystemIEEE 33 Bus System
Accuracy99.999.9
Error0.10.1
F1 score99.999.9
False positive rate0.010.01
Kappa99.999.9
MCC99.999.9
Precision99.999.9
Sensitivity99.999.9
Specificity99.999.9
Table 7. THD comparison.
Table 7. THD comparison.
ConditionIEEE 13 Bus System THDIEEE 33 Bus System THD
Sag0.091.99
Swell0.080.44
Interruption0.010.01
Table 8. Comparison of THD at sag condition.
Table 8. Comparison of THD at sag condition.
ParametersA-LMS [26]VSC [27]Deep Reinforcement
Learning (IC-DSTATCOM) [28]
Proposed FFNN
IEEE 13 BusIEEE 33 Bus
Load side THD1.21%3.65%27.90%0.09%1.99%
Source side THD-21.10%0.94%0%0%
Table 9. Ablation study for the model.
Table 9. Ablation study for the model.
Model VariationNo. of Hidden LayersNeurons Per LayerTotal WeightsTHD (%)
IEEE 13-Bus (Sag)
THD (%)
IEEE 33-Bus (Sag)
Baseline (proposed)11011000.091.99
Variation 122042000.071.50
Variation 233093000.051.20
Variation 345020,5000.041.10
Variation 421022000.081.70
Table 10. Scenario-Based Performances of Proposed Model.
Table 10. Scenario-Based Performances of Proposed Model.
Scenario NoPower Load(kw)Harmonic
Distortion (%)
Control Unit
Location
THD After
Compensation (%)
15005Bus 50.09
27507Bus 50.12
350010Bus 101.12
410005Bus 150.18
56008Bus 50.11
675012Bus 101.20
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Vali, A.K.; Varma, P.S.; Reddy, C.R.; Alanazi, A.; Elrashidi, A. Deep-Learning-Based Controller for Parallel DSTATCOM to Improve Power Quality in Distribution System. Energies 2025, 18, 4902. https://doi.org/10.3390/en18184902

AMA Style

Vali AK, Varma PS, Reddy CR, Alanazi A, Elrashidi A. Deep-Learning-Based Controller for Parallel DSTATCOM to Improve Power Quality in Distribution System. Energies. 2025; 18(18):4902. https://doi.org/10.3390/en18184902

Chicago/Turabian Style

Vali, A. Kasim, P. Srinivasa Varma, Ch. Rami Reddy, Abdulaziz Alanazi, and Ali Elrashidi. 2025. "Deep-Learning-Based Controller for Parallel DSTATCOM to Improve Power Quality in Distribution System" Energies 18, no. 18: 4902. https://doi.org/10.3390/en18184902

APA Style

Vali, A. K., Varma, P. S., Reddy, C. R., Alanazi, A., & Elrashidi, A. (2025). Deep-Learning-Based Controller for Parallel DSTATCOM to Improve Power Quality in Distribution System. Energies, 18(18), 4902. https://doi.org/10.3390/en18184902

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop