Results summary for 6 test cases.

## 1. Introduction

"The world is not black and white but only shades of gray." In 1965, Zadeh [1] wrote a seminal paper in which he introduced fuzzy sets, sets with un-sharp boundaries. These sets are considered gray areas rather than black and white in contrast to classical sets which form the basis of binary or Boolean logic. Fuzzy set theory and fuzzy logic are convenient tools for handling uncertain, imprecise, or unmodeled data in intelligent decision-making systems. It has also found many applications in the areas of information sciences and control systems.

In this chapter, we shall discuss two important categories of fuzzy logic nonlinear applications: “Control” and “Trending and Prediction”. With respect to Fuzzy Control application, among the huge applications that were published under this category, two new applications are selected in this chapter to focus on the Hierarchal Control application with “multi-input” “multi-output” signals, and another application is selected as application of smart electrical grid. However, for Fuzzy Trending and Prediction Application, c-Mean Fuzzy Cluttering technique is discussed as an introduction for Fuzzy trending algorithm, and then two different applications are introduced. The first application discusses very nonlinear problem to predict the rate of accident for labours work in a construction sector, and the second application is to find a fault in complicated electrical network. All these new applications for fuzzy control and fuzzy trending recognition has been found after year 2000.

## 2. Control

Control is one of the main the application for the fuzzy controller, especially for the applications that can be easily expressed by linguistically. Many machines now in the market are fuzzy machines. Also the fuzzy logic has take place in the DCS’s and PLC’s as recognized function to build process controllers. In this chapter we shall select three applications as an example for the new application of fuzzy logic in the control.

### 2.1. Fuzzy control design for gas absorber system

In this section, the chapter shall present the research efforts that have been carried out on the control of gas absorbers/gas reactors. It shall also introduce the new approach to a fuzzy control design for a typical gas absorber system. The approach shall incorporate a linear state-estimation to generate the internal knowledge-base that shall store input-output pairs. This collection of pairs shall be then utilized to build a feedback fuzzy controller for the gas absorber.

#### 2.1.1. Background

A major direction in systems engineering design has been focused on the use of simplified mathematical models to facilitate the design process. This constitutes the so-called model-based system design approach, an overview of the underlying techniques can be found in [2]. Most of the available results have thus far overlooked the operational knowledge of the dynamical system under consideration. On the other hand, a knowledge-based system approach [8] has been suggested to deal with the analysis and design problems of different classes of dynamical systems by incorporating both the simplest available model as well as the best available knowledge about the system. For single physical systems, one of the earlier efforts along this direction has been on the development of an expert learning system; see [4-7] and their references. An alternative approach has been on integrating elements of discrete event systems with differential equations [3].

A third approach has been through the use of fuzzy logic control by successfully applying fuzzy sets and systems theory [9]. In the cases where understood there is no acceptable mathematical model for the plant, fuzzy logic controllers [10] are proved very useful and effective. They are generally base on using qualitative rules of thumb, that is, qualitative control rules in terms of vague and fuzzy sentences. It has been pointed out [11] that fuzzy control systems possess the following features:

Hierarchical ordering of fuzzy rules is used to reduce the size of the inference engine. Real-time implementation, or on-line simulation, of fuzzy controllers can help reduce the burden of large-sized rule sets by fusing sensory data before imputing the system’s output to the inference engine.

This section is presenting a new approach to fuzzy control design for a gas absorber system. It provides a new and efficient procedure to construct the inference engine by incorporating a linear state-estimator in generating and storing input-output pairs. This collection of pairs is then utilized to build a feedback fuzzy controller. By fine-tuning of the controller parameters, it is shown that the gas absorber system has always a guaranteed stability. Numerical simulation of a six-order gas absorber is carried out and the obtained results show clearly that the proposed estimator-fuzzy controller scheme yields excellent performance.

Separation processes play an important role in most chemical manufacturing industries. Streams from chemical reactors often contain a number of components; some of these components must be separated from the other components for sale as a final product, or for use in another manufacturing process. A common example of a separation process is gas absorption (also called gas scrubbing, or gas washing) in which a gas mixture is contacted with a liquid (the absorbent or solvent) to selectively dissolve one or more components by mass transfer from the gas to the liquid. Absorption is used to separate gas mixtures; remove impurities, contaminants, pollutants, or catalyst poisons from a gas; or recover valuable chemicals. In general, the species of interest in the gas mixture may be all components, only the component(s) not transferred, or only the component(s) transferred. Absorption is frequently conducted in trayed towers (plate columns), packed columns, spray towers, bubble columns, and centrifugal contactors. A trayed tower is a vertical, cylindrical pressure vessel in which vapor and liquid, which flow counter-currently, are contacted on a series of metal trays or plates; see Fig. 1. Components that enter the bottom of the tower is the gas feed stream are absorbed by the liquid stream, that flows across each tray, over an outlet weir and into a down-comer, so that the gas product stream (leaving the top of the tower) is more pure.

The basic assumptions used are:

The major component of the liquid stream is inert and does not absorb into the gas stream.

The major component of the gas stream is inert and does not absorb into the liquid stream.

Each stage of the process is an equilibrium stage, that is, the vapour leaving a stage is in thermodynamic equilibrium with the liquid on that stage.

The liquid molar holdup is constant.

We now introduce the following variable definitions:

L = moles inert liquid per time: = liquid molar flow rate.

V= moles inert vapor per time: = vapor molar flow rate

M= moles liquid per stage: = liquid molar holdup per stage

W= moles vapor per stage: = vapor molar holdup per stage

x_{j}= moles solute (stage j) per mole inert liquid (stage j)

y_{j}= moles solute (stage j) per mole inert vapor (stage j)

The concept of an equilibrium stage is important for the development of a dynamic model of the absorption tower. An equilibrium stage is represented schematically in Fig. 2. The total amount of solute on stage j is the sum of the solute in the liquid phase and the gas phase (that is, M x_{j} + W y_{j}). Thus the rate of change of the amount of solute is d(M x_{j} + W y_{j})/dt and the component material balance around stage j can be expressed as:

where we assumed that in accumulation, liquid is much more dense than vapor. Under assumption A4), then (1) simplifies into:

Under assumption A3), we let

which expresses a linear relationship between the liquid phase and gas phase compositions at stage j with d being an equilibrium parameter. Using (3) into (2) and arranging we get:

For n-stage gas absorber, (4) is valid for j =2,…,n-1. At the extreme stages, we have:

where xf and yn+1 are the known liquid and vapor feed compositions, respectively.

On combining (3), (4),(5) and (6), we reach the state-space model:

where A an (nxn) system matrix with a triangular structure, B is an (nxm) input matrix and C is an (nxp) output matrix given by:

The design of a fuzzy controller can be implemented by the following steps:

Step1:

Supposed that the output y (t) takes values in the interval U = [α, β] ⊂ R. Define 2N+1 fuzzy function A^{l} in U that are consistent and complete with the triangular membership functions shown in Fig. 3. That is, we use the N fuzzy sets A^{1}, ---, A^{N} to cover the negative interval [α, 0), the other N fuzzy sets A^{N+2},---, A^{2N+1} to cover the positive interval (0, β], and choose the center x N+1 of fuzzy set A^{N+1} at zero.

Step. 2:

