# 1. Introduction

Power system stability can be divided into angle stability and voltage stability. It can be further divided into transient stability, small signal stability, large disturbance and small disturbance voltage stability [1]. Power system stability refers to the ability of a power system network to retain its functionality when subjected to disturbance. Voltage stability on the other hand refers to the ability of a power system network to maintain its voltage at all the buses without causing the system to fail after subject to disturbance [2]. A sudden increase in load, loss of a heavily loaded transmission line, failure in protective coordination system or insufficient reactive power supply could lead to voltage collapse or in more serious cases can lead to cascading outages and blackouts. Several major voltage collapse cases had been reported in France in 1987, Sweden in 1983, in Japan in 1987 [3], in the USA in 1996 and 2003 [4, 5], Italy in 2003 [5], and England in 2003 [5].

Modern days power system network are being pushed to operate near the threshold due to development and deregulations of electricity market. In order to cater with the increment of severe voltage instability problem, accurate predictions of voltage collapse point and rapid voltage stability analysis with little calculation and processing time become major concern. With the improvement in prediction method and technology, the possibilities of voltage collapse can be figured out and the operator will be able to make adjustment on time to prevent the network goes awry.

Several methods had been used for analysis of static voltage stability. Some methods determine the exact values of voltage collapse such Jacobian method [6], singular value index [7], modal method [8] and voltage sensitivity method [9] while others determine the bifurcation point to predict voltage stability margins [10]. Determination of maximum load enables assessment of proximity to voltage collapse [11], and the use of continuation power flow to determine the weakest bus of the system [12, 13]. Despite all methods described above are used to conduct voltage stability analysis, they were unable to predict or acquire conditions of the stability of the system without intensive calculations. This will consumed a lot of time and instantaneous solution has to be obtained as voltage instability occurs very fast from seconds to just a few minutes. It may be too late to avoid voltage collapse occurrences if the condition of the system is not known instantly. The level of accuracy of these methods also varies from one to another which is an essential factor for voltage collapse avoidance.

The rise of on-line-based voltage stability assessment had brought more possibilities in improving the efficiency and accuracy of voltage stability prediction. The use of various line-based voltage stability indices in on-line stability analysis such as Fast Voltage Stability Index (FVSI) [14], Line Stability Index (Lmn) [15], Line Stability Index (Lp) [16], Line Stability Index (NLSI) [17], Voltage Collapse Prediction Index (VCPI) [11] and L-index [18] are common. The use of voltage stability indices are to search for weak buses and give indication of the condition of the buses. L-index formulated by Kessel and Glavitsch [18] had also been used by researchers in power system for the same reason. FVSI was being applied to solve contingency problem of voltage stability in [14, 19] and the results showed good indication on the variation of reactive loadings with good accuracy.

ANN is a common method that had been applied in solving voltage stability problems. ANN is a class of mathematical algorithms that emulate the biological neural networks in the human brain [20, 21]. There are a few models available in the ANN including feedforward network and feedback network, where they had been widely employed in various field in predicting and doing classification. ANN possessed the capabilities of learning and adaptation as well as being able to generalize given information [20, 21]. ANN had been used as earlier as in 1996 in the assessment and enhancement of voltage stability using multiplayer perceptron [22]. However, the method gives several problems as the system cannot be trained too much or too little. The convergence of the load flow solution might sometimes give local minimum after training. As ANN method keeps improving, Radial Basis Function Neural Network had been proposed and claimed to be more superior compared to the previous methods and also capable of determining available transfer capability and stability of voltage in the system [23, 24]. Implementation of feed forward neural network with a stability index is fast and allowing the monitoring of the stability margin in real time after being trained offline [25, 26].

Today, one of the most promising computational intelligence (CI) algorithms came from the Swarm Intelligence (SI). SI consists of a series of algorithms which came from the study on the behaviour and interaction between lower intelligence organisms [27, 28]. There were a lot of SI method proposed and some of the more popular methods that had been applied in the field of electrical studies are the Particle Swarm Optimization (PSO), Artificial Bee Colony (ABC) and Ant Colony Optimization (ACO). Recently, PSO had become popular and had been employed actively in power system and reviews had been carried out to give researchers the basic idea of PSO and its possible applications in various fields of studies [29, 30]. The uprising of PSO had motivated power system researchers to do analysis based on this highly robust algorithm to find global optimum solution in parameter tuning of STATCOM and FACTS device, improving voltage profile through optimal capacitor placement and FACTS devices to reduce losses [31, 32]. PSO had also been discovered to have solved reconfiguration problems in power system noted [32]. PSO has faster convergence rate and is able to search for global optimal solution in most cases with slightly higher computational time compared with GA. Due to each of the CI methods had its own advantages and drawbacks, researchers had started to hybridize various CI together to form a much superior algorithm to solve power system stability problems. [33] had combined GA with ANN in order to solve optimal power flow problems that yield faster computational time with small error in the result.

