| Algorithm 1. Hybrid Lightweight Attack Detection System |
|
Input as a set of single sensor datasets, as NetFlow dataset, as set of single incremental classifiers (INB, IKNN, HTMC, HTNB, HTNBA), and as ensemble WHTE |
|
Output set of performance metrics (average accuracy, average memory, average CPU time, kappa statistic, precision, recall, concept drift sensitivity) |
|
Begin At fog devices close to the edge in framework 1 Collect infected sensor data in Collect infected NetFlow for and each in while there is data record in and Do Pre-process the data Set the sliding window to 1K records Set the maximum memory to 5K records Set the initial parameters of each classifier in Set the parameters of each in for each record in S and N Do Prequential train and test using and each Compute each in return average Update parameters of and each in end for end while for each in and for each in Compute one-way ANOVA Assume that all population means are equal Initialise p value if (p < 0.05). then reject else accept return statistical metrics end if end for end for end for End |