Optimal Thresholding of Classifiers to Maximize F1 Measure
Open accessThe DOI matches its Crossref record; 20 of the 20 references it cites were found in a registry or an index.
Abstract
This paper provides new insight into maximizing F1 measures in the context of binary classification and also in the context of multilabel classification. The harmonic mean of precision and recall, the F1 measure is widely used to evaluate the success of a binary classifier when one class is rare. Micro average, macro average, and per instance average F1 measures are used in multilabel classification. For any classifier that produces a real-valued output, we derive the relationship between the best achievable F1 value and the decision-making threshold that achieves this optimum. As a special case, if the classifier outputs are well-calibrated conditional probabilities, then the optimal threshold is half the optimal F1 value. As another special case, if the classifier is completely uninformative, then the optimal behavior is to classify all examples as positive. When the actual prevalence of positive examples is low, this behavior can be undesirable. As a case study, we discuss the results, which can be surprising, of maximizing F1 when predicting 26,853 labels for Medline documents.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Elements of Information Theory
Cover, T. M., & Thomas, J. A. (2001) · Wiley eBooks · doi:10.1002/0471200611 · Cited by 36,808
Introduction to information retrieval
(2009) · Choice Reviews Online · doi:10.5860/choice.46-2715 · Cited by 12,278
Introduction to Information Retrieval
Manning, C. D., Raghavan, P., & Schütze, H. (2008) · doi:10.1017/cbo9780511809071 · Cited by 11,288
A systematic analysis of performance measures for classification tasks
Sokolova, M., & Lapalme, G. (2009) · Information Processing & Management · doi:10.1016/j.ipm.2009.03.002 · Cited by 7,515
Neural Information Processing Systems
(2018) · The Deep Learning Revolution · doi:10.7551/mitpress/11474.003.0014 · Cited by 3,730
Multi-Label Classification: An Overview
Tsoumakas, G., & Katakis, I. (2007) · International Journal of Data Warehousing and Mining · doi:10.4018/jdwm.2007070101 · Cited by 2,508
The foundations of cost-sensitive learning
Elkan, C. (2001) · Cited by 1,945
Self-citationSupport vector machines combined with feature selection for breast cancer diagnosis
Akay, M. F. (2009) · Expert Systems with Applications · doi:10.1016/j.eswa.2008.01.009 · Cited by 802
Competitive Bidding in High-Risk Situations
Capen, E. C., Clapp, R. V., & Campbell, W. M. (1971) · Journal of Petroleum Technology · doi:10.2118/2993-pa · Cited by 647
Neighbor-weighted K-nearest neighbor for unbalanced text corpus
TAN, S. (2005) · Expert Systems with Applications · doi:10.1016/j.eswa.2004.12.023 · Cited by 393
Cited by
Chicco, D., & Jurman, G. (2020) · BMC Genomics · doi:10.1186/s12864-019-6413-7 · Cited by 6,143
“In multiclass cases, researchers can employ the F 1 micro/macro averaging procedure [55–60], which can be even targeted for ad-hoc optimization [61].”
A Critical Review of Recurrent Neural Networks for Sequence Learning
Lipton, Z. C., Berkowitz, J. A., & Elkan, C. (2015) · arXiv (Cornell University) · doi:10.48550/arxiv.1506.00019 · Cited by 1,996
Self-citationOptimal classifier for imbalanced data using Matthews Correlation Coefficient metric
Boughorbel, S., Jarray, F., & El-Anbari, M. (2017) · PLOS ONE · doi:10.1371/journal.pone.0177678 · Cited by 1,222
Artificial intelligence for mental health and mental illnesses: an overview
Graham, S., Depp, C., Lee, E. E., Nebeker, C., Tu, X., Kim, H.-C., & Jeste, D. V. (2019) · Current Psychiatry Reports · doi:10.1007/s11920-019-1094-0 · Cited by 970
Rajaraman, S., Antani, S. K., Poostchi, M., Silamut, K., Hossain, M. A., Maude, R. J., Jaeger, S., & Thoma, G. R. (2018) · PeerJ · doi:10.7717/peerj.4568 · Cited by 566
Predictive modelling and analytics for diabetes using a machine learning approach
Kaur, H., & Kumari, V. (2022) · Applied Computing and Informatics · doi:10.1016/j.aci.2018.12.004 · Cited by 317
The limits of fair medical imaging AI in real-world generalization
Yang, Y., Zhang, H., Gichoya, J. W., Katabi, D., & Ghassemi, M. (2024) · Nature Medicine · doi:10.1038/s41591-024-03113-4 · Cited by 285
“The TPR and TNR are calculated as (FN, false negative; FP, false positive; TP, true positive; TN, true negative): When reporting the sensitivity and specificity, we followed previous work 12,72 in selecting the threshold that maximizes the F1 score.”
Algorithms that remember: model inversion attacks and data protection law
Veale, M., Binns, R., & Edwards, L. (2018) · Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences · doi:10.1098/rsta.2018.0083 · Cited by 278
Precision-Recall-Gain Curves: PR Analysis Done Right
Flach, P. A., & Kull, M. (2015) · Bristol Research (University of Bristol) · doi:10.5555/2969239.2969333 · Cited by 256
Mao, W., Liu, Y., Ding, L., & Li, Y. (2019) · IEEE Access · doi:10.1109/access.2018.2890693 · Cited by 253
A review of the F-measure: its history, properties, criticism, and alternatives
Christen, P., Hand, D. J., & Kirielle, N. (2024) · ACM Computing Surveys · doi:10.1145/3606367 · Cited by 236
Foody, G. M. (2023) · PLOS ONE · doi:10.1371/journal.pone.0291908 · Cited by 186
Collell, G., Prelec, D., & Patil, K. R. (2018) · Neurocomputing · doi:10.1016/j.neucom.2017.08.035 · Cited by 161
“However, for other measures, such as the macro F1-score, it is not always possible to obtain a closed-form expression for the optimal thresholds [25] .”
BackgroundMethodInfluentialKehl, K. L., Elmarakeby, H., Nishino, M., Van Allen, E. M., Lepisto, E. M., Hassett, M. J., Johnson, B. E., & Schrag, D. (2019) · JAMA Oncology · doi:10.1001/jamaoncol.2019.1800 · Cited by 159
Vaizman, Y., Weibel, N., & Lanckriet, G. (2018) · Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies · doi:10.1145/3161192 · Cited by 122
“This effect can result in misleading conclusions when comparing two systems [9].”
ResultNatural Language Processing to Ascertain Cancer Outcomes from Medical Oncologist Notes
Kehl, K. L., Xu, W., Lepisto, E., Elmarakeby, H., Hassett, M. J., Van Allen, E. M., Johnson, B. E., & Schrag, D. (2020) · JCO Clinical Cancer Informatics · doi:10.1200/cci.20.00020 · Cited by 90
Transformer-Based Spatio-Temporal Unsupervised Traffic Anomaly Detection in Aerial Videos
Tran, T. M., Bui, D. C., Nguyen, T. V., & Nguyen, K. (2024) · IEEE Transactions on Circuits and Systems for Video Technology · doi:10.1109/tcsvt.2024.3376399 · Cited by 63
Multi-Scale Vehicle Detection in High-Resolution Aerial Images With Context Information
Li, X., Li, X., & Pan, H. (2020) · IEEE Access · doi:10.1109/access.2020.3036075 · Cited by 29
Towards Automatic Boundary Detection for Human-AI Collaborative Hybrid Essay in Education
Zeng, Z., Sha, L., Li, Y., Yang, K., Gašević, D., & Chen, G. (2023) · arXiv · doi:10.48550/arxiv.2307.12267 · Cited by 25
“We considered the harmonic mean (Lipton, Elkan, and Naryanaswamy 2014) of precision and recall for evaluation, i.e., the F1 metric (Lipton, Elkan, and Naryanaswamy 2014): Note that K denotes the number of boundary candidates proposed by the algorithm.”
MethodIterative guided machine learning-assisted systematic literature reviews: A diabetes case study
Zimmerman, J., Soler, R. E., Lavinder, J., Murphy, S., Atkins, C., Hulbert, L., Lusk, R., & Ng, B. P. (2021) · Systematic Reviews · doi:10.1186/s13643-021-01640-6 · Cited by 24
Self-Tuned Descriptive Document Clustering Using a Predictive Network
Brockmeier, A. J., Mu, T., Ananiadou, S., & Goulermas, J. Y. (2018) · IEEE Transactions on Knowledge and Data Engineering · doi:10.1109/tkde.2017.2781721 · Cited by 15
Robust Vehicle Detection in Aerial Images Based on Image Spatial Pyramid Detection Model
Li, X., & Li, X. (2019) · 2019 IEEE 4th International Conference on Advanced Robotics and Mechatronics (ICARM) · doi:10.1109/icarm.2019.8834183 · Cited by 5
“We utilize the popular metrics including: precision, recall rate, F1-Score and average precision (AP) [19].”
Method
Metadata
- Authors
- Lipton, Z. C., Elkan, C., & Naryanaswamy, B.
- Venue
- Lecture Notes in Computer Science
- Publisher
- Springer Berlin Heidelberg
- Published
- 2014
- Volume
- 8725
- Pages
- 225-239
- ISSN
- 0302-9743 (ISSN-L)
- 1611-3349
- OpenAlex
- W61851215
- Cited by
- 596
- References
- 20
- FWCI
- 5.73
- Type
- conference paper
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.