Consider the following 2N+1 fuzzy IF-THEN rules:

Where l = 1, 2, ---, 2N+1, and centers ^{l} are chosen such that,

Step. 3:

Design the fuzzy controller from the 2N+1 fuzzy IF THEN rules (11) using product inference engine, singleton fuzzifier and center average defuzzifier; that is, the designed fuzzy controller is

Where μ_{A}^{l}(y) are shown in Fig. 3 and y ^{1} satisfy

To estimate the range of the input-output pairs {v_{i}, y_{i}}, full order estimator [2] can be used.

Consider a gas absorber system with the following parameters: L=80, M=200, V=100 and d=0.5.

Thus,

A MATLAB program is written to simulate the gas absorber system. Different positive and negative step input are applied to estimate the outputs. The results of two cases are illustrated in Fig. 4 and Fig. 5. The tracking behaviour of the outputs is shown.

From the input-output pair obtained, the behaviour of the system is examined and the ranges of its outputs (controllers’ inputs) are predicted. Fig. 6 illustrates a block diagram of the gas absorber and the fuzzy controller array.

To control the response of the gas absorber, the range of linguistic values of the output of each feedback fuzzy controller is tuned between (– 3) and (3). Comparison between the output response with fuzzy controller (when the number of linguistic values of the controller input – output pair is three) and without controller is illustrated in Fig.7 and Fig.8.

In Fig.7, the controller is tuned to interfere the natural decay of the system. In Fig. 8, the fuzzy controller is adjusted to improve the response of the gas absorber. It is noted that the response of controlled system has less overshoot, less steady state error and faster compared to the uncontrolled system.

This section has presented a new and simple fuzzy controller for a gas absorber system to enhance the response of the output. The simulation results have shown that the controller guarantees well-damped behaviour of the controlled gas absorber system.

In this section, we shall develop a new approach to the control of interconnected system using fuzzy system theory. The approach shall be based on incorporating a group of local estimators on the system level to generate the input-output database. An array of feedback fuzzy controllers shall then be designed to ensure the asymptotic stability of the closed loop system. The developed technique shall be applied to an unstable large-scale system and extensive simulation studies shall be carried out to illustrate the potential of this new approach..

In control engineering research, problems of decentralized control and stabilization of interconnected systems are receiving considerable interest in recent years [14,15] where most of the effort is focused on dealing with the interaction patterns. It is concluded that a systematic approach to deal with the problems of interconnected systems is twofold: first is to base the analysis and design effort on the subsystem level using conventional control methods and second is to deal with interactions effectively. These methods are facilitated, in general, by virtue of several mathematical tools including linearization, delay approximation, decomposition and model reduction. This constitutes the so-called model-based control system approach for which we have seen numerous techniques [16]. Most of the available results have so far overlooked the operational knowledge of the interconnected system under consideration. In [17], a knowledge-based control system approach has been suggested to deal with the analysis and design problems of interconnected systems by incorporating both the simplest available model as well as the best available knowledge about the system. For single physical systems, one of the earlier efforts along this direction has been on the development of an expert learning system [18-19]. An alternative approach has been on integrating elements of discrete event systems with differential equations [20]. A practically-supported third approach has been through the use of fuzzy logic control by successfully applying fuzzy sets and systems theory [21].

For interconnected systems, the foregoing approach motivates the research into intelligent control by combining techniques of control and systems theory with those from artificial intelligence. The main focus should be on integrating a knowledge base, an approximate (humanlike) reasoning and/or a learning process within a hierarchical structure.

Fuzzy logic controllers [23-25] are generally considered applicable to plants that are mathematically poorly understood (there is no acceptable mathematical model for the plant) and where experienced human operators are available for satisfactorily controlling the plant and providing qualitative “rules of thumb” (qualitative control rules in terms of vague and fuzzy sentences).

A concerted effort has been made to formally reduce the size of the fuzzy rule base to make fuzzy control attractive to interconnected systems. Two of the difficulties with the design of any fuzzy control system are:

The shape of the membership functions.

The choice of fuzzy rules.

The properties that a fuzzy membership function is used to characterize are usually fuzzy. Therefore, we may use different membership functions to characterize the same description.

Conceptually, there are two approaches to determine a membership function. The first approach is to use the knowledge of human experts. Usually this approach can only give a rough formula of the membership function; fine-tuning is required. In the second approach, data are collected from various sensors to determine the member ship functions. Specifically, the structures of the membership functions are specified first, then fine-tuning of the membership function parameters should be implemented based on the collected data [8].

In this section, we contribute to the further development of intelligent control techniques of interconnected systems. It provides a new approach to fuzzy control design for interconnected system. The approach consists of two stages: In the first stage, a group of local state estimator is constructed to generate the data base of input-output pairs. In the second stage, an array of feedback fuzzy controllers is designed and implemented to ensure the asymptotic satiability of the interconnected system. Simulation studies on a large-scale system with unstable eigenvalus are carried out to illustrate the features and capability of this new approach.

In the sequel, the terms large-scale and interconnected are used interchangeable. The term large scale system (LSS) does not have a unique established meaning, but it covers systems that possess several particular feature, such as multiple subsystem, [14,17] multiple control, multiple objectives, decentralized and/or hierarchical information structures. Any LSS includes many variables but their control is faced by a well-know fact [16] that the states are not always available for measurement and state must be estimated.

Many authors have considered the state estimation of large-scale systems in input decentralized fashion. Here we summarize one convenient algorithm [15]. Let the state model of the ith subsystem described by

Where all vectors and matrices are appropriately defined and g_{i}(.) is the interaction function between the ith subsystem and the rest of the system. It is considered that (C_{i}, A_{i}) is completely observable for i = 1, 2, …….. N.

The following algorithm finds the optimal states of a large-scale system based on decentralized estimation and control [17]:

Algorithm. 1:

Step. 1:

Read the matrices A_{i}, Bi and select Q_{i} ≥ 0 and R_{i} > 0 as weighted matrix.

Step. 2:

Solve the following 2N algebraic Riccati equations for H_{i}, K_{i}

Where D_{i} = C^{T}_{i}C_{i}, S_{i} = B_{i} R^{-1}_{i} B^{T}

Step. 3:

Integrate the following set of N simultaneous equation for e_{i}(t), I = 1, 2 …. N, using the initial condition e_{i}(0) = x_{ i}(0)

Step. 4:

Integrate the following set of n simultaneous equations for x 1(t), i = 1, 2, ….. N

ẋ _{N} G_{N1} A_{N} - S_{N}I_{N} 0 S_{N}K_{N} x_{ N} B_{N}v_{N}

Step. 5:

Generate the input-output pairs {v_{i}, ŷ_{i} = c_{i}_{i}}.

Assume the following interconnected system of order 10 [17]:

Which is considered to be composed of two-coupled subsystems; each of order 5. The coupling parameters are r1_{jk} and r2_{jk} where j and k take values of 1,2,3,4 and 5. In the sequel, we refer to the structure of the interconnected system model as:

Where G12(r1) and G21(r2) are the coupling mtrices.

