Evaluating Metrics in Machine Learning: What to Track in Production

Evaluating metrics for production ML: pick quality metrics by error cost and class balance, then track drift, data quality, latency and proxies.

Evaluating Metrics in Machine Learning: What to Track in Production
Written by TechnoLynx Published on 11 Jul 2026

Evaluating metrics for a production model takes two steps. First, choose the offline quality metrics by what each kind of error costs and how balanced the classes are. Then add the production signals: data drift, prediction drift, data quality, latency and proxy indicators for periods before labels arrive. Google’s guidance puts the first step plainly: the meaningful metrics depend on the task, on the cost of different misclassifications and on whether the dataset is balanced. The second step exists because a model that scored well at launch makes predictions on data it has never seen, so you need to know it keeps working over time, not only that it worked once. The last decision is where to set alert thresholds.

Evaluating Metrics for Classification and Regression Models

Inside each family, error cost should drive the choice.

For classification, precision answers “of everything flagged positive, how much was right?”, so it matters most where false alarms are expensive, as in fraud detection or medical screening. Recall answers “of all real positives, how many did we catch?”, and it becomes the priority when a miss is costly, such as a missed diagnosis. Maximising precision alone can hide a pile of missed positives, which is why the two are read together. F1 is their harmonic mean with equal weight. When one error clearly costs more than the other, F-beta shifts the weight: β greater than 1 emphasises recall, and β less than 1 emphasises precision.

On threshold-free summaries, ROC-AUC is convenient for comparing classifiers, with 0.5 meaning random and 1.0 meaning perfect. On imbalanced data, though, Saito and Rehmsmeier (PLOS ONE, 2015) showed that ROC plots can deceive and that precision-recall plots give a more accurate picture of future performance, because they measure the share of true positives among positive predictions. The baseline of a precision-recall curve moves with prevalence: it is 0.5 for balanced classes and about 0.09 when positives and negatives are 1:10.

Regression has its own trade-offs. Across surveys spanning 25 years, the most popular error measures were MSE (or RMSE), MAE and MAPE, according to Botchkarev’s typology. Squaring the error emphasises large errors, so MSE and RMSE are susceptible to outliers. Whether that helps depends on the application. MAPE is scale-free, which makes it useful for comparing series with different units, but it breaks when actual values are zero or close to zero, as with intermittent demand. RMSE has also drawn criticism: Willmott and Matsuura argued against reporting it at all and favoured MAE. The typology’s broader point is that no single measure is universally best, and a complementary set of metrics (bias plus accuracy, for example) gives a clearer view of the errors.

Metric Choice at a Glance

Situation Lead metric Why
Balanced classes, similar error costs Accuracy, as a coarse check It uses all four confusion-matrix cells and is reasonable only when classes are balanced
False positives are expensive Precision It measures how many flagged cases were real
False negatives are expensive Recall It measures how many real positives were caught
Rare positive class F1, PR curve, PR-AUC PR curves are more informative than ROC under imbalance
Asymmetric but known error costs F-beta β tunes the precision/recall weight to cost
Many imbalanced classes Balanced accuracy, per-class recall Each class contributes equally
Regression, large errors matter most RMSE or MSE Squaring penalises large errors
Regression, robust to outliers Median-based errors (MdAE) Mean aggregation is sensitive to outliers; median aggregation is more robust
Comparing across scales MAPE, if actuals stay away from zero It is dimensionless but undefined at zero

Pin the Implementation, Not Just the Metric Name

Two libraries that report “precision” for the same predictions can return different numbers. One study comparing Python, R and Matlab found most components gave a class-1 precision of 0.09, while PyCM reported an average of 0.44 across both classes. The authors separate reporting differences (for example, which class or averaging a metric uses, which explains the PyCM precision gap) from implementation differences caused by coding errors. They found the second kind in MCC and Tweedie deviance. In an interview study of production ML engineers by Shankar et al. (2022), several participants traced bugs to teammates validating models in different ways, and one company standardised its evaluation scripts as a result. We would fix the library, version, averaging mode and positive class in the MLOps evaluation pipeline that gates promotion, and compare production numbers only against numbers computed the same way.

Why a 99% Accurate Model Can Still Be Useless

A classifier that predicts the majority class every time scores an accuracy equal to that class’s share of the data. This is the accuracy paradox. If 99% of samples are negative, the do-nothing model reaches 99% accuracy and never detects a single positive.

