Skip to main content
. 2026 Mar 2;16:8147. doi: 10.1038/s41598-025-34505-2

Table 1.

Confusion Matrices.

Model TP FN FP TN Accuracy Trend Observations
BERT 8742 59 42 958 Highest accuracy and balance Best at detecting both classes with low error rate.
LSTM 8650 151 134 866 High accuracy, balanced performance Handles both classes better; ideal for real-time detection.
SVM 8604 197 180 820 Moderate accuracy, high FP Overpredicts DoS as BENIGN; moderate recall but low precision.
Naïve Bayes 8350 451 385 615 High FN & FP Fails to distinguish BENIGN and DoS due to data imbalance.