| Literature DB >> 35564763 |
Shimbi Masengo Wa Umba1, Adnan M Abu-Mahfouz1,2, Daniel Ramotsoela1.
Abstract
Wireless Sensor Networks (WSNs) are increasingly deployed in Internet of Things (IoT) systems for applications such as smart transportation, telemedicine, smart health monitoring and fall detection systems for the elderly people. Given that huge amount of data, vital and critical information can be exchanged between the different parts of a WSN, good management and protection schemes are needed to ensure an efficient and secure operation of the WSN. To ensure an efficient management of WSNs, the Software-Defined Wireless Sensor Network (SDWSN) paradigm has been recently introduced in the literature. In the same vein, Intrusion Detection Systems, have been used in the literature to safeguard the security of SDWSN-based IoTs. In this paper, three popular Artificial Intelligence techniques (Decision Tree, Naïve Bayes, and Deep Artificial Neural Network) are trained to be deployed as anomaly detectors in IDSs. It is shown that an IDS using the Decision Tree-based anomaly detector yields the best performances metrics both in the binary classification and in the multinomial classification. Additionally, it was found that an IDS using the Naïve Bayes-based anomaly detector was only adapted for binary classification of intrusions in low memory capacity SDWSN-based IoT (e.g., wearable fitness tracker). Moreover, new state-of-the-art accuracy (binary classification) and F-scores (multinomial classification) were achieved by introducing an end-to-end feature engineering scheme aimed at obtaining 118 features from the 41 features of the Network Security Laboratory-Knowledge Discovery in Databases (NSL-KDD) dataset. The state-of-the-art accuracy was pushed to 0.999777 using the Decision Tree-based anomaly detector. Finally, it was found that the Deep Artificial Neural Network should be expected to become the next default anomaly detector in the light of its current performance metrics and the increasing abundance of training data.Entities:
Keywords: Artificial Intelligence; Internet of Things; Software-Defined Wireless Sensor Network; Wireless Sensor Network; deep learning; healthcare; intrusion detection; security
Mesh:
Year: 2022 PMID: 35564763 PMCID: PMC9103430 DOI: 10.3390/ijerph19095367
Source DB: PubMed Journal: Int J Environ Res Public Health ISSN: 1660-4601 Impact factor: 4.614
Figure 1SDWSN-based IoTs IDS architecture (adapted from [29]).
Traditional performance metrics.
| Metric | Symbol | Formula |
|---|---|---|
| Accuracy | Ac |
|
| Precision | P |
|
| Recall | R |
|
| F-score | F |
|
NSL-KDD dataset.
| Traffics | Training | Test | |
|---|---|---|---|
|
| 67,343 | 9711 | |
|
|
| 45,927 | 7458 |
|
| 52 | 67 | |
|
| 995 | 2887 | |
|
| 11,656 | 2421 | |
Figure 2DT algorithm for binary classification.
Figure 3Artificial neuron.
Figure 4Deep Artificial Neural Network.
NB-based and DT-based anomaly detectors’ metrics recorded (binary classification).
| Metric | NB-Based | DT-Based |
|---|---|---|
| Accuracy | 0.948038 | 0.999777 |
| Precision | 0.999114 | 0.999285 |
| Recall | 0.792679 | 0.999591 |
| F-score | 0.884005 | 0.999438 |
| Prediction time | 1.034252 s | 0.059382 s |
| Run time | 32.054979 s | 26.814881 s |
| Memory size | 5 kB | 21 kB |
Figure 5Deep ANN classifier (binary classification).
Performance metrics for different learning rates (binary classification).
| Learning Rate | Accuracy | Precision | Recall | F-Score |
|---|---|---|---|---|
| 0.1 | 0.196240 | 1.000000 | 0.196240 | 0.328095 |
| 0.001 | 0.999021 | 0.998177 | 0.996840 | 0.997508 |
| 0.00001 | 0.999433 | 0.998830 | 0.997973 | 0.998401 |
Figure 6Training and validation accuracy of the deep ANN.
Figure 7Training and validation loss of the deep ANN (binary classification).
Deep ANN-based anomaly detector’s metrics recorded (binary classification).
| Metric | Value |
|---|---|
| Accuracy | 0.999433 |
| Precision | 0.998830 |
| Recall | 0.997973 |
| F-score | 0.998401 |
| Prediction time | 2.520133 s |
| Run time | 2 h 20 min 23.361987 s |
| Memory size | 442 kB |
NB-based anomaly detector’s traditional performance metrics recorded (multinomial classification).
| Class | Precision | Recall | F-Score |
|---|---|---|---|
| Normal | 1.00 | 0.72 | 0.84 |
| DoS | 0.04 | 0.94 | 0.07 |
| U2R | 0.23 | 0.43 | 0.30 |
| R2L | 0.01 | 1.00 | 0.01 |
| Probing | 0.97 | 0.91 | 0.94 |
Other metrics recorded (multinomial classification) for the NB-based anomaly detector.
| Metric | Value |
|---|---|
| Prediction time | 1.334464 s |
| Run time | 15.390072 s |
| Memory size | 10 kB |
DT-based anomaly detector’s traditional performance metrics recorded (multinomial classification).
| Class | Precision | Recall | F-Score |
|---|---|---|---|
| Normal | 1.00 | 1.00 | 1.00 |
| DoS | 0.99 | 0.99 | 0.99 |
| U2R | 0.96 | 0.98 | 0.97 |
| R2L | 0.67 | 0.67 | 0.67 |
| Probing | 1.00 | 1.00 | 1.00 |
Other metrics recorded (multiclass classification) for the DT-based anomaly detector.
| Metric | Value |
|---|---|
| Prediction time | 0.106718 s |
| Run time | 19.176359 s |
| Memory size | 47 kB |
Figure 8Deep ANN classifier (multinomial classification).
Figure 9Training and validation loss of the deep ANN (multinomial classification).
Deep ANN-based anomaly detector’s traditional performance metrics recorded (multinomial classification).
| Class | Precision | Recall | F-Score |
|---|---|---|---|
| Normal | 1.00 | 1.00 | 1.00 |
| DoS | 0.99 | 0.98 | 0.99 |
| U2R | 0.94 | 0.90 | 0.92 |
| R2L | 1.00 | 0.47 | 0.64 |
| Probing | 1.00 | 1.00 | 1.00 |
Other metrics recorded (multinomial classification) for the deep ANN-based anomaly detector.
| Metric | Value |
|---|---|
| Prediction time | 1.729457 s |
| Run time | 53 min 23.449426 s |
| Memory size | 444 kB |
Figure 10Anomaly detectors’ memory size (kB).
Figure 11Anomaly detectors’ prediction time (in seconds).
Metrics for different anomaly detectors (binary classification).
| Metric | NB | DT | Deep ANN |
|---|---|---|---|
| Accuracy | 0.948038 | 0.999777 | 0.999433 |
| Precision | 0.999114 | 0.999285 | 0.998830 |
| Recall | 0.792679 | 0.999591 | 0.997973 |
| F-score | 0.884005 | 0.999438 | 0.998401 |
| Prediction time | 1.034252 s | 0.059382 s | 2.520133 s |
| Run time | 32.054979 s | 26.814881 s | 2 h 20 min 23.361987 s |
| Memory size | 5 kB | 21 kB | 442 kB |
Choice of Anomaly Detectors for SDWSNs (binary classification).
| SDWSN Requirements | NB | DT | Deep ANN |
|---|---|---|---|
| High level of security required | NO | YES | YES |
| Low memory capacity | YES | YES | NO |
| High performance required (i.e., low latency) | YES | YES | YES |
Figure 12Anomaly detectors’ F-score.
Choice of Anomaly Detectors for SDWSNs (multinomial classification).
| SDWSN Requirements | NB | DT | Deep ANN |
|---|---|---|---|
| High level of security required | NO | YES | YES |
| Low memory capacity | NO | YES | NO |
| High performance required (i.e., low latency) | NO | YES | YES |
Requirements and Application Examples.
| High Level of Security Required | Low Memory Capacity | High Performance Required (i.e., Low Latency) |
|---|---|---|
|
Healthcare Data Centers; Brain Implants; Medication management through smart pill dispensers; Smart pulse oximeter; Alzheimer’s patient tracking and location. |
Wearable fitness tracker; Sleep monitoring system; Smart infrared body thermometer; Smart skin moisture analyzer; Food temperature monitoring system. |
Real-time heart monitoring system; Fall detection system for the elderly people; IoT-based smart fire alarm system in hospitals; IoT-based smart light switch and dimmer in healthcare facilities; Smart infant incubator. |