# 2. Problem Formulation

By having an accurate prediction on voltage stability condition of the power system network, preemptive decision could be carried out to stop an impending collapse of voltage stability of the network either by operators or automatic devices. The main objective of this study is to minimize the error of the prediction system by reducing the sum of square error between the actual and predicted output information about the stability condition. Therefore, the objective function of the proposed methodology is the sum of square error between the output Fast Voltage Stability Index (FVSI) values and target FVSI values. FVSI is a line stability index proposed by I. Musirin et al. [14] to determine the voltage stability condition of a power system network. He used the concept of power flowing through a single transmission line. From Fig. 1, by assuming that δ1 = 0 (taking Bus 1 as reference) and δ2 = -δ , the current, I can be defined as:

**Fig. 1.**A typical 2 bus transmission line

Hence, a quadratic equation of V2 can be formed:

For real values to exist for V2, there must be real roots for the equation:

Therefore, for the line to be stable and taking the symbol i and j as sending end and receiving end bus,

Since sin δ ≈ 0 and cos δ ≈ 1 , therefore we can assumed that R sin δ ≈ 0 and X cos δ ≈ X , the FVSI can be simplify as:

Then, the FVSI values will be calculated using the load flow program in Matlab programming environment by varying the loadings in the load buses of IEEE 14-bus and 30-bus test system. With all the values of the loadings and their corresponding FVSI values at each transmission lines, sets of data will be generated in order to train the algorithm to perform its prediction duty. With it, sets of data consist of the predicted values and target values will be used to evaluate the sum of square error (SSE) between them, which can be shown in the equation below:

where m = 1, 2, 3, 4, 5...mmax

Since the aim in this study is to minimize the objective function, so the lower the SSE, the more accurate is the prediction system.

# 3. Artificial Neural Network

Artificial Neural Network (ANN) is a popular method employed in different field of studies especially mathematics and computer science to solve problems involving estimation, classification, and optimization. ANN emulates the neuron in the brain, transmitting data through its many linkage or pathway. In the process, it will be able to learn, memorize the data sent and be able to interpret the messages. Therefore, an ANN is consists of the input layer with messages or data, the weights as the synapses that connect all the neurons together and an output layer to show the processed information. Through effective training of the weights in ANN, the system will be able to give good solution according to the requirements. There are many types of ANN algorithm such as the back propagation, probabilistic ANN, Kohonen Network and others which differs in terms of training and updating algorithm used.

Feed forward back propagation is one of the most popular types of ANN and had been used in various applications with good accuracy and performance when the correct parameters are selected. Back propagation algorithm trains the ANN weights by returning the error value between the current output and the targeted output of all the input data being used. Using these error values, the weights are being updated through the BP algorithm and again the required outputs will be calculated using the updated weights. The process will be repeated until the accumulated errors or sum of squares of errors had reached a feasible value, the minimum error had been achieved or the ANN had reached certain conditions such as the maximum epoch or minimum threshold. The basic configuration of a BPANN is as shown in the Fig. 2 on next page.

**Fig. 2.**Configuration of a 3 layers ANN

# 4. Particle Swarm Optimization

PSO is an optimization technique developed by Kennedy and Eberhart in 1995. The idea came from observing the social behavior of bird flocks flying in synchronism while changing direction and meanwhile, maintaining a safe distance between each of their neighboring birds in an optimal formation. PSO is being classified as a metaheuristic, population-based optimization method that can gives good solution to function-based problems. Compared to other metaheuristic methods like Genetic Algorithm (GA) and Evolution Programming, PSO has its advantages in terms of convergence speed and less susceptible to converge to sub-optimal solution. Besides, PSO has less parameter to alter, rendering easier case by case parameter configuration in order to search for the best configuration and also reduced time required to obtain a solution. In general, PSO technique can be achieved by following the steps below:

(i) Step 1: Initialize the population with a number of particles, N and other parameters (ii) Step 2: Initialize the position, X and velocity, V of all the particles in the population with random values set within certain range

While the termination criterion is not met or maximum iterations are not reached:

