---
title: "model_monitoring"
description: "Monitor ML model performance and detect drift requiring intervention."
canonical: "https://acs.synapti.ai/workflows/model-monitoring/"
last_updated: "2026-10-28T02:44:27Z"
---

# Monitor ML model performance and detect drift requiring intervention.

Generated from [schemas/workflows/data_analysis_workflows.yaml](https://github.com/synaptiai/agent-capability-standard/blob/main/schemas/workflows/data_analysis_workflows.yaml) at commit 18c38b74ac21.

- Workflow id: `model_monitoring`
- Risk: medium
- Catalog: domain workflows (data-analysis)
- Declares Standard 1.1.0
- Steps: 13

ML model monitoring workflow that tracks prediction performance,
detects data and concept drift, and triggers retraining alerts.

**Figure: Steps of model_monitoring: 13 steps.** Read top to bottom: only step 13 (audit) changes state; step 9 has gates; and the highest step risk is low, at steps 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 and 13.

| # | Capability | Layer | Role | Gates | On failure | Reads from | Risk |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | `receive` | PERCEIVE |  |  |  |  | low |
| 2 | `retrieve` | PERCEIVE |  |  |  |  | low |
| 3 | `measure` | UNDERSTAND |  |  |  | 1 | low |
| 4 | `compare` | UNDERSTAND |  |  |  | 2, 3 | low |
| 5 | `retrieve` | PERCEIVE |  |  |  |  | low |
| 6 | `observe` | PERCEIVE |  |  |  |  | low |
| 7 | `detect` | UNDERSTAND |  |  |  | 5, 6 | low |
| 8 | `detect` | UNDERSTAND |  |  |  | 4 | low |
| 9 | `attribute` | MODEL |  | skip |  | 6, 7 | low |
| 10 | `predict` | UNDERSTAND |  |  |  | 3, 7 | low |
| 11 | `plan` | REASON |  |  |  | 4, 7, 8 | low |
| 12 | `generate` | SYNTHESIZE |  |  |  | 3, 7, 8, 11 | low |
| 13 | `audit` | VERIFY |  |  |  | 4, 7, 8, 11 | low |

## Inputs

**Figure: Inputs of model_monitoring.** 4 inputs, 1 required (filled pin) and 3 optional (outlined pin), with 7 named fields inside them.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `model` | object | Yes |  |
| `model.id` | string | No |  |
| `model.baseline_metrics` | string | No |  |
| `model.performance_metrics` | array of string | No |  |
| `model.training_stats` | string | No |  |
| `model.features` | array of string | No |  |
| `model.drift_threshold` | number | No |  |
| `model.concept_drift_threshold` | number | No |  |
| `monitoring_window` | string | No |  |
| `forecast_horizon` | string | No |  |
| `profile` | object | No |  |

## Steps

1. [`receive`](https://acs.synapti.ai/capabilities/receive/index.md): Ingest recent model predictions and actuals. Stores `predictions_out`. (risk low)
2. [`retrieve`](https://acs.synapti.ai/capabilities/retrieve/index.md): Get model baseline performance metrics. Stores `baseline_out`. (risk low)
3. [`measure`](https://acs.synapti.ai/capabilities/measure/index.md): Calculate current model performance metrics. Stores `current_performance_out`. (risk low)
4. [`compare`](https://acs.synapti.ai/capabilities/compare/index.md): Compare current performance to baseline. Stores `performance_comparison_out`. (risk low)
5. [`retrieve`](https://acs.synapti.ai/capabilities/retrieve/index.md): Get input feature distributions from training. Stores `training_distributions_out`. (risk low)
6. [`observe`](https://acs.synapti.ai/capabilities/observe/index.md): Observe current input feature distributions. Stores `current_distributions_out`. (risk low)
7. [`detect`](https://acs.synapti.ai/capabilities/detect/index.md): Detect data drift in input features. Stores `data_drift_out`. (risk low)
8. [`detect`](https://acs.synapti.ai/capabilities/detect/index.md): Detect concept drift (prediction vs actual relationship change). Stores `concept_drift_out`. (risk low)
9. [`attribute`](https://acs.synapti.ai/capabilities/attribute/index.md): Identify features most contributing to drift. Stores `drift_attribution_out`. (risk low)
   - Gate: when `${data_drift_out.detected} == false`, skip: No data drift detected.
10. [`predict`](https://acs.synapti.ai/capabilities/predict/index.md): Forecast future performance if no action taken. Stores `performance_forecast_out`. (risk low)
11. [`plan`](https://acs.synapti.ai/capabilities/plan/index.md): Recommend intervention actions. Stores `intervention_plan_out`. (risk low)
12. [`generate`](https://acs.synapti.ai/capabilities/generate/index.md): Create monitoring report. Stores `report_out`. (risk low)
13. [`audit`](https://acs.synapti.ai/capabilities/audit/index.md): Record monitoring cycle. Stores `audit_out`. (risk low, changes state)

## Data flow

**Figure: Which step reads which stored output.** 9 steps read the output of earlier steps, 21 reads in all; step 12 (generate) reads the most, from 4 steps.

- Step 3 reads from step 1.
- Step 4 reads from steps 2 and 3.
- Step 7 reads from steps 5 and 6.
- Step 8 reads from step 4.
- Step 9 reads from steps 6 and 7.
- Step 10 reads from steps 3 and 7.
- Step 11 reads from steps 4, 7 and 8.
- Step 12 reads from steps 3, 7, 8 and 11.
- Step 13 reads from steps 4, 7, 8 and 11.

## Risk

**Figure: Risk of model_monitoring: declared medium; highest step risk low, at step 1 (receive).** The catalog declares medium; the highest step risk is low.

- Step 1 (`receive`): low
- Step 2 (`retrieve`): low
- Step 3 (`measure`): low
- Step 4 (`compare`): low
- Step 5 (`retrieve`): low
- Step 6 (`observe`): low
- Step 7 (`detect`): low
- Step 8 (`detect`): low
- Step 9 (`attribute`): low
- Step 10 (`predict`): low
- Step 11 (`plan`): low
- Step 12 (`generate`): low
- Step 13 (`audit`): low

## Success criteria

- Model performance metrics computed
- Data drift detected or ruled out
- Concept drift assessed
- Intervention recommendations generated

## Related

- Domain: [data-analysis](https://acs.synapti.ai/domains/data-analysis/index.md)
- Listed by the [data-analysis](https://acs.synapti.ai/domains/data-analysis/index.md) profile

## Validate it

```sh
python tools/validate_workflows.py --catalog schemas/workflows/data_analysis_workflows.yaml
```

## Workflow YAML

```yaml
model_monitoring:
  goal: Monitor ML model performance and detect drift requiring intervention.
  risk: medium
  domain: data-analysis
  profile: schemas/profiles/data_analysis.yaml
  description: |
    ML model monitoring workflow that tracks prediction performance,
    detects data and concept drift, and triggers retraining alerts.
  success:
    - Model performance metrics computed
    - Data drift detected or ruled out
    - Concept drift assessed
    - Intervention recommendations generated
  steps:
    - capability: receive
      purpose: Ingest recent model predictions and actuals.
      risk: low
      mutation: false
      store_as: predictions_out
      input_bindings:
        channel: model_predictions
        filter:
          model_id: ${model.id}
          window: ${monitoring_window}

    - capability: retrieve
      purpose: Get model baseline performance metrics.
      risk: low
      mutation: false
      store_as: baseline_out
      input_bindings:
        target: ${model.baseline_metrics}
        format: model_performance

    - capability: measure
      purpose: Calculate current model performance metrics.
      domain: model_performance
      risk: low
      mutation: false
      store_as: current_performance_out
      input_bindings:
        target:
          predictions: ${predictions_out.data}
          metrics: ${model.performance_metrics}
        metric: model_performance

    - capability: compare
      purpose: Compare current performance to baseline.
      domain: performance_degradation
      risk: low
      mutation: false
      store_as: performance_comparison_out
      input_bindings:
        options:
          - ${current_performance_out}
          - "${baseline_out.data: object}"
        criteria:
          - accuracy_change
          - precision_change
          - recall_change
          - f1_change

    - capability: retrieve
      purpose: Get input feature distributions from training.
      risk: low
      mutation: false
      store_as: training_distributions_out
      input_bindings:
        target: ${model.training_stats}
        format: feature_distributions

    - capability: observe
      purpose: Observe current input feature distributions.
      risk: low
      mutation: false
      store_as: current_distributions_out
      input_bindings:
        target: ${model.id}
        aspects: [input_feature_distribution, statistics]

    - capability: detect
      purpose: Detect data drift in input features.
      domain: data_drift
      risk: low
      mutation: false
      store_as: data_drift_out
      input_bindings:
        data:
          current: ${current_distributions_out.observation}
          baseline: "${training_distributions_out.data: object}"
        pattern: distribution_shift
        threshold: ${model.drift_threshold}

    - capability: detect
      purpose: Detect concept drift (prediction vs actual relationship change).
      domain: concept_drift
      risk: low
      mutation: false
      store_as: concept_drift_out
      input_bindings:
        data: ${performance_comparison_out}
        pattern: concept_shift
        threshold: ${model.concept_drift_threshold}

    - capability: attribute
      purpose: Identify features most contributing to drift.
      domain: drift_attribution
      risk: low
      mutation: false
      store_as: drift_attribution_out
      input_bindings:
        effect: "${data_drift_out.matches: array<object>}"
        candidates: ${model.features}
        context: ${current_distributions_out.observation}
      gates:
        - when: ${data_drift_out.detected} == false
          action: skip
          message: No data drift detected.

    - capability: predict
      purpose: Forecast future performance if no action taken.
      domain: performance_trajectory
      risk: low
      mutation: false
      store_as: performance_forecast_out
      input_bindings:
        target: model_performance
        horizon: ${forecast_horizon}
        conditions:
          drift: ${data_drift_out}
          current_performance: ${current_performance_out}

    - capability: plan
      purpose: Recommend intervention actions.
      risk: low
      mutation: false
      store_as: intervention_plan_out
      input_bindings:
        goal: maintain_model_performance
        constraints:
          data_drift: ${data_drift_out.detected}
          concept_drift: ${concept_drift_out.detected}
          performance_degradation: ${performance_comparison_out}
          available_actions: [retrain, recalibrate, feature_update, rollback]

    - capability: generate
      purpose: Create monitoring report.
      domain: monitoring_report
      risk: low
      mutation: false
      store_as: report_out
      input_bindings:
        specification:
          type: model_monitoring_report
          model_id: ${model.id}
          performance: ${current_performance_out}
          data_drift: ${data_drift_out}
          concept_drift: ${concept_drift_out}
          recommendations: "${intervention_plan_out.steps: array<object>}"

    - capability: audit
      purpose: Record monitoring cycle.
      risk: low
      mutation: true
      store_as: audit_out
      input_bindings:
        event:
          type: model_monitoring
          model_id: ${model.id}
          performance_status: ${performance_comparison_out}
          data_drift_detected: ${data_drift_out.detected}
          concept_drift_detected: ${concept_drift_out.detected}
          intervention_recommended: "${intervention_plan_out.steps[0]: object}"

  inputs:
    model:
      type: object
      required: true
      properties:
        id: {type: string}
        baseline_metrics: {type: string}
        performance_metrics: {type: array, items: {type: string}}
        training_stats: {type: string}
        features: {type: array, items: {type: string}}
        drift_threshold: {type: number, default: 0.1}
        concept_drift_threshold: {type: number, default: 0.05}
    monitoring_window:
      type: string
      default: "24h"
    forecast_horizon:
      type: string
      default: "7d"
    profile:
      type: object
      ref: schemas/profiles/data_analysis.yaml
```