For a typical values [4] of r1_{15}=-0.1, r1_{24}=0.1, r1_{42}=0.2, r2_{22}=0.1,r2_{42}=0.15,r2_{51}=0.11 and allothe values of coupling parameters are zeros, we examined the stability of the system by computing the eigenvalues of matrix A. They are {-1.0915, -1.0641, 0.477 + j0.0206, 0.477 – j0.00206, 0.022 + j0.0544, 0.022 – j0.0544, -1.8709 + j0.1713, -1.8709 – j0.1713, -1.9306 + j0.1413, -1.9306 – j0.1413}, and it is quite clear that there are four eigenvalues lie in the open right half of the complex plane and thus the interconnected system is unstable. Further, it is easy to check that the interconnected system is both controllable and observable.

A Matlab program is written to implement the computational Algorithm (1) of section 1.2.2 on the interconnected system. Different positive and negative step input are applied to estimate the outputs. The results of two cases are illustrated in Fig. 9 and Fig. 10 It is observed that the outputs tend to track conveniently the input signals.

We are going to treat the interconnected system at hand as being composed of two identical and coupled subsystems. The control system to be designed is such that each subsystem has its own fuzzy negative feedback controller which its input being the output of the respective subsystem (Fig. 11). Each subsystem fuzzy controller is constructed using two fuzzy systems.

In order to build each fuzzy controller, the following steps are implemented:

Step. 1:

The range of the inputs to each fuzzy controller [α_{i}, β_{i}] are driven from the estimated value of the respective subsystem outputs, where i = 1, 2, 3, 4.

Step. 2:

2N+1 fuzzy set M^{L}_{i} in [α_{i}, β_{i}] that are normal, consistent and complete with triangular membership functions [24], are defined for each controller, where L = 1, 2--, 2N_{i}+1. That is we use N_{i} fuzzy set M^{1}_{i}, ---, M_{i}^{Ni} to cover the negative internal [α_{I}, 0), the other N_{i} fuzzy sets M_{i}^{Ni+2}, ---, M_{i}^{2Ni+1} to cover the positive internal (0, β], and the center of fuzzy set M_{i}^{Ni+1} at zero.

Step. 3:

The following 2N_{i}+1 rules are considered

Where L = 1, 2,---, 2N_{i}+1, and a_{i}, b_{i} are the input to the fuzzy controller i, and the center y_{ai}^{L} and y_{b}^{-L} of the fuzzy set k_{i}^{L} are chosen such that

Step. 4:

Product inference engine, singleton fuzzyfier, and center average defuzzifier are selected to design the fuzzy controller.

The behaviour of the interconnected system outputs after implementing the fuzzy controllers with unity step function input are shown in Fig 12 and Fig: 13. It is clearly evident that the system becomes asymptotically stable by using the negative fuzzy feedback controller array.

Now, we examine the effect of coupling matrices on the performance of fuzzy controlled interconnected system. Five additional cases with deferent coupling ranks are implemented. Fine tuning of membership functions was required to adjust their ranges. The following table summarizes the test cases:

The following figures illustrate the above test cases:

This section has developed a new fuzzy control design approach to interconnected system. It has been shown the approach consists of two stages: In stage 1, a group of local state estimator has been constructed to generate the input-output database. Then an array of feedback controllers has been designed and implemented to guarantee the overall asymptotically system stability. Extensive simulation studies have been performed to support the developed design approach.

This section presents the use of fuzzy logic technique to control the reactive power of a load and hence improve the power factor. A shunt compensator is used, which consists of a reactor in series with a phase controlled Thyristor bridge in parallel with a capacitor. The control composed of two independent fuzzy controllers, the Fuzzy Grouse Controller (FGC) and the Fuzzy Fine Controller (FFC). These fuzzy controllers are used to control the firing angle of the Thyristor Bridge until the source power factor reaches a desired value. Simulations for three different practical study cases are presented and the results show how the designed controller is fast and accurate.

Power factor, nowadays, is an important issue. The over increasing utilization of power electronics in all kinds of industry applications and the severe standards requirements are pushing the research toward new solutions to keep the industrial power factor within certain ranges [26].

A mathematical formulation for the optimal reactive power control is discussed in [27]. Also, the optimized Fuzzy logic and digital PID controllers for a single phase power factor correction converter used in online UPS are demonstrated in [28, 29]. Parameters such as input membership functions, output membership functions, inference rules of fuzzy logic controller and proportional gain, integral gain and derivative PID controller are selected and optimized by genetic algorithms. In additional to that, the applications of a hybrid converter are implemented in [30]. The hybrid converter is basically a converter bridge with two GTOs. A control strategy based on learning is proposed. The learning structure is coded into Fuzzy conditional rules to train a neural network in manipulating the converter variables.

The common method of correction is by means of using static capacitors, whether connected in series or parallel. These are installed as a single unit or as a bank, to regulate the voltage and the reactive power flow at the point of connection. In shunt compensation arrangement, a reactor is connected in parallel with conventional capacitor compensation. The shunt reactor current can be varied via a phase-controlled thyristor bridge connected in series with the shunt reactor [31]. Changing the thyristor firing angle varies the amount. of the current flowing through the reactor. Thus, this thyristor controlled reactor acts as a variable reactor [32]. By varying the firing angle, the total reactive power of the system can be controlled and hence the power factor of the system is improved. The use of fuzzy logic to derive a practical control scheme for a boost rectifier with reactive power factor correction was applied [33]. The control action is primarily derived from a set of linguistic rules used to generate a slow-varying DC signal to determine the PWM ramp function. The proposed technique uses lesser sensing elements than the classical rectifier. A new FACTS controller known as the Bootstrap variable inductance can emulate a variable positive and negative inductance [34]. The bootstrap variable inductance has a variety of FACTS applications such as series compensation of lines, fault current limiting, reactive-power control and load power factor improvement.

Here in this section, we shall focuses on the use of fuzzy logic sets to control the supply power factor. Unlike the conventional capacitive approach for power factor improvement in ac power system, the proposed control scheme has the advantage to avoid complexities associated with the non-linear mathematical modelling of switching converters. The proposed fuzzy logic controlling scheme consists of two controllers. The first controller (FGC) is designed to give the nearest desired value of the firing angle required to compensate for the source reactive power. However, the output correction of this controller is not efficiently accurate and hence, another correction step is needed. Thus, the second controller (FFC) checks the value of the source power factor and improves it above a pre-set desired value. The discussion includes the following:

Illustration of the proposed control scheme.

Description of the design steps of the power factor controller.

Simulation of the proposed technique by testing it for three different study cases.

Figure 24 illustrates the block diagram for a single-phase variable load, with variable lag power factor, supplied by sinusoidal AC power source. Capacitor bank in parallel with inductance, controlled by single-phase full-wave circuit, are connected in parallel to the load in order to govern the total reactive power of the circuit. Fuzzy controller is designed to tune the firing angle of the single-phase full-wave circuit in order to adjust the voltage applied across the Inductance. By this way, the total source reactive power can be minimized to improve the source power factor. For three-phase circuits, one controller is dedicated for each phase. Here, we considered single-phase circuit for simplicity.

The structure of the controller contains two independent fuzzy controllers: Fuzzy Grouse Controller (FGC) and Fuzzy Fine Controller (FFC). FGC input is the load reactive power, the output of this controller gives the nearest value of the desired firing angle, which required to minimize the source power factor. FFC input is the source power factor. The output of FFC corrects the firing angle of the single-phase full-wave controller until the source power factor reaches or exceeds the pre-setted desired value.

