Research Article

Intrusion Detection System to Advance Internet of Things Infrastructure-Based Deep Learning Algorithms

Algorithm 1

: PSO algorithm.
(1)Initialize parameters is fitness, N numbers of particles
(2)Initialize population Pi_best
a  while (number of generations or the stopping criterion is not met) {
(3)for (i = 1 to N) {
(4)if fitness  > fitness Pi_best
(5){
(6)then update Pi_best = 
(7)if the fitness of  > gbest then{
(8)then update  = 
(9)}
      }
(10)Update velocity vector
(11)Update particle position
(12)Next particle
(13)}
(14)Next generation