(iii) Step 3: For every particle, the fitness value, F is calculated and compared with the previous best fitness value (pbest). If the current pbest is better (smaller or larger depending on objective function and required solution), replace the previous pbest with current pbest. (iv) Step 4: Then, choose the best fitness value among all the particles and label it as the global best fitness (gbest). (v) Step 5: Calculate the particles velocity, Vnew by using the equation: Vnew = Witer × Vcurrent + C1 × random × (pbestprevious - pbestcurrent ) + C2 × random × (gbestprevious - gbestcurrent ) (vi) Step 6: Update the particles new position, Xnew by using the equation: Xnew = Xprevious + Vnew

# 5. EHPSO-ANN

The problem that is needed to solve in this paper is to predict the voltage stability of the transmission system. Therefore, a prediction system must be developed and an indicator must be used so that the voltage stability can be seen clearly and simpler to understand by anyone. A VSI will be used as the indicator, which is the FVSI that is able to give fast and accurate readings of a system's voltage stability on reactive loadings changes. FVSI is chosen due to its sensitivity to reactive load changes and ability to trace voltage stability limit accurately through numerical value. BPANN had always been one of the most effective and efficient algorithm in solving prediction problems, however because of its frequent instability and lacking accuracy that had been mention in the previous section, an improved training algorithm must be applied to the ANN. Due to the fact that PSO is an optimization method, therefore, in order to improve the accuracy of the prediction, an enhanced hybrid PSO-based ANN is being proposed. By replacing the training and updating part of the BPANN with PSO, the new EHPSO-ANN algorithm is formulated in this paper. PSO had been chosen to achieve this objective because PSO has fast convergence rate, has reduced chance to converge into local minimum than BPANN as well as other optimization method like GA, hence improved stability of the overall system and able to obtain high accuracy with low iterations. PSO is responsible for searching the optimal weights for the ANN.

The workings of EHPSO-ANN are divided into following steps as mention in next 2 page and in Fig. 3:

**Fig. 3.**Flowchart of EHPSO-ANN algorithm

(i) Step 1: Initialize the ANN with the number of layers, numbers of hidden neurons, inputs, outputs and other parameters (ii) Step 2: Initialize population of PSO, number of particles, randomized the initial position of the particles (in terms of ANN, the weights) and their velocity and For every particle (Start looping), (iii) Step 3: Evaluate the ANN by computing their total sum of square error (SSE) between the actual outputs and the targeted outputs. (iv) Step 4: The SSE from the ANN is passed to the PSO as the fitness value and compared with the previous best fitness value (pbest). If the current pbest is smaller, replace the previous pbest with current pbest. (v) Step 5: From all the calculated fitness value of the particles, choose the global best, gbest value which contain the minimum fitness value and then store its corresponding weights. (vi) Step 6: Later, calculate new velocity of the particles and update the new position of the particles. (vii) Step 7: Repeat steps (iii)-(vi) until the termination criterion had reached or the solution had converged. (viii) Step 8: Record the gbest of the converged solution and the weights. Then replaced the weights of the first particle in the PSO with the gbest weights of previous iteration. End Loop. (ix) Step 9: Repeat Steps (ii)-(viii) by maintaining the gbest's weights from previous epoch on the first particle of PSO while randomizing the weights of other particles until the solution converged or termination criteria had reached.

Several hybrids of PSO with ANN had been proposed by researchers to aid in their respective field of studies. In [34-35], feed forward ANN had been used to hybridize with PSO in weight optimization where the output from the PSO is considered the required solution for the problem. Besides direct implementation of PSO in ANN algorithm which is commonly written as PSO-ANN, [36-38] decided to separate the usage of PSO by first running the ANN program then optimized the output from the ANN using the PSO algorithm. In this paper, feed forward back propagation ANN is being hybridized and modified with the PSO algorithm where the output after the PSO iterations is being back propagated to the ANN again with a certain amount of loops. The enhanced algorithm became a single process. Also, the weights of gbest from the previous loop will become the weights of the first particle of PSO while the rest of the particles will be randomized again. This step is important as to give the algorithm versatility and can avoid PSO from converging into a suboptimal solution by allowing the other particles to search in other spaces within the boundary.

# 6. Results and Discussion