A model that guesses each class at its training prevalence has a benchmark accuracy equal to the sum of the squared class shares. For two classes at odds of 9 to 1, that is 0.9² + 0.1² = 0.82, so a model must clear 82% accuracy before it beats informed guessing. In a meta-analysis of remote-sensing models, the prevalence of the majority class explained 61% of the between-study variation in reported accuracy. The same authors warn that relying on overall accuracy can mask poor detection of the minority classes that matter, such as small patches of forest loss.

Accuracy is still the most frequently reported metric. In an analysis of AI benchmark datasets, accuracy was used for 38% of them, ahead of precision at 16% and the F-measure at 13%, and 77.2% of benchmarks reported only a single top-level metric. Google’s position is that when classes are imbalanced or one mistake costs more than the other, “which is the case in most real-world applications”, you should optimise for a different metric. The replacements have limits of their own: precision, recall and F1 can also mislead in some scenarios. So we would also report the full confusion matrix, as the remote-sensing review recommends, since all these metrics can be derived from it.

What to Track Once the Model Is Serving Traffic

Once a model serves traffic, you are watching four things: the data, the model’s behaviour, operations and infrastructure, and responsible use. That is how a multivocal literature review of ML monitoring groups them. Treating production AI reliability as its own engineering discipline, separate from model accuracy, is our position.

Signals to consider for a production model:

  • Data drift: the input distribution compared with training data or recent production data, measured with Jensen-Shannon distance, Population Stability Index, normalised Wasserstein distance, two-sample Kolmogorov-Smirnov or Pearson’s chi-squared in Azure Machine Learning’s monitoring signals.
  • Prediction drift: changes in the distribution of predicted outcomes, which Vertex AI Model Monitoring tracks against training or past production data.
  • Data quality: null value rate, data type error rate and out-of-bounds rate, where the acceptable range comes from the reference data.
  • Feature attribution drift: a feature becoming more or less influential, which can give early warning of accuracy loss without collecting labels.
  • Latency and throughput: response-time percentiles, because slow responses can hurt real-world metrics. A mean hides the tail: at 100 ms average latency, 1% of requests might take 5 seconds.
  • Model age: time since the last retrain on fresh data, with an alert threshold.

Tracking data statistics reduces silent failures. Google’s Rules of ML describe a feature column populated in 90% of examples suddenly dropping to 60%, and a stale table whose refresh alone gave a 2% boost in install rate. The model adapts and quietly gets worse. We cover tool choice in our guide to machine learning model monitoring tools, and the latency side meets general application performance monitoring for production AI.

Slices Catch What the Aggregate Hides

A healthy overall metric can sit on top of a failing segment. Breck et al. note that data errors affecting only specific slices may cause a small drop in model quality that is easy to miss while aggregate metrics look fine. Engineers in the Shankar study described monitoring as slicing sub-populations to investigate prediction quality, and one said a standard confusion matrix “doesn’t drill things down” into the segments users care about. For something like a rare defect in industrial inspection, precision-recall curves per class give the deeper view. Our article on keeping an industrial CV inspection model reliable on the line covers the artefacts for that case.

When Ground-Truth Labels Arrive Weeks Late

Delayed labels mean you cannot monitor accuracy in real time, so you need proxies. You also need to know what those proxies cannot see. Feedback on predictions often arrives late, and sometimes only a few predictions ever get labels, which leaves practitioners unable to monitor simple metrics like accuracy as they happen. One engineer in the Shankar study put it bluntly: feedback was “always delayed by at least 2 weeks”. Azure’s documentation is equally direct: without ground truth joined to model outputs by a unique ID, you cannot do model performance monitoring at all.

One fallback is to treat data drift and label drift as proxies for performance. Other options are to track prediction confidence, entropy or softmax outputs, to train a secondary model that detects when the primary one deteriorates, or to watch downstream operational signals such as manual review rates, override frequencies and complaint rates. Where some labels arrive early and are representative of the rest, maturation-curve methods extrapolate from the cohorts that resolve first.

Worked Example: Estimating Accuracy Without Labels

Importance weighting re-weights known accuracies by how live traffic is distributed. Assume training accuracy was 80% in one neighbourhood bucket and 50% in another, and live traffic brings 100 predictions from the first bucket and 500 from the second. The estimate is (0.8 × 100 + 0.5 × 500) / 600 = 330 / 600 = 55%. The estimate assumes that accuracy within each bucket has not changed, which is exactly what concept drift breaks.

