Skip to main content
Log in

An innovative time-varying particle swarm-based Salp algorithm for intrusion detection system and large-scale global optimization problems

  • Published:
Artificial Intelligence Review Aims and scope Submit manuscript

Abstract

Particle swarm optimization (PSO) suffers from delayed convergence and stagnation in the local optimal solution, as do most meta-heuristic algorithms. This study proposes a time-based leadership particle swarm-based Salp (TPSOSA) to address the PSO's limitations. The TPSOSA is a novel search technique that addresses population diversity, an imbalance between exploitation and exploration, and the premature convergence of the PSO algorithm. Hybridization in TPSOSA is divided into two stages: The PSO hierarchy of leaders and followers is first represented as a time-varying dynamic structure. Because we need much exploration at the beginning and many exploitative steps at the end, this method raises the number of leaders while decreasing the number of follower particles linearly. In the time-varying form of the PSO (TPSOSA), unlike the PSO, the number of leaders and followers changes over time. PSO's robust search strategy is used to update the leaders' positions. Second, the SSA's powerful exploitation is utilized to update the followers' swarm population position. The purpose of tweaking the particle swarm optimizer algorithm is to aid the fundamental method in avoiding premature convergence and quickly directing the search to the most promising likely search space. The proposed TPSOSA method is tested using the CEC 2017 benchmark, seven CEC2008lsgo test functions with 200, 500, and 1000 decision variables, and 19 datasets (including three high-dimensional datasets and the NSL-KDD Dataset for Intrusion Detection System). In each experiment, TPSOSA is compared to various state-of-the-art metaheuristics methods. Friedman and Wilcoxon rank-sum statistical tests are also used to analyze the data. Experimental data and statistical tests show that the TPSOSA algorithm is very competitive and often superior to the algorithms used in the studies. According to the results, TPSOSA can also find an optimal feature subset that enhances classification accuracy while reducing the number of features employed.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7

Similar content being viewed by others

Abbreviations

\(TPSOSA\) :

Time-based leadership particle swarm-based Salp

\(IDS\) :

Intrusion detection systems

\(DoS\) :

Denial of service

\(U2R\) :

User to root

\(R2L\) :

Remote to local

\(PSO\) :

Particle swarm optimization

\(SSA\) :

Salp swarm optimization

\(CC\) :

Cooperative coevolving

\(MLCC\) :

Multilevel cooperative coevolving technique

\(LSGO\) :

Large-scale global optimization

\(FEs\) :

Function evaluations

\(pbest\) :

Personal best

\(gbest\) :

Global best

\(x\) :

Solution vector

\({v}_{i}^{t}\) :

The velocity of individual \(i\) at iteration \(t\)

\(w\) :

Weighting (inertia) function

\({c}_{1}\), \({c}_{2}\) :

The personal and social learning factors

\({r}_{1},{r}_{2}\) :

Random numbers in the interval of [0,1]

\({x}_{i}^{t}\) :

The current particle \(i\) position at iteration \(t\)

\(OE\) :

Overall effectiveness

\(W/T/L\) :

The number of wins (W), ties (T), and losses (L) for each algorithm

\(TF\) :

Transfer function

\({z}_{f}\), \({\widetilde{z}}_{fj}\) :

The normalized feature value ranged between [0–1]

\(\mathrm{max}\left({z}_{f }\right),\mathrm{ min}({z}_{f })\) :

The maximum and minimum values of the \({f}\text{th}\) (numeric) feature

\(\left|F\right|\) :

The size of identified feature subset

\(TP\) :

True positive rate

\(TN\) :

True negative rate

\(ROC\) :

The area under the receiver operating characteristic

\({x}_{j}^{1}\) :

The chain Salps leader position with \(\mathrm{j}\)th dimension

\({\mathrm{F}}_{\mathrm{j}}\) :

The food position with \(\mathrm{j}\)th dimension

\({\mathrm{ub}}_{\mathrm{j}}\) :

The upper bound

\({\mathrm{lb}}_{\mathrm{j}}\) :

