Research Article

Trust in Intrusion Detection Systems: An Investigation of Performance Analysis for Machine Learning and Deep Learning Models

Table 13

The performance of deep learning for WSN dataset using LSTM and GRU with selected features.

ModelEvaluation metricCross-validation performanceTesting performance
NormalGrayholeBlackholeSchedulingFloodingNormalGrayholeBlackholeSchedulingFlooding

LSTM with one layerTN98.5999.9199.489699.9398.5099.9299.7396.6199.99
FP1.410.090.5240.071.500.080.273.390.01
FN6.828.539.190.479.91.635.1940.120.339.22
Accuracy98.4599.8497.9899.2199.7698.5099.8898.1899.3999.83
Precision64.8490.683.3799.5996.0864.4291.4989.9299.6699.47
Recall93.1891.560.8199.5390.198.3794.8159.8899.6790.78
F-score76.291.0269.9899.5692.9877.8593.1271.8999.6694.93

LSTM with two layerTN98.4199.999.1794.6299.9298.4899.9199.2594.5199.88
FP1.590.10.835.380.081.520.090.755.490.12
FN3.313.342.910.8321.435.104.1142.500.8019.88
Accuracy98.3799.7997.5398.7599.5498.3899.8797.6298.7699.53
Precision62.6889.5973.9599.4594.8563.2590.4375.6699.4492.62
Recall96.786.757.0999.1778.5794.9095.8957.5099.2080.12
F-score76.0487.6864.3799.3185.8575.9193.0865.3499.3285.92

GRU with one layerTN99.0899.9199.397.8599.9998.6299.9399.7897.9199.99
FP0.920.090.72.150.011.380.070.222.090.01
FN21.713.2623.880.217.733.426.2834.230.227.89
Accuracy98.5299.8898.499.6199.8598.5799.8798.4699.6099.85
Precision72.6990.3683.7299.7899.2765.8791.9492.4999.7999.61
Recall78.2996.7476.1299.7992.2796.5893.7265.7799.7892.11
F-score72.6293.4378.5899.7895.6478.3292.8276.8799.7895.7

GRU with two layerTN98.5399.9399.2589.199.8198.6599.9199.4994.1199.82
FP1.470.070.7510.90.191.350.090.515.890.18
FN5.8539.2653.040.5419.997.449.7842.090.4913.73
Accuracy98.4199.5997.2198.599.4698.4999.8397.8799.0199.58
Precision63.8788.5872.0198.988.1665.4490.3382.0699.4089.44
Recall94.1560.7446.9699.4680.0192.5690.2257.9199.5186.27
F-score76.0979.7356.7899.1883.8576.6790.2767.9099.4687.83