American Journal of Intelligent Systems
p-ISSN: 2165-8978 e-ISSN: 2165-8994
2022; 12(2): 51-58
doi:10.5923/j.ajis.20221202.02
Received: Jan. 17, 2021; Accepted: Jul. 20, 2022; Published: Jul. 29, 2022

Adeyemo I. A.1, Ojo J. A.1, Ola O. M.2, Babajide D. O.1
1Electronic & Electrical Engineering Dept, Ladoke Akintola University of Technology, Ogbomoso, Oyo State, Nigeria
2Works & Services Unit, Bowen University, Iwo, Osun State, Nigeria
Correspondence to: Adeyemo I. A., Electronic & Electrical Engineering Dept, Ladoke Akintola University of Technology, Ogbomoso, Oyo State, Nigeria.
| Email: | ![]() |
Copyright © 2022 The Author(s). Published by Scientific & Academic Publishing.
This work is licensed under the Creative Commons Attribution International License (CC BY).
http://creativecommons.org/licenses/by/4.0/

Solving the transcendental nonlinear equations characterizing harmonics in multilevel converters in real time is presently infeasible due to heavy computational burden in terms of memory and computational time. To overcome this problem, artificial intelligence based predictive models are used. This paper presents a comparative study and performance evaluation of artificial neural network (ANN) and adaptive neuro-fuzzy inference system (ANFIS), which are the leading predictive models for modeling nonlinear systems such as the relationship between the modulation index and switching angles in multilevel converters. The performance of both ANN and ANFIS are evaluated in terms of accuracy, convergence behaviour as well as learning and generalization capabilities using coefficient of determination (R2), root mean square error (RMSE) and mean absolute error (MAE) as the performance evaluation metrics. The results of simulations performed in MATLAB/SIMULINK environment are also presented to validate the predictions made by the models.
Keywords: ANN, ANFIS, Multilevel inverter, Selective Harmonics Elimination (SHE), Newton Raphson method
Cite this paper: Adeyemo I. A., Ojo J. A., Ola O. M., Babajide D. O., Comparative Study of Adaptive Neuro-Fuzzy Inference System and Artificial Neural Network for Online Harmonic Mitigation, American Journal of Intelligent Systems, Vol. 12 No. 2, 2022, pp. 51-58. doi: 10.5923/j.ajis.20221202.02.
![]() | Figure 1. Single-phase structure of an N-level CHB inverter |
![]() | Figure 2. Output voltage waveform of a single-phase 11-level CHB inverter |
![]() | (1) |
![]() | (2) |
![]() | (3) |
Where S is the number of SHE equations or degrees of freedom and n is the harmonic order. Generally, for S number of degrees of freedom, one degree of freedom is used for controlling the magnitude of the desired fundamental output voltage V1 and the remaining (S-1) degrees of freedom are used to eliminate the selected lower order harmonics that are dominant in the total harmonic distortion (THD). From equation (3), the expression for fundamental output voltage is given by![]() | (4) |
![]() | (5) |
![]() | (6) |
![]() | (7) |
![]() | (8) |
![]() | (9) |
![]() | (10) |
and bias (b) of the network [18].![]() | Figure 3. Typical feedforward ANN |
are normally continuous variable with n being the number of inputs to the neuron. Each of the inputs
is multiplied by an associated adjustable scalar weight
, which can be positive or negative corresponding to acceleration or inhibition of the flow of signals. Neurons belonging to adjacent layers are fully connected and the activation function of the neurons is generally sigmoid, inverse tan, hyperbolic, Gaussian or linear.![]() | Figure 4. Structure of a single artificial neuron |
![]() | (11) |
![]() | (12) |
= i-th input signal of the neuron
= weight associated with the i-th input signalb = adjustable bias associated with the neuron
= weighted response (summing junction) of the j-th neuron with respect to instant k.
= activation function of the j-th neuron
= output signal of the j-th neuron with respect to the instant k.The adjustment process of the network weights
associated with the j-th output neuron is done from computation of error signal with respect to the k-th iteration. This error signal is given by the following equation: ![]() | (13) |
is the desired output at the j-th output neuron.In the back propagation algorithm, the performance criterion is based on the mean-squared error function, which is defined as the summation of all squared errors produced by the output neurons of the network with respect to k-th iteration yields ![]() | (14) |
so that for each data set,![]() | (15) |
![]() | (16) |
is the weight connecting the j-th neuron of the l-layer to the i-th neuron of the (l-1) layer, and η is a constant that determines the learning rate of the back-propagation algorithm. The weights belonging to the hidden layer of the network are adjusted in similar manner.C. ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM (ANFIS)Adaptive neuro-fuzzy inference system (ANFIS) can simply be described as a fuzzy inference system (FIS) trained by adaptive artificial neural network (ANN) [19]. While the strength of ANN lies in its non-linear input-output mapping ability by learning from knowledge base without knowing the underlying mathematical relationship, however, it lacks heuristic sense and it works like a black box. On the other hand, the strength of rule-based fuzzy logic (FL) lies in its capability to transform heuristic and linguistic terms into numerical values and vice versa through fuzzy rules and membership function. However, FL is plagued by the difficulty involved in finding the accurate fuzzy rules and membership functions, which are heavily dependent on the prior knowledge of the system. By combining ANN with FL, ANFIS uses the adaptive data-based training process of ANN to tune the parameters of the fuzzy inference system. Thus, ANFIS combines the adaptive learning capability of ANN with the robustness and imprecise or distorted data usage capability of FL. Figure 5 shows the architecture of a five-layer ANFIS with two inputs and a single output. The nodes of layers one and four are adaptive nodes, which are represented by squares while the nodes of layers two, three and five are fixed nodes that are represented by circles. ![]() | Figure 5. ANFIS structure for two input variables and five layers |
Rule 2: if x is A2 and y is B2, then
Where x and y are the crisp inputs, Ai and Bi are the linguistic variables associated with the node function. The output of each node in every layer can be denoted by
where i is the node number and l is the prevailing layer number. The first layer is called the fuzzification layer. The parameters in this layer are called premise parameters, and every node in this layer is an adaptive node. In this layer, there is transformation of crisp input variables into fuzzy variables. The crisp input variables are assigned membership functions, which determines their degree of membership of a fuzzy set. The outputs of the fuzzification layer are the membership grade of the crisp inputs, and they are expressed as follows:For x input to node i,
For y input to node i,
Where
and
are membership functions that determine the degree to which the given x and y satisfy the quantifiers Ai and Bi.The second layer is called antecedent rule layer. The degree of fulfilment (DOF) is determined for each rule in this layer. The firing strength for each rule, which qualifies the extent to which any input data belong to that rule is calculated. Every node in this layer is a fixed node, whose output represents the firing strength of a rule, and the firing strength represents the IF conditions to set the rules. The output of this layer is the algebraic product of the input signals given as:![]() | (17) |
![]() | (18) |
![]() | (19) |
is the output of the third layer and
is the parameter set of node i. These parameters are referred to as consequent parameters. The last layer is the summation layer. It contains a single fixed node labeled
which computes the overall output by summing all the incoming signals.![]() | (20) |
![]() | (21) |
![]() | (22) |
![]() | (23) |
![]() | (24) |
![]() | (25) |
is the predicted value of y,
is the average value of y and N is the number of observations available for analysis.
, MAE and RMSE for different ANN topologies are presented in Table 1.
|
and RMSE compared with 1:50:5 while topology 1:30:5 has the least value of MAE which indicate that performance does not necessarily improved with increasing number of neurons in the hidden layer. Topology 1:40:5 has the highest value of
but its value of MAE is more than twice the value obtained for topology 1:30:5. Comparative analysis of the values of
, MAE and RMSE for different ANN topologies presented in Table 1 shows that topology 1:30:5 is the optimal model.Different types of input membership functions (IMF) and output membership function (OMF) were evaluated for ANFIS model. The optimal number of membership function (NMF) was found to be 20. The values of
, MAE and RMSE for different ANFIS models are presented in Table 2.
|
and the least value of RMSE (0.9368).With the optimal topology of ANN model and IMF/OMF of ANFIS model chosen to be 1:30:5 and Sigmoid/Linear, respectively. The values of
, MAE and RMSE are (0.9983, 0.0126, 1.1537) and (0.9987, 0.0372, 0.9368) for the chosen ANN model and ANFIS model, respectively. Shown in Figure 6 are the plots of switching angles versus modulation index for NR computed, ANN predicted and ANFIS predicted solution sets, respectively. ![]() | Figure 6. Plots of switching angles versus modulation index for (a) NR (b) ANN and (c) ANFIS models |
|
![]() | Figure 7. Harmonic spectra of (a) ANN and (b) ANFIS solution sets at the same modulation index of 0.703 |
, MAE and RMSE for ANN and ANFIS model shows that ANN outperform ANFIS in term of MAE while ANFIS have better values of
and RMSE. Both models demonstrated good generalization capability for the generation of accurate solution sets for SHEPWM controlled multilevel inverters in real time. However, simulation results show that ANN is more efficient for THD minimization while ANFIS is more suitable for the selected lower order harmonics elimination. The findings of this study will aid other researchers in the area of artificial intelligence (AI) based forecasting techniques in their choice of the appropriate predictive model. Future research on the findings of this study could be done to establish ANN and ANFIS as viable alternatives to time series analysis or linear regression.