Research Article

MidSiot: A Multistage Intrusion Detection System for Internet of Things

Algorithm 1

Data preprocessing in training phases.
Input: Raw network packets
Output: Processed data
(1)Initialize:
(2)Generate network flows:
(3)Label device type:
(4)Drop invalid flows and identity columns:
(5)Normalize data:
(6)Select features using Pearson’s Correlation Coefficient:
(a)
(b)
(7)Return