Monitoring Model Performance Metrics
This lesson explains how ground truth is joined to predictions, what the model performance signal measures, how to monitor when labels arrive late, and how operational metrics differ.
Learning outcomes
After completing this lesson, you will be able to:
- Explain how correlation IDs join ground truth to predictions.
- Identify the model performance metrics.
- Describe leading indicators for delayed labels.
- Distinguish model health from service health.
Ground truth
Ground truth is the actual outcome a prediction tried to anticipate: whether the customer churned, whether the transaction was fraud, what the demand turned out to be. It usually arrives later than the prediction, sometimes much later, and from a different system, such as a CRM, a chargeback process or a sales ledger.
To compute performance, each prediction must be joined to its outcome. The data collector gives each logged prediction a correlation ID, which the application should also store with the business record, so that when the outcome is known it can be written to a ground truth data asset with the same ID. The monitor then joins the two by that ID.
The model performance signal
The model performance signal (preview) computes metrics on the joined predictions and outcomes and compares them with thresholds. Classification models use accuracy, precision and recall; regression models use mean absolute error (MAE), mean squared error (MSE) and root mean squared error (RMSE).
monitoring_signals:
performance:
type: model_performance
alert_enabled: true
production_data:
data_column_names:
prediction: churned
correlation_id: correlation_id
reference_data:
input_data:
path: azureml:churn-ground-truth:1
type: mltable
data_column_names:
actual: churned
correlation_id: correlation_id
metric_thresholds:
classification:
precision: 0.70
recall: 0.65The choice of metric follows the business cost of errors. For churn, missing a customer who leaves (low recall) may cost more than contacting one who stays (lower precision); for fraud, the trade-off may be the reverse.
When labels arrive late
Some outcomes take weeks or months, such as loan defaults. Until ground truth arrives, the team relies on leading indicators: data drift, prediction drift, data quality and business proxies, such as the share of high-risk scores or the rate of manual overrides. When labels do arrive, performance is computed for the older predictions, which shows whether the earlier warnings were real.
Operational metrics
Model quality is half of production health; the service is the other half. Managed online endpoints publish metrics to Azure Monitor at endpoint and deployment level, including requests per minute, request latency, HTTP errors by status code, CPU and memory utilization, and instance counts. Diagnostic settings send endpoint traffic and console logs to a Log Analytics workspace for queries, and the scoring script can send custom telemetry to Application Insights.
| Symptom | Likely area | First check |
|---|---|---|
| Accuracy falls, latency and errors normal | The model or data | Drift, data quality and performance signals |
| Latency rises, accuracy normal | Capacity or code | CPU, memory, instance count, concurrency settings |
| Errors rise suddenly | Code, inputs or dependencies | Deployment logs, recent changes, input schema |
| Predictions shift with no data drift | The model or a deployment change | Which model version and deployment received traffic |
Confirming a decline
A fraud model's data drift signal has been amber for three weeks. Chargebacks, which confirm fraud, arrive 30 to 60 days after a transaction. The risk team asks whether the model's detection rate has actually fallen before approving an expensive retraining and validation cycle.
Write confirmed chargeback outcomes to a ground truth data asset keyed by the correlation ID logged with each prediction, and add a model performance signal with recall as the key metric. As outcomes arrive for the drifted period, the signal shows whether recall fell below its threshold, which answers the risk team's question with evidence.
Retraining immediately on drift alone may be unnecessary. Lowering the drift threshold would produce more alerts but no confirmation. Endpoint latency metrics say nothing about whether fraud is being detected.
How does the model performance signal match ground truth labels to the predictions they belong to?
Show answer
By a correlation ID logged with each request by the data collector and included with the ground truth data when it arrives.
Exam Tips
Remember for the exam
- Ground truth is joined to predictions by a correlation ID logged by the data collector.
- Model performance (preview): accuracy, precision, recall; or MAE, MSE, RMSE.
- Use drift and proxies as leading indicators while labels are delayed.
- Azure Monitor endpoint metrics show service health; monitors show model health.