Skip to main content
. 2024 Feb 9;24(4):1148. doi: 10.3390/s24041148

Table 4.

Performance metrics obtained from the confusion matrix.

Metric Equation Short Description
TPR (DR) TPTP+FN The performance of the CNN model in detecting malicious samples.
Specificity TNTN+FP The performance of the CNN model in detecting honest samples.
Precision TPTP+FP The ratio of malicious samples predicted as malicious to all malicious samples.
F1-score 2TP2TP+FP+FN Expressed as the harmonic mean between precision and sensitivity.
Accuracy TP+TNTP+FP+FN+TN Measures the overall correctness of predictions by the model.
FPR TPFP+TN Measures the proportion of actual honest that were incorrectly classified as malicious samples.