The following procedures describe the steps of designing the power factor controller:

2.3.2.1. Elements sizing

The sizes of the 'Inductance' and the capacitance bank are selected such that their maximum available reactive power (in VAR) is equal to the maximum load reactive power (MLQ). Since the full source voltage is continuously applied on the capacitance bank (assuming the voltage drop across the short cable is negligible), then capacitance value 'C' of bank can be determined as follows:

Where V_{source} is “source” r.m.s. voltage in Volt and *f* is “source” frequency in Hz.

However, this is not the case for the inductance since it is connected in series with a full wave controller. The existence of such controller will limit the available maximum reactive consumed by the inductance depending on the firing angle action of the thyristor bridge. Thus, the effect of the single-phase full-wave circuit is considered when determining the size of the inductance.

As listed in [35], the general formulas for the r.m.s value of current (*I*_{load}) and voltage (*V*_{load}) across a load, comprises of inductance in series with resistance, controlled by single-phase full-wave circuit. These formulas are given as follows:

Where:

ω =2πf radian/second α = Firing angleβ = Extinction angle (cut-off angle)θ = tan^{-1} (l/r)l = Load Inductancer = Load Resistancet = Timez = Load impedance

Since the conducting angle δ = β-α cannot exceedπ, the firing angle α may not be less than θ and the control range of the firing angle is:

For maximum available reactive power consumed by pure inductance MARP where r is ignored in the above equation 24 & 25), the maximum conducting angle is considered. Therefore, the value of the inductance can be calculated from the following equation assuming that α=π/2 and β=π (neglecting the impedance of the short Cable and assuming ideal thyristors):

This MARP value must be equal to the maximum load reactive power MLQ for complete compensation. However, the two equations listed above are nonlinear and difficult to solve. Another simple procedure is needed when determining the size of the inductance L.

Thus, the value of the inductance can be found by a practical and fast method using Simulink tool [26]. Figure 25, illustrates the proposed model that been used. The model consists of an ac power source connected to a reactive power compensator controlled by a thyristor circuit. The procedure to find the value of the inductance L can be summarized by the following steps:

Select an initial value for the inductance as L = 1 *(*ω^{2}*C)*

Run the model and record the source VAR.

If the source VAR equals zero*,* then stop the trials. If not, increase slightly the value of the inductance until the source VAR reaches the zero value. Then, this value of the source VAR will determine the desired value of the inductance.

2.3.2.2. Fuzzy Grouse Controller (FGC) design

After using the Simulink model shown in Figure 25, the inductance value is obtained from the iteration. Then, the same model is used again to find the ratio of (Q_{L}/MLQ) for a range of (α) starting from π/2 to π degree where (Q_{L}) is the Inductance reactive power at certain value of (π). This ratio (Q_{L}/MLQ) verses the firing angle (α) is then plotted. Typical curve is shown in Figure 26.

