F-Score

The F-score is a classifier metric that combines precision and recall in a weighted harmonic mean, often reported for AI screening and data extraction.

Status
Published, version 1.0.0
Last reviewed
10 Nov 2026, by Dr Darrin Baines
Report a problem
Tell us if something is wrong or out of date

Concept Architecture

F-Score for AI Screening and Data Extraction

The F-score turns two rates, precision and recall, into one number between 0 and 1, and a parameter called beta sets how much weight each rate receives. Health economists meet the measure in validation reports for AI tools that screen records for a systematic review or extract trial data for an economic model. NICE ECD20 (2026), the NICE AI methods for evidence framework, counts the F-score among aggregate metrics that should not replace the true positive and false negative rates in screening reports. An F-score leaves out one cell of the confusion table, and its weight carries a value judgement.

Precision, recall and their harmonic mean

Every F-score is computed from three cells of a two-by-two table of predictions against a reference standard, the table described on the Confusion Matrix page. Precision is the share of items the model labels positive that are truly positive, the quantity diagnostic research calls the positive predictive value. Recall is the share of truly positive items that the model finds, which is the same ratio as sensitivity or the true positive rate. In title and abstract screening a positive is a relevant record, so recall measures how much of the relevant evidence survives the sift and precision measures how much of what survives is worth reading.

P=TPTP+FP,R=TPTP+FN,F1=2PRP+R=2 TP2 TP+FP+FNP = \frac{TP}{TP + FP}, \qquad R = \frac{TP}{TP + FN}, \qquad F_1 = \frac{2PR}{P + R} = \frac{2\,TP}{2\,TP + FP + FN}

where PP is precision, RR is recall, TPTP is the number of true positives, FPFP is the number of false positives, FNFN is the number of false negatives and F1F_1 is the balanced F-score.

The harmonic mean sits closer to the smaller of the two rates than the arithmetic mean does, so a model cannot reach a high F1 by excelling at one rate while neglecting the other. Chinchor (1992), who used van Rijsbergen's F-measure to rank systems in the MUC-4 message understanding evaluations, gives the example that recall and precision of 50% each should score higher than recall of 20% with precision of 80%. The balanced values are 0.50 and 0.32, although both pairs have the same arithmetic mean. Chicco and Jurman (2020) trace this harmonic mean to Dice and Sørensen, who proposed it independently in ecology in the 1940s, before van Rijsbergen rederived it for information retrieval.

The beta weight and the value judgement inside it

Van Rijsbergen (1979) built the general measure for a user who attaches beta times as much importance to recall as to precision. His effectiveness measure E is one minus a weighted harmonic mean of the two rates, and the F-score is its complement.

Fβ=1−E=1α1P+(1−α)1R=(1+β2) TP(1+β2) TP+β2FN+FPF_\beta = 1 - E = \frac{1}{\alpha \frac{1}{P} + (1 - \alpha)\frac{1}{R}} = \frac{(1 + \beta^2)\,TP}{(1 + \beta^2)\,TP + \beta^2 FN + FP}

where FβF_\beta is the F-score with weight β\beta, EE is van Rijsbergen's effectiveness measure, α=1/(β2+1)\alpha = 1/(\beta^2 + 1) is the weight on precision, β\beta is the importance given to recall relative to precision, and PP, RR, TPTP, FPFP and FNFN are as defined above.

Setting beta to 1 gives F1. Chinchor (1992) describes a beta of 2 as recall counting twice as much as precision and a beta of 0.5 as recall counting half as much. Van Rijsbergen (1979) shows the measure tending to recall alone as beta grows and to precision alone as beta falls towards zero.

For evidence work the choice of beta is a statement about the relative cost of the two errors. A missed relevant study can shift a pooled estimate in a meta-analysis and every model input drawn from that estimate, while an irrelevant record kept by the model costs some reviewer time. Hand and Christen (2018), writing about record linkage, argue that the relative importance of precision and recall should come from the problem and the user. They show that the F-measure can be rewritten as a weighted sum of precision and recall whose weights depend on the method being assessed, a flaw when methods are compared. NICE ECD20 (2026) makes a related demand in its validation principles, asking that any aggregate measure be carefully justified and naming the beta of an F-score as one such choice.

How NICE ECD20 places the F-score

For AI title and abstract screening, NICE ECD20 (2026) focuses on methodological performance, not time saved, so when AI performs a first sift and humans screen every record it keeps, avoiding false negatives comes before avoiding false positives. The framework accepts that aggregate metrics such as the F-score, accuracy and the Matthews coefficient may help model developers, but it keeps the true positive rate and the false negative rate as the primary metrics for reporting. Its validation principles list the F-score with accuracy as overall measures to consider alongside the true positive and true negative rates, and add that metrics should be pre-specified, kept the same when models are compared on one task and marked as used for decisions or for reporting only, with 95% confidence intervals where possible.

