Skip to main content
. 2020 Oct 16;20(20):5845. doi: 10.3390/s20205845
Algorithm 1: Proposed average common feature extraction technique for DDoS attack detection.
Input:
- Dataset tensor X∈RN1×⋯×NR×M
- Multilinear rank (d1,…,dR+1)
Output:
- Filtered dataset matrix [X](R+1)[f]∈RM×N
Algorithm Steps:
1 Compute the HOSVD of X∈RN1×⋯×NR×M, with multilinear rank (d1,…,dR+1), as in (3)
2 Compute the common feature tensor X˜∈RN1×⋯×NR×dR+1 as in (4)
3 Compute the average common feature tensor X¯∈RN1×⋯×NR as in (5)
4 Convert X into the (R+1)-th mode unfolding matrix [X](R+1)∈RM×N as in (6)
5 Obtain the weight tensor C∈RN1×⋯×NR, whose elements are computed as in (7) to (9)
6 Obtain the concatenated tensors CC∈RN1×⋯×NR×M and X¯C∈RN1×⋯×NR×M as in (10) and (11)
7 Compute the Hadamard product between CC and X¯C as in (12)
8 Compute the filtered dataset tensor X[f]∈RN1×⋯×NR×M as in (13)
9 Convert X[f] into the (R+1)-th mode unfolding matrix [X](R+1)[f]∈RM×N as in (14)