Skip to main content
Infrastructure metrics tell part of the story, but to truly understand model behavior — bias, feature importance, or data quality issues — you need higher-level monitoring that examines inputs, predictions, and outcomes. Amazon SageMaker Model Monitor is a native capability that helps you detect drift and quality regressions. It integrates with SageMaker endpoints, S3, CloudWatch, and scheduled processing jobs to provide automated baselining, continuous monitoring, and HTML reports. In this article we cover the four main monitoring types available in SageMaker Model Monitor:
  • Data Quality Monitoring
  • Model Quality Monitoring
  • Bias Drift Monitoring
  • Feature Attribution Drift Monitoring
We’ll show how to create baselines for each type, enable capture of inference requests, schedule recurring monitoring jobs, and interpret the resulting reports. At a high level, these four monitor types are:
A slide titled "Workflow: SageMaker Model Monitor" that outlines the "4 Main Types of ML Model Monitoring." It lists Data Quality Monitoring, Model Quality Monitoring, Bias Drift Monitoring, and Feature Attribution Drift Monitoring.
Note: each monitor type requires its own baseline generation job, endpoint capture configuration, and scheduled monitoring job.

Data Quality Monitoring

Data quality monitoring verifies that inference input data remains statistically similar to the training data. The goal is to detect schema changes, missing fields, invalid values, and distribution drift by comparing captured inference request samples against a training-time baseline. To generate a baseline, use DefaultModelMonitor.suggest_baseline. That launches a processing job which computes statistics and constraints and writes them to S3.
After creating the baseline, enable data capture on your SageMaker endpoint so a sample of inference requests is saved to S3. Once captured, schedule a processing job that compares the incoming distribution to the baseline and writes reports to S3 and logs to CloudWatch.
A diagram titled "Workflow: Data Quality Monitoring" showing an AWS SageMaker-based pipeline with training data, a Model Monitor data quality baseline job, S3 buckets for baselines and logged inference requests, and a managed ML instance running a SageMaker frontend, inference handler, and model. It also shows scheduled monitoring, an S3 bucket sink, and CloudWatch integration.
Example: create and schedule a data quality monitoring job that compares captured requests with baseline statistics and writes results to S3/CloudWatch.

Model Quality Monitoring

Model quality monitoring looks for concept drift: when predictions no longer align with real-world outcomes. This requires ground-truth labels that you can pair with captured predictions. Note that ground truth can be delayed in many production scenarios (for example churn, fraud, or medical outcomes), so design your cadence and retention policies accordingly.
Ground truth labels are required for model quality monitoring. There is often a time lag between making a prediction and observing the true label — design your monitoring cadence and retention policies to account for this delay.
Create a model quality baseline that captures initial alignment between predictions and ground-truth. Use ModelQualityMonitor.suggest_baseline and specify the problem type: Regression, BinaryClassification, or MulticlassClassification.
Ground-truth files should match inferenceId values to actual labels so the monitor can pair predictions with outcomes. Example ground-truth JSON lines:
After enabling capture on your endpoint and collecting ground truth in S3, schedule a model quality monitoring job. The monitor will compute metrics such as accuracy, F1, MSE, and compare them to thresholds to produce an HTML performance report.
A slide titled "Workflow: Model Quality Monitoring" showing four numbered steps. It lists: track prediction accuracy, compute ML metrics (MSE, accuracy, recall, F1), raise alerts when accuracy falls, and decide when to retrain the model.

Bias Drift Monitoring

Bias drift monitoring checks whether model predictions show unfair behavior across sensitive groups (for example, gender, race, or age). You define sensitive features and the monitor computes fairness metrics (disparate impact, group-wise performance, etc.) to detect bias shifts. Bias monitoring also requires its own baseline derived from historical or training data. If you use multiple monitors, create a separate baseline for each monitor type.
A diagram titled "Workflow: Bias Drift Monitoring" shows training data feeding a "Model Monitor Bias Drift Baseline Job." The job outputs files (bias_baseline.html, statistics.json, constraints.json, inference_results.csv) to a storage bucket.
Example: create a bias baseline then schedule a bias monitoring job. Including ground truth improves fidelity of fairness calculations.
Enable data capture on your endpoint, prepare captured predictions and (optionally) ground-truth labels, then create a scheduled bias monitoring job:
The bias report will include group-wise metrics and highlight potential fairness issues across the specified sensitive features.
A presentation slide titled "Workflow: Model Quality Monitoring" with three numbered panels outlining steps: 01 Unique ID, 02 Matching, and 03 File. Each panel briefly explains using an inferenceId to match predictions, including it in requests/ground truth, and storing results in JSON with inferenceId and actualLabel.

Feature Attribution Drift Monitoring

Feature attribution drift monitoring detects changes in which features the model relies on to make predictions. Typically this uses attribution methods (e.g., SHAP) to compute per-feature importance for inference records, store the attribution values as a baseline, and compare live attributions to that baseline. Significant shifts in attribution can indicate model degradation or a change in the underlying data-generating process. For example, if square footage initially had the highest attribution for house price predictions but location later becomes the dominant factor, attribution drift would surface that shift so you can investigate feature engineering, data collection, or retraining.
A slide titled "Workflow: Feature Attribution Drift Monitor" showing a Feature Attribution Drift Report that flags drift (Square Footage attribution ↓16.67%, Location attribution ↑66.67%) with a "Drift Detected!" alert. Next to it are recommended actions: Investigate data shift, Retrain the model with updated data, and Enhance feature selection.
The attribution baseline job computes initial attribution values and stores both statistics and attribution outputs (CSV) in S3.
A diagram titled "Workflow: Feature Attribution Drift Monitor" showing training data flowing into a Model Monitor Attribution Drift Baseline Job that writes outputs to a storage bucket. The bucket contains files named statistics.json, constraints.json, attribution_data.csv, and model_metadata.json.
Example: compute a feature-attribution baseline, enable capture, then schedule the attribution drift monitor.
After the baseline generation and endpoint capture are in place, schedule the monitoring job that compares live attributions to the baseline:

Comparison Summary Table

Wrap-up

SageMaker Model Monitor provides a robust set of tools to detect data drift, concept drift, fairness regressions, and changes in feature importance. Key operational steps for each monitor type are:
  1. Generate a baseline from historical/training data.
  2. Enable endpoint data capture so inference requests (and optionally responses) are written to S3.
  3. Collect ground truth labels when required (for model quality and recommended for bias).
  4. Schedule recurring monitoring jobs that compare live data/attributions against baselines.
  5. Inspect HTML reports and CloudWatch logs to drive remediation (retrain, change features, or collect more representative data).
A presentation slide titled "Summary" showing a numbered list of monitoring types. Each item briefly describes Data Quality, Model Quality, Bias, and Feature Attribution monitoring with example checks like schema/data drift, accuracy (MSE/F1), fairness comparisons, and feature influence.
That wraps up this lesson on monitoring with SageMaker Model Monitor. In a follow-up guide we’ll demonstrate an end-to-end example that wire-taps an endpoint, stores captured data in S3, pushes ground-truth labels, and runs scheduled monitors to trigger CloudWatch alerts and HTML reports.

Watch Video