For data extraction, NICE ECD20 (2026) makes overall concordance with the source material the primary measure and treats counts of true and false positives and negatives as a secondary analysis of error type. When those counts are aggregated, the framework suggests the true positive rate and positive predictive value may be the most informative pair, because measures built on true negatives tell less when many data items are simply not reported. F1 is the harmonic mean of exactly that pair, but the two rates reported separately show whether errors come from items missed or wrongly extracted or from data extracted where none was reported, hallucinations included. The chapter on health economic evaluation sets no performance metrics and limits AI there to support only, with a human closely in the loop and no semi or full automation.

Worked example with two screening cut-offs

All numbers in this example are illustrative. A search for a review that will inform a cost-effectiveness model returns 1,000 records, of which 50 are relevant according to a double-screened reference standard, a prevalence of 5%. A large language model gives each record a relevance score, and the review team compares two cut-offs.

Cut-offTPFNFPTN
Strict cut-off A401020930
Inclusive cut-off B491150800

1. Precision and recall. For A, precision is 40 / 60 = 0.667 and recall is 40 / 50 = 0.80. For B, precision is 49 / 199 = 0.246 and recall is 49 / 50 = 0.98.

2. Balanced F-score. For A, twice TP is 80 and the denominator is 80 + 20 + 10 = 110, so the F1 is 80 / 110 = 0.727. For B, twice TP is 98 and the denominator is 98 + 150 + 1 = 249, so the F1 is 98 / 249 = 0.394. On F1 alone cut-off A looks far better, although A loses 10 relevant studies against 1 for B.

3. Recall-weighted scores. With a beta of 2, the count formula multiplies TP by 5 and FN by 4. For A the denominator is 200 + 40 + 20 = 260, giving 200 / 260 = 0.769, and for B it is 245 + 4 + 150 = 399, giving 245 / 399 = 0.614, so A still ranks first. With a beta of 4, TP is multiplied by 17 and FN by 16. For A the denominator is 680 + 160 + 20 = 860, giving 680 / 860 = 0.791, and for B it is 833 + 16 + 150 = 999, giving 833 / 999 = 0.834, so the ranking reverses on a weight that nobody estimated.

4. Include-everything rule. A rule that keeps all 1,000 records has TP = 50, FN = 0 and FP = 950. Its recall is 1.00 and its false negative rate is zero, the best possible value on the NICE primary metric, yet its F1 is 100 / 1,050 = 0.095 because precision is 50 / 1,000 = 0.05. Here the aggregate score does help a developer, since the rule saves no screening effort at all.

5. Adding true negatives. If a wider search adds 9,000 irrelevant records and cut-off A excludes all of them, TN rises to 9,930 and specificity rises from 930 / 950 = 0.979 to 9,930 / 9,950 = 0.998, while F1 stays at 0.727 because no term in the formula involves TN.

6. Swapping the positive class. With irrelevant records as the positive class, cut-off A has 930 true positives, 10 false positives and 20 false negatives. The denominator becomes 1,860 + 10 + 20 = 1,890 and the F1 becomes 1,860 / 1,890 = 0.984, so the same predictions earn 0.727 or 0.984 depending only on which class is labelled positive.

7. Interpretation. Reported as NICE ECD20 (2026) asks, cut-off B has a true positive rate of 0.98 and a false negative rate of 0.02 with one missed study, against 0.80 and 0.20 with ten missed studies for A. The F1 ranking points the other way because the balanced score weighs each irrelevant record kept exactly as heavily as each relevant record lost, so the 130 extra irrelevant records kept by B outweigh the 9 extra relevant records lost by A.

Thresholds and averaging across many labels

Each cut-off on a model's score gives a different F-score. Lipton and colleagues (2014) show that when the scores are well-calibrated probabilities, the F1-maximising cut-off equals half the maximum F1. They also prove that for an uninformative model, which gives every item the same score, the F1-maximising rule labels every item positive. Tuning on F1 alone therefore pushes weak models towards including everything, which in screening saves no work.

Data extraction and study classification often involve many labels, one per data field or study design. Micro-averaging pools the counts across labels before computing one F1, while macro-averaging averages the per-label F1 values, and Lipton and colleagues (2014) show that the first is dominated by common labels and the second gives disproportionate weight to rare ones. A report of an averaged F1 therefore needs to say which average was used.

Limits of the F-score in evidence and economic work

Chicco and Jurman (2020) set out two properties that separate F1 from the Matthews Correlation Coefficient. F1 does not depend on the count of true negatives, and F1 changes when the positive and negative classes are swapped, as steps 5 and 6 above show. Fawcett (2006) adds that metrics drawing on both columns of the confusion table, the F-score included, shift with the class balance even when the classifier is unchanged, because precision depends on prevalence. Chicco and Jurman recommend the Matthews coefficient over both F1 and classification accuracy for binary problems, because the coefficient is high only when the model does well on both classes.