The Blind Spot Proxies Cannot Close

Concept drift, where the relationship between inputs and outcome changes while the inputs look the same, is invisible to input-based monitoring. A study on the IEEE-CIS fraud dataset found that composite proxy monitoring caught covariate and mixed drift in every monitoring window. Concept drift with an unchanged feature distribution went undetected in all five windows (0/5), even as label corruption cut the observed fraud rate from 3.6% to 0.2%. The authors present this as consistent with a theoretical limit, not as a weakness of their method. Their recommendation is to compensate with periodic ground-truth verification. They suggest that verification cycles shorter than about 30 days may preserve monitoring reliability, but they flag that figure as a hypothesis that needs cross-domain validation. This is one study on one dataset, so we would treat the 30-day figure as a prompt to measure your own label latency, not as a schedule.

How Do You Pick Which Production Metrics to Alert On?

Before alerting on a signal, ask whether it detects an urgent, actionable, user-visible condition. Subcritical problems belong on a dashboard. The cost of getting this wrong is documented: in the Shankar study, a surplus of false-positive alerts led to fatigue and silenced alerts, which could miss real performance drops. Google’s data validation team found that on-call engineers ignore spammy or non-actionable alerts, so important errors go unnoticed.

Drift statistics are a known source of noise. With thousands of features and seasonal patterns, per-feature KS or chi-squared tests can fire too many alarms or give contradictory results. Breck et al. found chi-squared tests too sensitive at typical ML data scale. Product teams also struggled to set thresholds on KL divergence because they could not interpret the number. Their fix was a metric with a plain meaning (the largest change in probability for any value), so a threshold reads as “allow changes of only up to 1% per value” and each alert comes with a culprit value to investigate. Defaults differ between platforms too: Vertex AI monitors every feature by default, alerting when the statistical distance from the baseline exceeds 0.3.

Several design moves reduce noise:

  1. Judge alerts the way SRE judges them. Measure precision (the share of alerts that were significant), recall (the share of significant events that alerted), detection time and reset time.
  2. Ask whether each rule is urgent, actionable and user-visible, and whether you will ever be able to safely ignore it. Page on symptoms, and keep cause-oriented signals as debugging aids.
  3. Account for natural variance. SageMaker Model Monitor fires a greater-than threshold only when the value exceeds the baseline plus one standard deviation.
  4. Use different thresholds for different failure speeds. Loose thresholds against a validation set catch slow degradation, and tighter thresholds against the previous model version catch sudden drops.
  5. Have people who know the model set the thresholds. Microsoft’s guidance is to involve data scientists familiar with the model so each metric’s threshold avoids alert fatigue.

Alert tuning remains an open problem. No participant in the Shankar study reported having solved what the authors call the Goldilocks problem of ML alerting, or how to make alert criteria re-tune themselves as data drifts. Our guide on how to monitor ML models in production covers the monitoring workflow beyond thresholds, and the ML model monitoring framework article covers how to structure reference baselines.

Track the Outcome, Not Just the Model’s Metric

Any model metric is just a proxy, and overemphasising one leads to gaming and short-term focus. Thomas and Uminsky frame this through Goodhart’s law: a measure that becomes a target stops being a good measure. Deep learning raises the risk because training itself treats a measure as the target. Their remedy is a slate of metrics rather than a single score, combined with qualitative accounts.

Production examples show the proxy and the outcome diverging. In Google’s Rules of ML, an engineer adds a feature, logistic loss drops and install rate rises, but daily active users fall by 5% and the model does not launch. In another documented case, a model for predicting comments improved while average time spent viewing recommendations went down. The ML Test Score rubric makes the requirement explicit: you need to understand how offline proxy metrics such as log-loss relate to online impact metrics such as engagement and revenue, or a better-scoring model may not give a better system. Engineers in the Shankar study stressed evaluating product metrics such as click-through or churn rate, not ML metrics alone.

In practice, we would pair each model-quality signal with the business metric it is supposed to move, and read a gain in one without the other as a question, not a win.

Two facts about your system shape the monitoring design: what a wrong prediction costs, and how long the true outcome takes to arrive. The first guides your choice of metrics and thresholds. The second sets how long you rely on proxy evidence, during which concept drift needs periodic ground-truth checks.