In order to demonstrate the effectiveness of the proposed EHPSO-ANN algorithm, it will be compared with the BPANN, PSO-ANN [34]-[35] and separate PSO-ANN (SPSO-ANN) [36]-[38] in predicting the voltage stability for IEEE 14-bus and 30-bus test system. Before proceed to the case study, the data has to be provided first to train the system to be able to function properly as a prediction system. To obtain the data, 8 of the load buses in the test system had been varied by randomly increasing their reactive load before passing them to the load flow program. The process will continue until the load flow program diverged and then some of the load buses will be reset to its base loading before continue to collect data. Then the corresponding FVSI value for each line in the test system will be calculated and stored. A total of 300 sets of data had been prepared for the use of the algorithms in 14-bus test system while 800 sets of data were provided by the 30-bus test system. During the training of the system, if the stopping criteria were not fixed, the ANN will continue to operate until it reaches the maximum iteration. In this case, the ANN will become too focused on the training data set and when the testing data set is used, it might give a poor solution due to loss of generalization ability, which this condition was referred to as overtraining. In order to avoid overtraining of the prediction system, validating set had been implemented into both the systems. A 3 layers ANN was used throughout the study. For EHPSO-ANN, PSO-ANN and SPSO-ANN, a total of 100 numbers of iterations was used for 14-bus system and 200 for 30-bus system while BPANN had used 100 for first and second case in 14-bus system while 1000 iteration for 30-bus system, analysis and comparing purposes in the third case of 14-bus system. In 14-bus test system, line connecting bus 13 and bus 14 that is considered the most vulnerable bus is being used as to carry out the FVSI calculations and algorithm tests while for 30-bus test system, line connecting bus 24 and bus 25 is chosen for the same reason stated above.

In the first case, a 5 hidden nodes neural network was used to show the convergence of both the algorithm. With the implementation of velocity clamping in the EHPSO-ANN, it drastically improved the convergence speed of the system and maintained the stability of the system whereby without clamping the particles velocity, the particle might expand its search in a very wide space and might not converge or causes the PSO to fluctuate near the optimal location. Stability of the BPANN algorithm is always an issue and therefore it gave a huge fluctuation and has higher chance of converging into suboptimal solution or in some rare cases, diverged into a bad solution. Therefore, EHPSO-ANN gave a better convergence curve without oscillating intensively near the optimal solution and the convergence speed in unmatched by BPANN. As for the common PSO-ANN, it retains the fast convergence speed of PSO but still oscillate for some time until settled down at its optimal point. However, the SPSO-ANN have the same problem as the BPANN in convergence because it is actually the regular BPANN at the training phase and PSO is being used later on. In the first epoch, the total SSE of both BPANN and SPSO-ANN is high on training phase that is 3.454 and at validating phase, it projects its SSE on 0.390. But for PSO-ANN and EHPSO-ANN, the training phase yields only 2.5442 and 0.1091 respectively on total SSE. During the validating phase, it gives only total SSE of 0.0512 for EH-PSOANN. Because the validating phase for PSO-ANN is done once after the training process, therefore it has only a single validating SSE which is 0.0404. As the epoch increases, the total SSE of BPANN and SPSO-ANN reduces and then oscillates near its suboptimal solution. PSO-ANN also oscillates in the beginning and later on slows down and then completely vanished when the optimal value is reached. However, in EHPSO-ANN, the system barely oscillates and quickly converged into its best solution. In both BPANN and SPSO-ANN, the minimum SSE found are 0.02793 in training phase and 0.007071 in validating phase. For PSO-ANN and EHPSO-ANN, the lowest SSE recorded is 0.0657 and 0.001476 respectively in training phase while for validating phase, their values were recorded as 0.04042 for PSO-ANN and 0.0042 for EH-PSOANN..

The same condition happened in the IEEE 30-bus test system as well. In the training phase of BPANN and SPSO-ANN, the SSE converged with some oscillation but better than in 14-bus system into 0.0282. However, the validating solution shows minimum SSE of 0.2083 and the last epoch at SSE of 0.6441. This shows that both the algorithms converged into a suboptimal solution which is the weakness of the ANN method, and in some paper, if the author did not apply validating phase in his work, he will get even worse solution in the testing phase and lead to poor prediction. For PSO-ANN, the training solution although converged into large SEE value compared to the others, but its validating phase actually converged into a better solution that the 2 methods mentioned before at SSE of 0.1643. The reason is because PSO is capable of fast convergence and will converged into good solution compared with BPANN. As for the proposed method, it was able to converge into good training solution as well as validating phase SSE also gave the best results out of all which is at 0.0137. Table 1, Table 2, Fig. 4, Fig. 5, Fig. 6 and Fig. 7 below show the detailed result mentioned above.

**Table 1.**Comparison of Convergence Speed (14 bus)

**Table 2.**Comparison of Convergence Speed (30 bus)

**Fig. 4.**Convergence curve of training phase (14-bus)

**Fig. 5.**Convergence curve of validating phase (14-bus)