The F-score also carries no costs or health consequences. In a health technology assessment of an AI diagnostic or triage tool, each type of error leads to different costs and health outcomes. Decision curve analysis weighs those errors through a stated threshold probability, and a full economic model values them in costs and health outcomes, instead of through a fixed beta. Three misreadings recur.

  1. Treating F1 as neutral. Equal weight on precision and recall is itself a choice, and in screening that choice usually undervalues missed studies.
  2. Comparing F-scores across datasets. Prevalence moves precision and therefore the F-score, even for the same model.
  3. Leaving beta or the averaging method unstated. An F-score without them cannot be reproduced or compared.

Sources

Library

Publications

1
  • Journal article

    Use of Large Language Models to Extract Cost-Effectiveness Analysis Data: A Case Study — Gu X, Zhang H, Patil D, et al, Vol. 28, No. 11, pp. 1637-1645 ed., 2025 (Value in Health)

    Measures how accurately a custom GPT pulls cost-effectiveness data from published studies compared with manual extraction.

Frequently Asked Questions (6)

  • What is F-Score?

    The F-score is a classifier metric that combines precision and recall in a weighted harmonic mean, often reported for AI screening and data extraction.

    Source: van Rijsbergen 1979

  • How is the F-score calculated from precision and recall?

    Precision is the share of items a classifier labels positive that are truly positive, and recall is the share of truly positive items that it finds. The balanced F-score, written F1, is the harmonic mean of the two, which in counts equals twice the true positives divided by twice the true positives plus the false positives and false negatives. Van Rijsbergen built a general effectiveness measure in which a weight beta expresses how many times more a user values recall than precision, and the F-score is one minus that measure. Setting beta to 1 gives the two rates equal weight, and true negatives never enter the formula.

    Source: van Rijsbergen 1979

  • How does NICE ECD20 treat the F-score when AI screens titles and abstracts for a systematic review?

    NICE ECD20 judges AI screening tools on their methodological performance, not on the time they save. When AI performs a first sift and humans screen every record it keeps, the framework ranks avoiding missed relevant studies above avoiding irrelevant inclusions, so the true positive rate and false negative rate are the primary metrics for reporting. Aggregate measures such as the F-score may still help model developers, but they should not stand in for those two rates in a screening report. The framework also asks for metrics to be pre-specified and for the use of any aggregate measure, including the beta of an F-score, to be justified.

    Source: NICE ECD20 (2026)

  • Why can the F-score mislead when choosing an AI screening cut-off for a systematic review that informs an economic model?

    The balanced F-score weighs each irrelevant record kept exactly as heavily as each relevant record lost. In an illustrative screen of 1,000 records with 50 relevant, a strict cut-off that misses 10 studies scores an F1 of 0.727, while an inclusive cut-off that misses only 1 scores 0.394 because it keeps 130 more irrelevant records. A missed study can shift a pooled estimate and every model input drawn from it, whereas an extra irrelevant record costs some reviewer time. Hand and Christen argue that the relative weight on precision and recall should come from the problem and the user, so the beta chosen for a screening evaluation needs to reflect the cost of a missed study.

    Source: Hand and Christen 2018

  • How does the F-score differ from the Matthews correlation coefficient?

    Chicco and Jurman single out two properties of the F-score. The F-score ignores true negatives, and its value changes when the positive and negative classes are swapped, whereas the Matthews coefficient draws on all four cells of the confusion matrix and is unaffected by such a swap. In an illustrative screen, the same predictions earn an F1 of 0.727 with relevant records as the positive class and 0.984 with irrelevant records as the positive class. Chicco and Jurman recommend the Matthews coefficient for binary classification because it is high only when a model performs well on both classes.

    Source: Chicco and Jurman 2020

  • Why can the F-score of the same AI screening tool differ between two systematic reviews?

    Fawcett points out that any metric built from both columns of the confusion matrix, the F-score among them, shifts with the class balance even when the classifier itself performs the same. Precision depends on prevalence, so when the same tool is applied to a search in which relevant records are rarer, a larger share of the records it keeps are irrelevant and its F-score falls. Two systematic reviews with different proportions of relevant records can therefore report different F-scores for one tool. Comparisons of AI screening tools across datasets need the prevalence of each dataset reported alongside any F-score.

    Source: Fawcett 2006

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 10 Nov 2026

Content version: 1.0.0

Canonical Identity

Term code
HS-HP-DH-084

Stable URI · Machine-readable · Resolvable · CC BY 4.0

This article is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/concept/f-score