Anomaly Detection
The anomaly detection engine runs five structural detectors across case data to surface potential quality issues:
Anomaly detectors
| Parameter | Type | Description |
|---|---|---|
| Validation Cluster | D1 | Multiple validation failures concentrated in the same document or field group. |
| Field Conflict | D2 | The same field has contradictory values across documents in a case. |
| Duplicate Key Divergence | D3 | Documents share a link key value but differ on fields that should match. |
| Missing Document Type | D4 | A case template expects a document type that is absent from this case. |
| Value Reuse | D5 | Identical values appear across unrelated fields, suggesting copy-paste or extraction errors. |
Anomalies appear in the Anomalies tab of the case detail page (Advanced mode). Each anomaly card shows severity, affected fields, and a dismiss button. Dismissed anomalies are hidden by default but visible via the show dismissed toggle.
The detection engine runs automatically after case formation and whenever case membership changes (documents added, removed, or cases merged). Each detector operates independently — a single case can trigger multiple anomaly types simultaneously. Anomaly counts are displayed as badges in the case header for quick triage.
Use anomaly detection to surface data quality issues that would otherwise require manual comparison across documents. For best results, configure case templates so the Missing Document Type detector (D4) can flag incomplete cases. Most teams find that D2 (Field Conflict) and D3 (Duplicate Key Divergence) catch the highest-value issues in procurement and financial workflows.
A typical workflow starts on the cases list page, where anomaly count badges give you an at-a-glance view of which cases need attention. Click into a case with anomalies, switch to the Anomalies tab, and use the severity filter pills to focus on critical issues first. Each anomaly card explains the affected fields and the specific violation detected. Dismiss false positives with the dismiss button — they remain accessible via the show dismissed toggle if you need to revisit them later.
- D1 — Validation Cluster: multiple validation failures concentrated in the same document or field group
- D2 — Field Conflict: contradictory values for the same field across documents in a case
- D3 — Duplicate Key Divergence: shared link key but differing values on fields that should match
- D4 — Missing Document Type: case template expects a document type that is absent
- D5 — Value Reuse: identical values across unrelated fields, suggesting copy-paste or extraction errors
curl -s "https://api.talonic.com/v1/cases/case_abc/anomalies" \
-H "Authorization: Bearer $TALONIC_API_KEY"
# Response:
# {
# "anomalies": [
# {
# "id": "anom_001",
# "detector": "D2",
# "type": "field_conflict",
# "severity": "high",
# "fields": ["total_amount"],
# "description": "total_amount is 12,450 in Invoice_4521.pdf but 12,500 in PO_8890.pdf",
# "dismissed": false,
# "detected_at": "2025-04-18T10:05:00Z"
# }
# ]
# }Anomaly detection is designed for high-throughput triage. In a workspace processing hundreds of cases per week, the anomaly count badges on the cases list page give you an instant heat map of where problems are concentrated. A case with zero anomalies typically needs only a quick spot-check, while a case with multiple D2 (field conflict) or D3 (duplicate key divergence) anomalies warrants detailed investigation. This severity-based prioritization lets your team focus review effort where it has the highest impact, rather than reviewing every case with equal depth.