The lower bound

\({\mathrm{r}}_{2}\), \({\mathrm{r}}_{3}\) :

Two scalars chosen at random from the range \([\mathrm{0,1}]\)

t:

The current iteration

\(Ma{x}_{iteration}\) :

The maximum number of iterations

\({s}_{0}\) :

The initial speed

\(N\) :

The population size

\(L\) :

The number of leaders in each iteration

\({n}_{o}\) :

The number of objectives

\(dim\) :

The problem dimension

\({O}_{f}\) :

The objective function

\(Min\) :

Minimum

\(Max\) :

Maximum

\(Avg\) :

Average

\(std\) :

Standard deviation

\(Med\) :

Median

\({F}_{f}\) :

Non-parametric Friedman test

\(k\) :

The number of swarm intelligence algorithms

\(Rj\) :

The average rank of algorithm j

\({X}_{Binary} \) :

The solution to the feature selection problem

\({N}_{random}\) :

Random number used as the threshold

\(\left|T\right|\) :

The total number of features

\(Err \left(D\right)\) :

The classifier error rate

\(FP\) :

False positive rate

\(FN\) :

False negative rate

\(Acc\) :

Classification accuracy

References

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Mohammed Qaraad.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendices

Appendix

Appendix 1: CEC 2017 benchmark function.

Type

Fun

Function name

Fmin

U

F1

Shifted and Rotated Bent Cigar Function

100

U

F2

Shifted and Rotated Zakharov

300

M

F3

Shiftedv and Rotated Rosenbrock’s

400

M

F4

Shifted and Rotated Rastrigin’s

500

M

F5

Shifted and Rotated Expanded Scaffer’s F6

600

M

F6

Shifted and Rotated Lunacek Bi_Rastrigin

700

M

F7

Shifted and Rotated Non-Continuous Rastrigin’s

800

M

F8

Shifted and Rotated Levy

900

M

F9

Shifted and Rotated Schwefel’s

1000

H

F10

Hybrid Function 1 (N = 3)

1100

H

F11

Hybrid Function 2 (N = 3)

1200

H

F12

Hybrid Function 3 (N = 3)

1300

H

F13

Hybrid Function 4 (N = 4)

1400

H

F14

Hybrid Function 5 (N = 4)

1500

H

F15

Hybrid Function 6 (N = 4)

1600

H

F16

Hybrid Function 6 (N = 5)

1700

H

F17

Hybrid Function 6 (N = 5)

1800

H

F18

Hybrid Function 6 (N = 5)

1900

H

F19

Hybrid Function 6 (N = 6)

2000

C

F20

Composition Function 1 (N = 3)

2100

C

F21

Composition Function 2 (N = 3)

2200

C

F22

Composition Function 3 (N = 4)

2300

C

F23

Composition Function 4 (N = 4)

2400

C

F24

Composition Function 5 (N = 5)

2500

C

F25

Composition Function 6 (N = 5)

2600

C

F26

Composition Function 7 (N = 6)

2700

C

F27

Composition Function 8 (N = 6)

2800

C

F28

Composition Function 9 (N = 3)

2900

C

F29

Composition Function 10(N = 3)

3000

  

Range [− 100, 100] D

 

Appendix 2: CEC 2008lsgo benchmark function.

Fun

Function name

Characteristics

F1

Shifted Sphere

Separable

F2

Schwefel Problem

Non-separable

F3

Shifted Rosenbrock

Non-separable

F4

Shifted Rastrigin

Separable

F5

Shifted Griewank

Non-Separable/separable

F6

Shifted Ackley

Separable

F7

Fast Fractal

Non-Separable

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Qaraad, M., Amjad, S., Hussein, N.K. et al. An innovative time-varying particle swarm-based Salp algorithm for intrusion detection system and large-scale global optimization problems. Artif Intell Rev 56, 8325–8392 (2023). https://doi.org/10.1007/s10462-022-10322-1

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10462-022-10322-1

Keywords

Navigation