Is F1 Score Suboptimal for Cybersecurity Models? Introducing Cscore, a Cost-Aware Alternative for Model Assessment
Not on the map. Why?
Abstract (arXiv)
The cost of errors related to machine learning classifiers, namely, false positives and false negatives, are not equal and are application dependent. For example, in cybersecurity applications, the cost of not detecting an attack is very different from marking a benign activity as an attack. Various design choices during machine learning model building, such as hyperparameter tuning and model selection, allow a data scientist to trade-off between these two errors. However, most of the commonly used metrics to evaluate model quality, such as F1 score, which is defined in terms of model precision and recall, treat both these errors equally, making it difficult for users to optimize for the actual cost of these errors. In this paper, we propose a new cost-aware metric, Cscore based on precision and recall that can replace F1 score for model evaluation and selection. It includes a cost ratio that takes into account the differing costs of handling false positives and false negatives. We derive and characterize the new cost metric, and compare it to F1 score. Further, we use this metric for model thresholding for five cybersecurity related datasets for multiple cost ratios. The results show an average cost savings of 49%.
Key facts. Cited by 1 paper in the map (data through 13 Oct 2026). Builds on 3 of its 25 references that are in the map. First posted on arXiv 19 Jul 2024.
Builds on
3 of 25 references.
References · 3
- 2020Evaluation: from precision, recall and F-measure to ROC, informedness, markedness and correlationcited by 422
- 2019Deep Anomaly Detection with Deviation Networkscited by 152
- 2022Extending F1 metric, probabilistic approachcited by 12
Built on by
Citing papers per year: 2025: 1.
1 paper.
- 2025Cost-Sensitive Evaluation for Binary Classifierscited by 0
- 2025Cost-Sensitive Evaluation for Binary Classifiers24 Oct 2025