**Fig. 6.**Convergence curve of training phase (30-bus)

**Fig. 7.**Convergence curve of validating phase (30-bus)

Next, the accuracy of the proposed algorithm is tested by comparing the SSE of its testing data with the other algorithms and the results can be shown in Table 3, Table 4, Fig. 8 and Fig. 9. The accuracy found in term of SSE in EHPSO-ANN is 0.00409 while BPANN, SPSO-ANN and PSO-ANN only have 0.0222, 0.0131 and 0.037 respectively tested with 14-bus test system. In 30-bus test system, EH-PSOANN also scored the lowest SSE of all other at 0.0107 while BPANN, SPSO-ANN and PSO-ANN registered 0.023, 0.0177 and 0.1643 respectively. While 14-bus test system was used, the total error for EHPSO-ANN is 0.3859 while it is 0.7831 for BPANN, 0.5374 for SPSO-ANN and 1.0376 for PSO-ANN. When these algorithms were tested in 30-bus system, the recorded sum of error were 0.7033 for the proposed algorithm while for the other methods used, the total error increases to 1.5882 for SPSO-ANN, 1.9692 for BPANN and the highest 4.2204 for PSO-ANN. This shows that EHPSO-ANN have the upper hand in the prediction of the voltage stability and this values are very important as the better is the predicted results, the performance of the system and the quality of the electrical supply will improved. Without any modification on the regular PSO-ANN, the algorithm seems to not be able to converge into a better solution because of its advantage, which is the convergence speed. BPANN is slow to converge and could get into a better solution than unmodified hybrid PSO with the help of validating phase but there were also limitation in what it can do. SPSO-ANN gave a solution somewhere in between BPANN and EH-PSOANN. Table 5 is on page 883 and Table 6 is directly on page 884 show the overall test data that had been collected from the algorithm.

**Table 3.**Accuracy of both algorithms (14 bus)

**Table 4.**Accuracy of both algorithms (30 bus)

**Fig. 8.**Graph of testing phase (14-bus)

**Fig. 9.**Graph of testing phase (30-bus)

**Table 5.**Table of test data (SSE)

**Table 6.**Table of test data (SSE)

As in the third case, the effect of the number of hidden nodes used is being analyzed. The tests were carried out by varying the hidden nodes to 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15 and 20 hidden nodes in each test respectively. To further improve the accuracy of BPANN and SPSO-ANN, 1000 iteration had been use to test if the algorithm would do better than EHPSO-ANN whereas the number of iteration for EHPSO-ANN was maintained at 100 but no apparent improvement was found. It was found that in EHPSO-ANN, the number of hidden nodes increased do improved the accuracy of the prediction and the best accuracy occurred at 5 hidden nodes for both test systems used. After that, the accuracy started to oscillate up and down as the number of hidden nodes increases. Therefore, 5 hidden nodes with sum square error of 0.0041 in 14-bus system and 0.0107 in 30-bus system were chosen as a reference to carry out all the other analysis. But for BPANN and SPSO-ANN, the accuracy of the prediction shows constant fluctuation and with higher SSE in most of the different numbers of hidden nodes used. Even with the best solution found by having the optimal number of hidden nodes, other algorithms failed to overpower the solution made by the proposed algorithm even in low number of hidden nodes and high iteration count. Table 7, Table 8 and Fig. 10 and Fig. 11 is provide a clearer view of the results in graphical form.

**Table 7.**Number of hidden nodes Versus Accuracy (14-bus)

**Table 8.**Number of hidden nodes Versus Accuracy (30-bus)

**Fig. 10.**Graph of SSE versus Number of Hidden Nodes (14-bus)

**Fig. 11.**Graph of SSE versus Number of Hidden Nodes (30-bus)

# 5. Conclusion

In conclusion, voltage stability of the transmission system is still a very important criterion if reliable and quality power supple is demanded. To avoid voltage collapse that can not only cause trouble to the people but also loss of money due to force halting of machines in factories that might suffer damages, accurate prediction of voltage stability condition is required. By employing PSO algorithms fast convergence and local minimum avoidance ability, the proposed EHPSO-ANN algorithm is able to achieve the objective fast and more than 4 times or 30 percent more accurate than BPANN and 3 times more accurate than SPSO-ANN in the same iteration and 1000 iterations count for BPANN respectively in 14-bus test system. The difference can also be seen when 30-bus test system was used shows the ability of the proposed algorithm is able to work well even in higher bus systems. Unmodified PSO-ANN could not produce feasible result in this paper shows the ability of EH-PSOANN in predicting the voltage stability of the power systems accurately.