After that, the resultant nonlinear curve is divided to N sections where each nonlinear section is approximated by the nearest linear section. Thus, N Gross Fuzzy controllers (FGC) are built, one FGC for each section, such that the input of each controller is equal to 1- (Q_{Load}/(MLQ), where (Q_{Load}) is the load reactive power. The output of the FGC is the firing angle (α), which results in (Q_{L}) approximately equal to MLQ minus Q_{Load}. The accuracy of the resultant (Q_{L}) depends on the curve linearization.

In order to design each FGC, let the full range of the input fuzzy membership function FGCMF(in)^{a} for each controller is set to the (Q_{L}/MLQ) limits of the respective linearzed section, and the range of the output fuzzy membership function FGCMF(out)^{b} for each controller is set to the (α) limits of the respective linearzed section. For example, in Case 3 (as will be explained later into details), the first controller is designed to take an action in case of (QL/MLQ) ratio reaches a value between rl=0.95 and 1and, the output firing angle of this controller shall take a value between 90 degree and α_{1} = 100 degree. However, the second controller is designed to take an action in case of (QL/MLQ) ratio reaches a value between r2 = 0.175 and rl = 0.950 and, the output firing angle of this controller shall take a value between α_{1} = 100 degree and α_{2} = 105degree, and so on.

The resultant output of each fuzzy controller can be obtained based on the respective linearzed section using the following functions for fuzzy implication process:

Mamdany engine.

Triangle type for Membership functions.

Product for And.

Max for Or.

Proportional for Aggregation.

Largest of Maximum for Defuzzification.

Fuzzy rule : If is MF(in)^{a} Then (α) is MF(out)^{b}

where,

a = 1,2,... F (fuzzy membership function number)b = F-a+l(fuzzy membership function number)a and b are fuzzy membership function numbersF is the number of the fuzzy membership function.

Simulink automatic switching system SS 1 as shown in Figure 24 is designed to check the active range of (Q_{L}/MLQ) in order to select the proper FGC based on that value of (Q_{L}/MLQ) ratio.

2.3.2.3. Fuzzy Fine Controller (FFC) design

Since the FGC output is not accurate due to the linearization process, FFC is designed to tune the firing g angle in order to achieve the desired power factor.

Two fuzzy control1ers are used along with automatic switching system to select the proper controller based on the power factor type (Lead or Lag), which is determined from the source VAR sign (+ or -) as shown in Figure 24.

The input of each FFC controller is the source power factor (PF) and the output is the corrective firing angle (M), which is required to fine tune the FGC output. Since the power factor value varies between zero and one, then the range of each FPC input membership function FFCMF(in)^{a} is [0, 1].

The output membership function of each FFC is FFCMF(out-Lag)^{a} for lagging input and FFCMF(out-Lead)^{a} for leading input and, the magnitude of the firing angle range for the first linearzed section (α_{1}) is considered as a base to scale the FFC output as given hereinafter with the fact that any other section can be selected as the base. Also, [0, ∆α_{1}] and [-∆α_{1,} 0] are assigned to FFCMF(out-Lag)^{b} and FFCMF(out-Lead)^{b} respectively. In addition to that, N multiplier factors (k_{N} = ∆α_{N}*,/* α_{1}*)* are used to scale the FFC output in order to match the magnitude of the firing angle range of the respective linearzed section (∆α_{N}). By this method, less number of FFC's are used.

Another Simulink automatic switching system SS2 as shown in Figure 24 synchronized with SS 1 is designed to check the active range of (Q_{L}/MLQ) in order to select the proper multiplier factor (K_{N}). The fuzzy implication process functions used for FGC design are used for each FFC design as well, but with the following fuzzy rules:

2.3.2.4. Discrete control signal design

Simulink Sum Block is used to add the output of GFC to the output of FFC. Sampler system shown in Figure 24 is designed to convert the resultant analog control signal to discrete signal. The sampling time is selected to be greater than the system time constant. The discrete signal is connected to the input for the synchronized pulse generator to control the thyristor firing angle. Accordingly, the network var and the source power factor are controlled.

The Simulink circuit shown in Figure 24 is used as a base to study three 'test' cases. These cases are assigned to check the capability of the controller to operate within a considerable variation of power factor values at different loading and voltage level.

Each test case consists of four load stages. The load stages are selected such that the power factor varies from 0.3 to 1.0 lag. However, for practical cases, the power factor varies between 0.6 to 0.8 and thus the proposed wide range of power factor tested here is to demonstrate the capability of the designed controller. Table 2 summaries the circuit parameters for three voltage levels 120. 480 and 4160 Volts respectively. Figures 27-29 illustrate the linearization process for each case.

The controller is adjusted to correct the power factor of the test cases to a value greater than a desired value of 0.97. This value is the pre-set value and it can be any chosen practical value. Figures 30 -32 illustrate the results for cases 1-3 respectively. These figures show the variation of the load active and reactive power with respect to time for each case. The response of the controller during the test period represented by the firing angle is also shown. In addition to that, source and load power factor values are plotted to check the response time of the controller and its accuracy.

The test results for the three cases show clearly how efficient is the controller. Even when the load reactive power is very small at both high and low power factor, the controller was successful in reaching an accurate level. During the stage where the load power factor is greater than 0.97 and, hence no need for capacitor compensation, the controller will check the source power factor at the beginning of that stage and if it drops below 0. 97, it will take an action in order to eliminate the compensation added in the previous stage. That is why the controller took an action as shown in Figure 30 for the fourth load stage of case no. 1 where the source power factor drops below 0.97. However, if the source power factor stays above the pre-set power factor value of 0.97 during the load stage where the load power factor is greater than 0.97, then no action will be taken as shown in Figure 32 for the fourth load stage of case no. 3. The time required for the controller to improve the power factor in all three cases is relatively short compared with practical applications. In real cases, the power factor does remain unchanged for relatively longer time. The maximum time for power factor correction was 0.35 second recorded in test case no.1. Overall, the graphs show that the controller works satisfactory under different load conditions and when there is no need for capacitor compensation.

As mentioned before, power factor correction is really an important issue. The designed controller presented in this section shows an efficient, fast and accurate technique in reactive power control. As seen from the overall structure of the controller, it is applicable for lagging power factor loads. Practically, this is almost true but not always where at rare occasions the power factor of the total load is leading not lagging. This will bring the attention towards generalizing the presented controller such that it will work for both cases. Several issues are also need to be considered in the future such as the dynamics of motors. As known that most connected loads are motors which really necessitate testing this controller under these circumstances. From the test results, it was seen that the speed of the controller depends on the system time constant and hence, a time delay is needed to assure that thc dynamics of the motors reach its equilibrium. Other issues related to Thyristors such as the harmonics are a1so need to be taken care by describing a harmonics filter. In addition to that, protection devices such as relays need to be checked during the controller action. Finally, the work presented was based on a single phase and it can be extended for three phase system.

Most of the more advanced prediction techniques can be subdivided into two separate tasks. In a ﬁrst step, the modelling step, the algorithm uses a set of training data to identify a model of a process, from which the training data could have been obtained. In a second step, the simulation step, the algorithm uses the previously identiﬁed model to make predictions outside the training data set. The modelling algorithm can either attempt to identify the true structure of the system, from which the training data were obtained, or it can content itself with identifying any process able to explain the training data set. In the former case, we talk about a deep model, whereas models in the latter category are referred to as shallow models.

The identiﬁed model can be either a quantitative or a qualitative model. A quantitative model operates on the measurement data directly, whereas a qualitative model ﬁrst discretizes the measurement data, and then reasons about the discrete classes only. Also the model can be either a parametric model or a nonparametric model. A parametric model maps the knowledge contained in the training data set onto a set of model parameters. During the simulation phase, the training data are no longer needed, since the information contained in them is now stored in the parameter values. A non-parametric model only classiﬁes the training data during the modelling phase, and refers back to these classiﬁed training data during the simulation phase.

Fuzzy logic are used now a day in many application for diagnostic, prediction forecast and understanding the behaviour of very nonlinear systems such as marketing, electrical load forecast, work load analysis, technical analysis etc…

In this chapter Section 2.1, we shall introduce an important algorithm for classifying “clustering” the data based on fuzzy logic. Then two new fuzzy trending and prediction application shall be discussed. In Section 2.2 Accident rates Estimation Modelling Based on Human Factors shall be introduces, and in the next section 2.3, Fault Location in Distribution Networks shall be introduced.

Clustering attempts to assess the relationships among patterns of the data set by organizing the patterns into groups or clusters such that patterns within a cluster are more similar to each other than are patterns belonging to different clusters. Many algorithms for hard and fuzzy clustering have been developed to accomplish this[42]. An intimately related important issue is the cluster validity, which deals with the significance of the structure imposed by a clustering method [43].

For fuzzy sets, the following definitions are recalled from [36]:

A fuzzy set in a universe discourse U is characterized by a membership function _{A}(x) that takes values in the interval [0,1].

Let X={x_{1},...,x_{n}} be any set, V_{cn} be the set of real c×n matrices U=[µ_{ij}], c, i, j be integer numbers with 2 c n, 1 i c and 1 j n.Then the fuzzy partition matrix for X is the set M_{fc} = {U V_{cn} _{ij} [0,1]} (32)

Such that

An α-cut of fuzzy set A is a crisp set Aα that contains all the elements in U that have membership value in A greater thanα, that is

Defuzzification is defined as a mapping from fuzzy set B` in V R to crisp point y^{*} V. Conceptually, the task of the defuzzification is to specify a point in V that best represents the fuzzy set B`.

The following three criteria should be considered in choosing the defuzification method:

Plausibility: The point y^{*} should represent B` from an intuitive point of view.

Computational simplicity.

Continuity: A small Change in B` should not result in a large change in y^{*.}

The fuzzy c-means (FCM) clustering algorithm is the fuzzy equivalent of the nearest hard clustering algorithm [43,44], which minimizes the following objective function with respect to fuzzy membership μ_{ij}, and cluster centroid V_{i}.

where X = [X_{1},….,X_{n}]^{t} is a vector representing the data, c is the number of clusters, n is the number of data points and f is a fuzziness index (greater than 1)

The FCM algorithm is executed by the following steps:

Initialize memberships μ_{ij} of X_{j} belonging to cluster i such that

Compute the fuzzy centroid V_{i} from i=1 to i=c using

Update the fuzzy memberships μ_{ij} using

Repeat steps 2 and 3 until the value of J_{m} is no longer decreasing.

The FCM always converges to strict local minimum of Jm starting from an initial guess ofμ_{ij,} but different choices of initial μ_{ij} might lead to local minima.

The quality of a clustering is indicated by how closely the data points are associated to the cluster centers, and it is the membership functions, which measure the level of association or classification. If the value of one of the membership is significantly larger than the others for a particular data point, then that point is identified as being a part of the subset of the data represented by the corresponding cluster center. But, each data point has c memberships; so, it is desirable to summarize the information contained in the memberships by a single number, which indicates how well the data point is classified by the clustering. This can be done in a variety of ways; for example, for the data point X_{j} with memberships {μ_{ij},...,μ_{cj}}, one could use any of the following:

In fact, theses four indices of these are used as measure of the quality of clustering and are the basis for the *validity functional*, *partition coefficient*, *classification entropy, and proportion exponent*, respectively.

To illustrate the use of validity functional, we shall focus on the partition coefficient technique because of its simplicity. It is based on using S_{j} =Σ_{i} (μ_{ij})^{2} as a measure of how well the jth data point has been classified. This is a reasonable indicator because the closer a data point is to a cluster center, the closer S_{j} is to 1, the maximum value it could have. Conversely, the further away the k^{th} point is from all the cluster centers the closer the value of S_{j} is to 1/c, the minimum possible value. The partition coefficient is then the average over the data set of the S_{j}’s. In particular, for a data set X={x_{1},…,x_{i}} and a specific choice of c and m one obtains the output of fuzzy c-means and computes the partition coefficient (PC) by PC=Σ_{j}(Σ_{i}(μ_{ij})^{2}/n. The closer this value is to one the better the data are classified. So, in theory, one computes PC for the outputs of a variety of values of c and m selects the best clustering as the one corresponding to the highest partition coefficient [44,45].

Several individual books [37] and projects shed light on worker accident causation. One study on the Bonneville Dam project, reported that seven times the number of work accidents that had occurred on this project were due to unsafe employee actions rather than to unsafe site conditions. In addition, this study found that the negative attitude of the workers toward safety was a major factor in accident occurrence.

In [38]. Many organizations spend a lot of time and effort trying to improve safety. As well as addressing technical and hardware issues, many conduct safety management system audits to discover deviations from the performance standards set in their Health & Safety Policies. Line management is encouraged to conduct regular inspections of the workplace and employees are trained to behave safely and are given the appropriate protective equipment. The impact of such initiatives could be seen in the overall downward trend in accident statistics from 1990 to 1998/99. After 2000, accident statistics started rising in many UK industrial sectors. In the Quarry Industry, for example, there has been a 60% rise in the number of fatalities.

Another study by Stanford University [39] indicated that risk taking is often a normal part of human psychology. We sometimes drive too fast or take chances we should not. Risk which is taken on the job site, however, can be fatal. This study found that many workers believe that taking unnecessary risks is an accepted part of the job process. This risk acceptance attitude leads to carelessness and accidents. The results of the Stanford study show that workers who are likely to have lost-time accidents share similar characteristics. These workers have a negative attitude toward doing their jobs safely, and they accept unnecessary risk and, therefore, do not work safely. Taking unnecessary risks and adopting a poor safety attitude simply makes workers more prone to accident occurrences. The conclusion of the Stanford study clearly supports the contention that employee actions and attitudes can affect the number and type of workplace accidents. Employers can and do address this attitude of risk taking through safety education, safety rules, and training programs. However, no employer can supervise each employee every minute of the work day.

In [40], the paper focuses on the development and representation of linguistic variables to model risk levels subjectively. These variables are then quantified using fuzzy set theory. In this paper the development of two safety evaluation frameworks, using fuzzy logic approaches for maritime engineering safety based decision support in the concept design stage are presented. An example is used to illustrate and compare the proposed approaches. The paper also suggests that future risk analysis in maritime engineering applications may take full advantages of fuzzy logic approaches to complement existing ones.

The field of fuzzy systems has been making rapid progress over the past decade [36]. There are two kinds of justification for fuzzy systems to be used to achieve our objective:

The problem is too complicated for precise description to be obtained, therefore approximation, or fuzziness, must be introduced in order to be a reasonable and net traceable model.

As we move into the information era, knowledge is becoming increasingly important and the need for a theory to formulate human knowledge in a systematic manner becomes the norm not the exception.

But as a general principle, a good engineering theory should be capable of making use of all the available information effectively. For many practical systems, important information comes from two sources: one source is from human experts who describe their knowledge about the system in natural languages; the other is sensory measurements or mathematical models that are derived from to physical laws.

An important task, therefore, is to combine these two types of information into system designs. Therefore, the key question is how to transform human knowledge base into a mathematical formula or model. Essentially, what a fuzzy system does is to perform this transformation in a systematic way.

In this part of Section 2, we attempt to use a completely different approach to analyze - accidents. A model shall be developed for data collected from an accident rate questionnaire filled-in by laborers working for a reputable construction company. This questionnaire was designed to include information about human factors, as well as other factors such as work type, managerial factors, training, physical factors and the historical accident rate for each labor during his period of employment in this particular construction company, and his experience during his career life time. The collected data shall be split into a training set for model construction and a test for model verification. The training information shall be classified into a number of groups or clusters, the centroids of these clusters were subsequently used to generate a set of rules to develop a fuzzy engine, which can then predict and forecast the rate of accidents. The test cases shall be used to verify and validate the developed model. Discussion on the results obtained from using fuzzy logic techniques shall be carried out.

Construction sites are very dynamic and complex by nature, creating the potential for hazards that change constantly. So, what was safe yesterday may no longer be safe today. Thus, safety precautions should be followed and controlled. Unsafe working conditions and accidents are usually warning signs that something is wrong and has to be rectified.

Different government authorities measure safety at construction sites [41], however co-ordination and sharing of information with each other is still lacking. In addition, the data available on construction site accidents are neither accurate nor complete, due to the absence of a reliable accident reporting and recording system. Incomplete records are due to the poor accident investigation that may be a result of:

Reluctance of reporters to assert authority.

Inexperienced and untrained investigators

Narrow interpretation

Judgmental behavior.

Incomplete or erroneous conclusions.

Delays in accident investigations.

For these reasons we endeavored to avoid the normal way of doing the job, and instead, we focused on the laborer, himself, and his accident rates during his years of work experience as an expert source of data. We have tried to design the questionnaire in such a way as to serve our purpose of analyzing the data, and selected the interview method to get the maximum precise data possible.

3.2.1.1.Questionnaire. design

In the design of questionnaire (Appendix) we have selected some certain features of human nature that, we believe, have a great potential on the accident causation in the local market [41]. The first page of the questionnaire concentrated on the personal information of the workers: i.e. ‘height’, ‘weight’, ‘optical status’, ‘hearing ability’, ‘general health’, ‘education’ and ‘adherence to safety rules’. In this part we used some linguistic evaluations like ‘high’, ‘low’, ‘fair’, ‘good’, ‘medium’ etc., and in some others we have used numerical evaluations like in height, weight, as well as education. Since the objective here is to create a fuzzy model, high accuracy is not important and we considered that the respondents from the same field made the same judgments.

The second page was designed to concentrate on the work information: ‘overtime work’, ‘experience’, ‘work nature’, ‘work type’, ‘hazardous level’, ‘needs for safety-gears’, ‘work location’ and ‘level of boredom’. Again, we have used some linguistic evaluations as well as numerical evaluations. We also concentrated on the managerial factors: ‘salary received on time’, ‘level of training’ ‘importance’ and level of importance placed on safety’, with only linguistic evaluations.

The third page was a mix of both external factors: ‘noise’, ‘live with family’ and ‘communication ‘language’, and accident history focusing on the number of accidents the laborer has faced during his work in the local construction market, which was the most important data that we needed to develop our model. The severity of accidents has not been taken into account since it is not considered a factor influencing the accident rate.

The cases obtained for this study were collected from three different construction companies selected to represent the local market. We have tried to select the cases from different ranks of the workforce, from higher levels to the lower levels to be able to study the different accident level cases that serve the purpose as well as adding versatility and diversity to this work.

3.2.1.2. The response

From the original cases that we collected on 95 people, we included only 76 cases and excluded 19 cases, which were incomplete. This has produced a very high response rate that reached 82.1%, which is relatively high, especially as the questionnaire is lengthy and a little bit complicated. More cases could have been obtained. However, since the aim of this study was to develop a model for accidents, the number of cases is not set a priority. Rather, the cases are accumulated and the algorithms are stopped when a cluster validity criterion is satisfied thereby yielding the optimum number of clusters.

3.2.1.3. Limitations

Limitations in this study should be noted. One of the limitations is that we did not include any specific information related to the accident consequences. Another limitation is that this study was made only on males and no female cases were studied, which makes it specific only to one sex.

3.2.1.4. The feature matrix

The feature matrix (FM) is the most important part of our work in this section, since by using this matrix we have been able to convert the linguistic variables into numerical variables. Thus, we can deal easily with practical cases and reduce the required operations of processing the output.

The columns of the FM matrix represent the feature variables which we obtained from the questionnaire. The rows of the matrix represent the different cases of laborers that we selected for interviews. Thus, for each case in the matrix we mapped the linguistic meanings into numbers according to weights we have proposed. For example, in case labelled (S1), the feature weight 1 (FW1) represents the rate of accidents per year of experience, which is the actual representation of the accident rates. FW2 represents the ratio between weight and height (specific weight). FW3 represents optical status and FW4 represents hearing ability. These feature weights are scaled on a scale of five from 1 to 5, to represent the linguistic variables. Therefore, 1 means `very bad`, 2 means `bad`, 3 means `medium`, 4 means `good` and 5 means `very good`. All the other variables are dealt in the same way until the matrix was generated. A sample of the feature matrix is shown in Table3.

In this stage, FCM techniques will be implemented on the feature matrix after normalizing the data, based on column maximum values for ease and as being more indicative, then deciding the optimum number of clusters, by applying cluster validity techniques. The centroides for these optimum clusters are considered perfect models represent the feature matrix.

In order to obtain the models, the following steps have been implemented:

Each column in the feature matrix is normalized by dividing all the numbers in this column by the maximum number of the absolute values of all the numbers in the said column.

Cluster validity study is implemented to determine the optimum number of clusters for the normalized data.

FCM technique is implemented to determine the centroids matrix of the selected number of clusters.

MATLAB fuzzy toolbox has been used to implement the above three steps [46].

3.2.2.1. Clustering results and discussions

The results can be summarized as follows:

The optimum number of cluster (twelve) is determined by implementing cluster validity technique. The result is illustrated in Figure 33 which gives the relation between the number of clusters and the corresponding error where:

Table 9 (Appendix) illustrates the centroide matrix for the optimum number of clusters (twelve), where FW(j) stands for feature weight described in Table 10 (Appendix).

3.2.2.2. Scaling of data

In order to reduce the error in the estimation of the membership functions ranges (e.g. the estimated range of FW5 was from 1 to 5, while from centroide matrix the range for the same feature is found to be from 3.750 to 4.9953) each feature vector element is scaled according to the following formula:

Where:

X_{i} = Vector elementX_{min} = Min. Vector elementX_{max} = Max. Vector element

3.2.2.3. Model development

By comparing each row of the centroids matrix with the contents of the questionnaire after scaling, one can infer the structure of the respective model, for example maximum and minimum rate of accident as illustrated in Table 11 (Appendix). From structure, following features can be extracted:

Labours in this construction company can be classified into 12 models.

The expected range of accident rate in company varies from 0.1581 to 2.8894 accidents per year.

By comparing the above two extreme models, one can easily discover that receiving salary on time has no effective impact on accident rate.

The highest rate of accidents occurs to non-local workers (Live without their family most of the time).

The twelve models obtained above shall be utilized later as fuzzy rules representing the this local construction company to predict the rate of accident for any person working on construction field.

Now, fuzzy logic techniques will be implemented using the models obtained in Section 2.2.2, as perfect fuzzy rules, to predict the accident rate for any laborer who works in the construction field. The following flow chart (Figure 34) describes the fuzzy accident prediction system:

The models obtained from the fuzzy c -means the clustering process has been considered as very good and suitable fuzzy rules that govern the relation between the laborers in construction field and the expected annual rate of accident.

The beauty of using this type of clustering is not only to achieve the required models, but also these models are fuzzy, and can be geared in the fuzzy engine.

In order to fuzzify the model variables, a suitable number of Gauss functions (linguistic variable) is selected for each linguistic value so that any rule must fire all the linguistic values and the rules are given as follows [36]:

Where,

FW(1to22) : input linguistic variableFW23 : output linguistic variablemf _{a,b..w} : semantic rulea,b..w: integer number from 1 to 5

Mamdani inference engine with centroid defuzzification and proportional aggregation is used in the construction of the fuzzy system. MATLAB Fuzzy Toolbox has been used to implement the required fuzzy prediction system. Eight cases have been tested and the results are given in hereinafter.

3.2.3.1. Relevant results

Eight additional random cases have been chosen from a local construction company. Features, actual accident rate and output of fuzzy prediction system for each test case are given in Table 12 (Appendix). The standard deviation between the actual accident rate and the predicted accident rate for each test case is calculated then the average standard deviation is obtained in order to determine the validity of the model. The results are shown as follows in Table 4:

In (Appendix), Figure 37 shows the output of the prediction system for a case thatfires all the linguistic values at the middle. It is observed from this result that the laborers with `average` personal information, `average` work condition, `average` managerial condition and `average` external effects are exposed to `average` annual accident rate.

Figure 38(Appendix) correlates the laborers general health and specific weight with their annual accident rate considering all other factors are `average`. It is clear that the annual accident rate increases with the significant increase of the specific weight and significant poorness of the general health.

In Figure 39 (Appendix), the laborers educational level and safety adherence are plotted against their annual accident rate considering all other factors are `average`. It is noticed from this illustration that the laborers with the two educational level extremes are exposed to accidents more than the `average` educational level laborers.

Figure 40 (Appendix) correlates the laborers optical status and hearing ability with their annual accident rate considering all other factors to be `average`. It is clear that the annual accident rate increases with the significant poorness of the optical status and hearing ability.

From the last plot (Figure 41 - Appendix), it is clear that if the company is not keen on the level of safety, the annual accident rate will be increased, considering all other factors are `average`. In addition, it is noticeable from the figure that the tasks that are considered to be dangerous and need safety-gear are a source of accidents.

The main objective of in this example to generate a human model which reflects the interaction between human factors in addition to other factors such as managerial factors, accident information, and work information, using fuzzy clustering techniques. Secondly, to predict annual rate of accident for any sample of workers by applying fuzzy logic techniques. Some of the important results obtained can be summarized as follows:

Fuzzy clustering techniques can be used to build a model that characterizes the different features of workers in local construction field against their rate of accidents.

The model obtained from clustering is considered as rules to be used in a fuzzy logic engine to predict the rate of accidents for any worker in the construction field.

For any specific case, 231 correlations (between any two features and the rate of accidents) can be done via the fuzzy engine.

Optimum training to improve the safety attitude for certain laborer with minimum cost can be estimated by analyzing the correlation between the level of training and rate of accident of this particular labourer.

By analyzing the correlation between level of safety importance and rate of accidents for the workers in a particular company, the limits of the effective safety improvement can be predicted in order to evaluate the investment in this direction.

A similar technique can be applied to a particular company to predict the rate of accident in order to estimate the insurance rate for the people who work in this particular company.

Using the accident rate fuzzy prediction techniques companies can select the most suitable workers for any particular task

In last section of this chapter we shall studies an existing 13.8 kilovolt distribution network which, serves an oil production field spread over an area of approximately sixty kilometers square, in order to locate any fault that may occur anywhere in the network using fuzzy c-mean classification techniques.

In addition, we shall introduce several methods for normalizing data and selecting the optimum number of clusters in order to classify data. Results and conclusion shall be also given to show the feasibility for the using the fuzzy logic to locate the fault location.

A joint venture oil company possesses two production areas, Area1 and Area2. For each area a power distribution system is provided. The power supply required for the two fields is provided from 130 MVA capacity power generation plant located in Area1. Twenty MW is transmitted to Area2 via 35KM long over head transmission line (OHTL) on wooden poles. Area2 power system also contains two 3.16 MVA stand by generators.

Area2 distribution system consists of three radial overhead transmission lines, 8-10 KM long each, serve submersible oil pumps and other loads scattered in the field (60-kilometer square). These overhead transmission lines have neither differential relays nor sectionalizing fuses. Programmable logic Controller (PLC) is connected to the incomers, outgoings and generators auxiliaries at Area2 power station. This PLC records the running and tripping information for all bus-bar compartments.

Due to the aging of the system, remote area problems and harsh desert weather, repeated faults are experienced in the grid. Because of unavailability of differential relays and/or sectionalizing fuses, it is very difficult and long time is consumed to locate any fault in this network. The problem is reflecting passively on the oil productivity of this important area.

In order to measure the features of the faults at 176 nodes of the network; load flow study is implemented to determine the respective power loss for each short circuit case and also short circuit study is carried out to determine the feature vector for each short circuit case.

The results, obtained from the load flow study and the short circuit study, shall be used to form the network *feature matrix,* which will be clustered and analyzed hereinafter. The parameters that selected to build the feature matrix are shown in Table 5.

Fuzzy clustering technique shall be used to classify the possible fault locations, which can be near to any node in the network or near to a chosen set of nodes based on the operator experience, into groups. The optimum number of groups (clusters) is computed using validity clustering technique. The remaining 13 cases are used as test cases. Euclidean distance technique is implemented to find out the group of nodes, which the fault may be found near to, for each test case.

**Assumptions:** The following assumptions are considered:

The temperature of the network conductors is assumed constant at seventy degree Celsius.

Only symmetrical short circuit is conceded. The same procedures can be implemented for any other type of faults.

Assumption (a) is valid since the transmission lines are short [47]. For assumption (b), the same work can be repeated for all other types of failures.

3.3.3. Fault location using column maximum normalization

Now, FCM technique can be implemented after normalizing the data based on column maximum values and deciding the optimum number of clusters. The results shall be analyzed in order to locate any failures may occur in the network.

3.3.3.1. Calculation procedures

To detect the fault using FCM technique with column maximum normalization the following steps have been implemented:

Each column in the Feature Matrix is normalized by dividing all the numbers in this column by the maximum number of the absolute values of all the numbers in the said column.

Cluster validity study is implemented to determine the optimum number of clusters for the normalized data.

FCM technique is implemented to determine the fuzzy partition matrix of the selected number of clusters.

The norms between each test data and the full data in the chosen cluster is examined, accordingly the corresponding cluster for each test data is decided based on the minimum norm obtained from the said examination.

Alpha-cut defuzzification is used with alpha equal to 90% of the average of norms between the cluster center and its data.

The nearest node to the fault is checked in order to determine whether it is included in the possible locations or not.

3.3.3.2. Results and discussion

Matlab program is written to implement the above six steps and the results are analyzed and summarized as follows:

The optimum number of cluster (twenty five) is determined by implementing cluster validity technique discussed in 2.1. The result is illustrated in Fig 35 which give the relation between the number of clusters and the corresponding error where:

Table 6 shows the effort saved to locate 13 fault cases. From this table, it can be noticed that:

Effort Saving = 1-Ratio between the number of possible locations to the total number of nodes*100%. (45)

Also, we can define the following terms:

Percentage of successful trials (Ratio of the cases of including the nearest node in the possible locations to the total number of testing cases*100%) = 92%. (46)

Average effort saving (Summation of the Effort Saving percentages divided by the total number of the cases) =75% (47)

It is important to notice that fuzzy cluster technique failed to locate the fault of test data number 4 due to the lack of information near to this location. However, it is expected that for more available information the performance of this technique will be improved.

3.3.4. Fault location using simple maximum normalization

Here, FCM technique is implemented after normalizing the data based on the maximum value of the data and deciding the optimum number of clusters. Then, the results are analyzed in order to locate any failures may occur in the network.

3.3.4.1. Calculation procedures

To detect the fault using FCM technique with simple maximum normalization, the following steps have been implemented:

All the numbers in the feature matrix are normalized by dividing all of them by the maximum number of the absolute values of all the numbers in the matrix.

The data are preliminary classified into clusters based on the understanding of the network operation.

Cluster validity study is implemented to determine the optimum number of clusters for the selected cluster.

FCM technique is implemented to determine the fuzzy partition matrix for the selected number of clusters.

The norms between each test data and the full data in the chosen cluster is examined, accordingly the corresponding cluster for each test data is decided based on the minimum norm obtained from the said examination.

Alpha-cut defuzzification is used with alpha equal to the average of norms between the cluster center and its data.

The nearest node to the fault is checked in order to determine whether it is included in the possible locations or not.

3.3.4.2. Results

Matlab program is written to implement the above six steps and the results are analyzed and summarized as follows:

The optimum number of cluster is determined by implementing cluster validity technique and the results are given in Table 7. It is clear from the Table that the optimum number of clusters varies from case to another, which indicates that for any considerable additional of information, cluster validity study should be implemented again to find the new optimum number of clusters.

Figure 36 illustrates the relation between the number of clusters and the corresponding error in case 1, where error is calculated as given in (45).

Table 8 shows the effort saved to locate 13 fault cases. From the this table, it can be noticed that:

Effort Saving can be calculated as given in (45)

Percentage of successful trails = 100%. See (46)

Average effort saving = 87% See (47)

The main objective of was to apply fuzzy c-mean clustering technique to locate any 3-phase fault that may occur at any point on actual power distribution network. Two different normalizing methods have been used to process the feature matrix data. The result obtained can be summarized as follows:

Fuzzy clustering technique can be used to investigate the location of faults in networks.

Any actual fault can be utilized and be fed back to the database of the clustering system to improve its performance and efficiency.

Understanding the network configuration and operation can be utilized to improve the clustering which gives better results.

Data matrix comprising the feature vectors should reflect good and adequate description of the network.

For any major network's upgrading or change the clustering should be implemented again by using the new data obtained from complete study of the modified network.

## 4. Summary of the chapter and conclusion

In this chapter we presented five new problems from different application; control, accident analysis, process and electrical network. By using fuzzy logic technique, we succeeded to resolve these problems efficiently. We also introduced different type of normalization of the data. Generating fuzzy rules by either linearization of the curves or by clustering the data were presented as well. Then a method of coloration and prediction of information using the generated fuzzy rules were provided.

Appendix