Professional Documents
Culture Documents
Icatces2018 92
Icatces2018 92
Icatces2018 92
409
International Conference on Advanced Technologies, Computer Engineering and Science (ICATCES’18),
May 11-13, 2018 Safranbolu, Turkey
Humpback whales approach their prey with a strategy X rand represents a randomly selected solution vector.
called bubble-net feeding method. In this method, they move Which one of them, global or local searches, will be
towards their prey by blocking the view of their prey with the performed is decided based on the value of vector 𝐴𝐴. Since the
bubbles they create. They move towards their prey by 2 point which is more distant than the best point can be selected
methods that are called narrowing the circle and spiral when it is 𝐴𝐴 >1 or 𝐴𝐴 <1 for vector A, these cases are regarded
movement method. The method of narrowing the circle is as global search.
possible by decreasing the value of "a" in equation (3).
The steps of the WOA are presented below.
In the spiral movement method, the distance between the Steps of the Algorithm
whale and prey is first calculated as in equation (5). This value Step 1: Population n, a parameter, A, C coefficient
is then used to calculate the spiral movement method in parameters, Maximum iteration are set.
equation (6). Spiral movement is presented in Figure 1. Step 2: Candidate solutions with n populations are created
randomly and the fitness function value of each candidate is
calculated.
D ' = X * (t ) − X (t ) (5)
Step 3: Initially, the best solution X* is accepted as the global
best.
Step 4: A,C, a, p parameters are updated throughout the
X (t + 1) = D ' .ebl . cos(2πl ) + X * (t ) (6) algorithm.
Step 5: The movements of the whale are updated according to
b-represents the logarithmic spiral constant, l-represents a the value of p.
random number in the range of [-1,1]. Step 6: The best solution is offered when maximum iteration
is reached.
III. ANFIS
Adaptive network-based fuzzy inference system (ANFIS) is
an artificial neural network developed by applying the Sugeno
fuzzy model. ANFIS has an extensive area of usage in the
literature as special network structures that combine the
learning ability of artificial neural networks with the
Figure 1. Spiral Hareket
inference-making ability of fuzzy systems. "If Then" rule
structure is frequently used in estimation problems that require
In the algorithm, which one of them, spiral movement or decision making mechanisms because it uses the input, output
linear movement, will be employed is determined by 50% values. ANFIS has five-layer architecture [7-12].
probability as it is shown in Equation 7. Assume - two inputs X and Y and one output Z
Rule 1: If x is A 1 and y is B1 ,
then f 1 = p 1 x + q 1 y +r 1
*
X (t ) − A.D , p < 0.5 Rule 2: If x is A 2 and y is B2 ,
X (t + 1) = (7) then f 2 = p 2 x + q 2 y +r 2
' bl *
D .e . cos(2πl ) + X (t ) , p ≥ 0.5 Layer 1
Each node in this layer represents a fuzzy set such as A i and
p-represents a random number in the range of [0,1]. Bi . The membership grades depending on the input samples
and the membership function used are used as the output of
C. Searching for the Prey the nodes. In other words, it is the layer where input values are
made fuzzy. The node outputs are presented in equation (10).
During this searching for prey, the whales search for prey
randomly and change their position according to the positions
ui2 = µ A i ( x) i=1,2 (10)
410
International Conference on Advanced Technologies, Computer Engineering and Science (ICATCES’18),
May 11-13, 2018 Safranbolu, Turkey
Layer 3
In this layer, the firing strengths from the rule layer are V. EXPERIMENTS
normalized. For this reason, this layer is called the
Two types of problems were addressed in the applications
normalization layer. The firing strength normalized for i th
developed for the training of ANFIS. These are the application
node is calculated as follows.
for the identification of nonlinear systems and the chaotic time
ωi series estimation problems. For the identification of non-linear
ϖi = (12)
ω1 + ω2 systems, a dynamic system consisting of an input and an
output (SISO) was used in the given problem. Furthermore, 2
Layer 4 input values and 1 output value are used for the ANFIS
In this layer that is called the defuzzification layer, the structure. Gaussian functions are used as membership
weighted output values of each rule are calculated. This functions for the inputs in the ANFIS structure. The two inputs
calculation is achieved by the multiplication of the normalized of ANFIS are defined as the previous input u(t) and the
firing strength in the figure below with the {p i ,r i ,q i } values, previous output y(t) of dynamic systems. y(t+1) is accepted
that are the output parameters of the fuzzy inference system. for the output value. Equation (16) is used to obtain the input
The parameters in this layer are referred to as consequent value u(t).
parameters. (16)
sin(πk / 25) k < 250
1 250 ≤ k ≤ 500
ϖ i f i = ϖ i ( pi x + qi y + ri ) (13)
u ( k ) = − 1 500 < k ≤ 750
Layer 5 0.3 sin(πk / 25) + 750 < k ≤ 1000
This layer is called output layer. The output of ANFIS is
achieved with the summation of the outputs obtained for each 0.1sin(πk / 32) + 0.6 sin(πk / 10)
rule in the previous layer. In this layer, a single number is 25 populations, 1000 maximum iterations were used for the
produced by the defuzzification of fuzzy rules. WOA. The same values are used for GA.
Another problem is the chaotic time series estimation problem.
4 The dataset used for this application is the dataset called
4 ∑ω f i i “mdata” which is prepared by Matlab program. The purpose
f ( x, y ) = ∑ϖ i f i = i
4
(14) of the problem is to estimate the x(t+6) value using the x(t-
i
∑ω i
i
18), x(t-12), x(t-6), and x(t) data. The data set is divided into
500 training and 500 test data.
411
International Conference on Advanced Technologies, Computer Engineering and Science (ICATCES’18),
May 11-13, 2018 Safranbolu, Turkey
Train Data
1
Target
Output
0.5
-0.5
-1
0 100 200 300 400 500 600 700
Sample Index
MSE = 0.0020287, RMSE = 0.045042 Error Mean = -7.5735e-06, Error St.D. = 0.045074
0.6 250
Error
0.4 200
0.2 150
0 100
-0.2 50
-0.4 0
0 100 200 300 400 500 600 700 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5
Target
Output
0.5
-0.5
-1
0 50 100 150 200 250 300
Sample Index
MSE = 0.0036196, RMSE = 0.060163 Error Mean = 0.0001341, Error St.D. = 0.060263
0.4 100
Error
0.2
80
0
60
-0.2
40
-0.4
20
-0.6
-0.8 0
0 50 100 150 200 250 300 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4
412
International Conference on Advanced Technologies, Computer Engineering and Science (ICATCES’18),
May 11-13, 2018 Safranbolu, Turkey
0.2 x(t − τ )
1
dx(t )
= − 0.1x(t ) (18)
dt 1 + ( x(t − τ ))10 0.8
x(t)
When x(0) = 1.2 and = 17, we have a non-periodic and non- 0.6
from the WOA RMSEtrain is 0.042904 and the test error value Figure 4. Mackey-Glass time series
RMSEtest is 0.04227. The standard deviation value is
0.0034821, 0.0034207, respectively. The training and test VI. CONCLUSION
result graphic obtained at the end of the algorithm is presented
In this study, the WOA, which is one of the current swarm
in Figure 5, and in Figure 6 and the comparison values with
based algorithms, was first used for the training of ANFIS
other algorithm are presented in Table 2. networks. ANFIS networks have a special network structure
When we look at the result figures for Example 2, although that is the combination of fuzzy logic and artificial neural
the minimum result is obtained, the target and output values networks. The premise and consequent parameters in this
are not exactly matched. This shows that ANFIS trained with network are updated by means of the WOA. When the results
WOA in the time series estimation problem is weak.
are examined, it is seen that the WOA had the values with
Table 2. Example 2 results
lower error rates compared to GA. In conclusion, it is
Algorithms Number of RMSE RMSETest
demonstrated that the WOA can be used in the training of
parameters Train
ANFIS.
GA 208 0.056788 0.056184
WOA 208 0.042904 0.04227
Train Data
1.4
Target
1.2 Output
0.8
0.6
0.4
0 50 100 150 200 250 300 350 400 450 500
Sample Index
MSE = 0.0013796, RMSE = 0.037143 Error Mean = 0.0010801, Error St.D. = 0.037164
0.1 30
Error
25
0.05
20
0 15
10
-0.05
5
-0.1 0
0 50 100 150 200 250 300 350 400 450 500 -0.15 -0.1 -0.05 0 0.05 0.1 0.15
413
International Conference on Advanced Technologies, Computer Engineering and Science (ICATCES’18),
May 11-13, 2018 Safranbolu, Turkey
Test Data
1.4
Target
1.2 Output
0.8
0.6
0.4
0 50 100 150 200 250 300 350 400 450 500
Sample Index
MSE = 0.0013334, RMSE = 0.036516 Error Mean = 0.001087, Error St.D. = 0.036536
0.1 35
Error
30
0.05
25
20
0
15
10
-0.05
-0.1 0
0 50 100 150 200 250 300 350 400 450 500 -0.15 -0.1 -0.05 0 0.05 0.1 0.15
REFERENCES
414