Research Article

Network Traffic Anomaly Detection Model Based on Feature Reduction and Bidirectional LSTM Neural Network Optimization

Table 1

The APPSO algorithm.

Initialize the population parameters: population size: I, maximum number of iterations: T, particle position domain [Xmin, Xmax], particle velocity domain [Vmin, Vmax], particle dimension: d = 1, 2, 3…, D.
1: Initialize x:
2: Initialize v:
3: for i = 1, 2, 3…, T do
4:  for i = 1, 2, 3…, I do
5:    Calculate the fitness:
6:    update with Equation (16)
7:    update c1 and c2 with Equations (19) and (20)
8:    if then
9:      update V with Equation (13)
       update X with Equation (14)
10:    if then
11:      update V with Equation (13)
        update X with Equation (15)
12:    Calculate the fitness:
13:    if then
14:      
15:    
16:    end if
17:    if then
18:      
19:    
20:    end if
21:  end for
22: end for