OBLYTECH Logo
OBLYTECH Logo

Why is overall accuracy a poor score for a rare-event model?

Overall accuracy measures the share of all predictions that were right, so a rare event can be missed completely while the headline score still looks healthy. Evaluate a rare-event model by reporting its performance on the rare case separately, and by weighing what each kind of miss costs.

Why the headline number misleads when positives are scarce

Accuracy counts correct predictions across the whole evaluation set. When the event you care about is rare, the bulk of that set belongs to the common class, so a model can earn a high score simply by agreeing with the common class. The easy cases carry the number. The rare case that matters adds very little to the total.

Suppose one transaction in a hundred is fraudulent. A model that labels each transaction as legitimate scores 99 percent accuracy and catches no fraud at all. The dashboard looks healthy while fraud passes through unchecked.

Accuracy also moves when you change the cutoff, so it is a weak guide for tuning. A small change in the threshold can shift the total a little while the rare-case results change a lot. Look at how recall and the false positive count move as the cutoff changes, rather than at a single accuracy figure.

The number is not wrong. It answers one question: how often is the model right overall? It does not answer whether the model finds the rare case, and that is usually the question the business is paying for. Treat accuracy as a sanity check on the whole, and make the rare-case results the main evaluation.

Split the results by class before comparing models

Start with a confusion matrix for the evaluation set. It has four counts: true positives, false positives, false negatives and true negatives. Accuracy adds the two correct counts and divides by the total, so the rare-class errors are a small fraction of the denominator. Read the rare-class counts directly before you read any summary number.

For the rare class, report at least these four figures:

  • Recall, the share of true rare cases the model finds.
  • Precision, the share of flagged cases that really are rare.
  • The number of false negatives, the rare cases the model missed.
  • The number of false positives, the common cases sent for review.

Keep the counts next to the rates. A recall of 0.6 sounds acceptable until someone asks how many real cases it missed. The counts are what the operations team has to handle, and they are also what makes two models comparable on the same evaluation set.

When you compare candidate models, use the same evaluation set for each one and the same threshold rule. A model that looks better on recall may simply send far more cases for review. Read the precision and the false positive count alongside recall before you call a winner.

Weigh the cost of each kind of miss

A false negative and a false positive seldom cost the same. In a fraud screen, a missed case can mean a direct loss and a chargeback, while a false alarm means a delayed payment and a manual check. In a safety inspection, the costs may point the other way, since a missed defect can be far more expensive than a stopped line. Write down the cost of each error type in the units the business uses, even if the estimate is rough.

Once the costs are written down, the threshold stops being a default and becomes a decision. A lower threshold catches more rare cases and sends more common cases for review. A higher threshold does the reverse. Agree on the threshold with the people who carry each outcome: the business owner who accepts the loss, the review team that handles the queue, and whoever answers for the model’s risk.

For help planning this work, see AI and machine learning services.

Record the cost assumptions next to the model version. When the costs change, the right threshold may change too, and a threshold chosen months ago without the assumptions attached is hard to revisit.

Build an evaluation set with enough rare cases

An estimate of rare-class performance is limited by the number of rare examples behind it. If the held-out set contains a handful of positives, one case can move recall a long way, and a comparison between two models may reflect that single case rather than a real difference. Check the size before you trust the comparison.

A workable sequence:

  1. Count the rare-class examples in the held-out set before training starts, and write the count down.
  2. Keep the class mix in the evaluation set close to the mix the model will see in production, or reweight the results so the rates reflect production.
  3. Hold out a slice from a later period so the evaluation includes cases the model has not seen in any form.
  4. Label a sample of the common-class predictions to find rare cases that were labeled as common.

Avoid changing the evaluation set after you have seen the results. If the set is extended or cleaned to make a model look better, the scores stop meaning what they claim. Freeze it, document the version and move any corrections into a new round.

The same discipline applies to test sets for generative features. For a related approach, see building a small evaluation set for AI answers.

Check slices and monitor the rare case after release

Overall figures can hide slices. A model may catch rare cases in one region, channel or customer group and miss them in another. Break the rare-class results down by the groups the business cares about, and compare recall for each group. If a group has too few rare cases to measure, state that in the report rather than quoting a number that looks more certain than it is.

Monitoring after release follows the same logic. Labels often arrive late, and the traffic mix drifts, so the rare case can get harder to see once the model is live. Track rare-class recall and the count of missed cases on a regular schedule, with a reviewer confirming labels on a sample. A flat overall score can hide a fall in rare-class recall, so keep both on the same page of the review pack.

For the signals to watch between reviews, see detecting quality drift in production AI features.

A sign-off checklist for a rare-event model

Before a rare-event model goes into a decision process, check these items in order:

  1. The rare-class count in the evaluation set is written down, and it is large enough that one or two cases would not change the choice between models.
  2. Recall and precision for the rare class appear beside the false negative and false positive counts.
  3. The cost of each error type is recorded, with the owner who accepted it.
  4. The threshold was chosen from the cost analysis, not from the training run.
  5. Slice results are reported, with any thin slices marked as such.
  6. A named reviewer owns the rare-case queue and the label sampling after release.

For the wider evaluation process behind these checks, see AI evaluation and quality assurance. For the reviewer role, see AI observability and human oversight.

Questions about scoring a rare-event model

Is accuracy ever a fair score for a rare-event model?

It can be, when the classes are close to balanced and each kind of error costs about the same. Even then, report the class-level counts beside it, so the rare case stays visible in the review.

Which single metric should replace accuracy?

No single number covers the decision. Rare-class recall shows how many real cases the model finds, and precision shows how much review work it creates. Read them with the absolute counts and the cost estimate, because the combination carries the decision that one figure cannot.

How many rare cases does the evaluation set need?

There is no fixed figure. The working test is whether one or two cases could change the choice between two models. If they could, the set is too small for that comparison, and the team should collect more rare examples or hold the decision until they do.

Should I reweight the classes during training?

Class weighting or resampling can help a model learn the rare case, but it shifts the score distribution and the threshold that looks right. Evaluate the final model on a production-like set without the weighting, and set the threshold from the cost analysis rather than from the training run.

Who should decide the threshold for a rare-event model?

The decision belongs to whoever carries the cost of each outcome, and it should be settled before the final comparison is read. Reviewers feel a lower threshold first, because their queue grows, so ask the review lead what volume the team can staff before the number is fixed.