Skip to main content

Data Drift Entity Ontology

Error and Failure Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 04 November 2026
Audio Overview
SEMANTIC LIBRARY — DATA DRIFT ENTITY ONTOLOGY
FLOW ALGEBRA v1.0 | 2026-11-04
AUTHOR: Mark Higgins | AI collaborator: Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/data-drift-entity-ontology.html
STATUS: Companion formalisation based on the ontology title and established Flow Algebra pattern; not a verified transcription of the webpage.

1. PURPOSE
Represent, detect, explain, evaluate and respond to changes in observed input-data distributions relative to an explicit reference distribution. Data drift is a statistical change, not automatically a model error or evidence of performance deterioration.

2. ENTITY DEFINITION
DataDriftEntity D = (id, dataset_ref, window, reference_window, feature_scope, metric, estimate, threshold, evidence, status, provenance).
Preconditions: valid comparison populations, compatible schema, known preprocessing and declared measurement method.

3. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: observations, data batches, reference samples, schema, timestamps.
R_t: distribution-comparison rules, monitoring policies, inference rules.
B_t: scope, data permissions, minimum sample sizes, significance constraints, alert budgets.
K_t: historical drift events, known seasonality, baselines, previous interventions.
E_t = expand(I_t, R_t)
V_t = {x in E_t : satisfies(x, B_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, observation_(t+1))
NOTE: argmax scores are decision rankings, not calibrated probabilities unless explicitly validated.

4. FORMAL FLOW
F_DRIFT:
  INGEST -> VALIDATE_SCHEMA -> DEFINE_REFERENCE -> ALIGN_WINDOWS
  -> MEASURE_SHIFT -> ASSESS_UNCERTAINTY -> CLASSIFY
  -> ATTRIBUTE -> DECIDE -> LOG -> MONITOR_OR_REMEDIATE
For feature j:
  d_j(t) = distance(P_ref(X_j), P_t(X_j))
  alert_j(t) = 1[d_j(t) > tau_j AND quality_ok AND sample_ok]
For multivariate monitoring:
  d_joint(t) = D(P_ref(X), P_t(X))
The distance D may be PSI, KS statistic, Wasserstein distance, Jensen-Shannon divergence, MMD or a domain-appropriate metric; metrics are not interchangeable.

5. STATE TRANSITIONS
UNOBSERVED -> BASELINED -> MONITORING -> SUSPECTED -> CONFIRMED
SUSPECTED -> DISMISSED (insufficient evidence / confounder)
CONFIRMED -> INVESTIGATING -> MITIGATING -> RESOLVED -> MONITORING
CONFIRMED -> ACCEPTED_VARIATION (documented expected shift)
Any state -> ESCALATED if safety or quality guardrail fails.
No automatic retraining is implied by CONFIRMED.

6. ENTITY RELATIONSHIPS
DataDriftEntity --observedIn--> Dataset / DataWindow
DataDriftEntity --comparedAgainst--> ReferenceDistribution
DataDriftEntity --affectsFeature--> FeatureEntity
DataDriftEntity --measuredBy--> DriftMetric
DataDriftEntity --supportedBy--> EvidenceEntity
DataDriftEntity --mayCorrelateWith--> ModelDriftEntity
DataDriftEntity --mayTrigger--> Evaluation / Investigation / Alert
DataDriftEntity --resolvedBy--> MitigationAction
DataDriftEntity --loggedIn--> MonitoringHistory

7. TRI-MAPPING
SEMANTIC: drift is a time- and population-scoped shift in data distribution.
MATHEMATICAL: d(P_ref, P_current) and decision thresholds with uncertainty.
OPERATIONAL: collect -> compare -> investigate -> act -> verify.

8. MAPPING TABLE
Input batch         | I_t        | observed data for current window
Reference baseline  | K_t        | historical distribution and context
Monitoring rule     | R_t        | measurement and decision procedure
Guardrail           | B_t        | sample, privacy, quality constraints
Drift statistic     | d_j(t)     | estimated change
Alert               | alert_j    | threshold-based signal
Action              | x*_t       | chosen response

9. INFERENCE RULES
R1 IF schema incompatible THEN mark INVALID_COMPARISON; do not infer drift.
R2 IF sample inadequate THEN mark INCONCLUSIVE; collect more evidence.
R3 IF drift statistic exceeds a justified threshold AND checks pass THEN mark SUSPECTED.
R4 IF independent or repeated tests corroborate shift THEN mark CONFIRMED.
R5 IF seasonality or population changes explain shift THEN annotate CONTEXTUAL_SHIFT.
R6 IF drift is confirmed AND performance degrades THEN investigate impact; do not assume causality.
R7 IF impact is material AND remediation approved THEN run controlled mitigation.
R8 IF post-mitigation measurements meet acceptance criteria THEN mark RESOLVED.

10. MINI RECURSION ENGINE
function DRIFT_STEP(S_t, batch_t):
  validated = validate(batch_t, S_t.B)
  if not validated: return log(S_t, 'INVALID_OR_INCONCLUSIVE')
  metrics = compare(validated, reference(S_t.K), S_t.R)
  candidates = infer(metrics, S_t.R)
  permissible = filter(candidates, S_t.B)
  action = select(permissible, S_t.I, S_t.R, S_t.B, S_t.K)
  S_next = update_state(S_t, action, metrics)
  return S_next
Repeat only while authorised and within bounded resources; preserve audit history.

11. CONDITIONAL EXECUTION GUARANTEES
G1: With valid inputs, every decision records the reference window and method.
G2: No drift confirmation when minimum evidence criteria fail.
G3: Every remediation preserves a reversible or documented change path where feasible.
G4: Alerts do not themselves authorise production changes.
G5: All transitions record timestamps, provenance and decision rationale.
These are design invariants requiring implementation and testing, not guarantees of any deployed system.

12. AI SEARCH FLOW
FLOW_ID: semantic-library.ai-core.error-and-failure.data-drift-entity.v1
TITLE: Data Drift Entity Ontology
ENTITY_TYPE: AIErrorAndFailureEntity/DataDriftEntity
PURPOSE: Detect and describe changes between reference and observed data distributions.
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/data-drift-entity-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/
INPUTS: reference_data, current_data, feature_schema, monitoring_policy
OUTPUTS: drift_measurements, evidence, state, recommended_actions, audit_record
PATHWAYS: validate > baseline > compare > qualify > classify > explain > respond
SEMANTIC_EQUIVALENCE: covariate shift; input distribution shift (context-dependent, not exact synonyms)
RELATED_ENTITIES: Model Drift, Model Error, Prediction Error, Monitoring Stage, Recovery State
CONFIDENCE: contingent on sample quality, reference validity, metric and statistical assumptions
UPDATE_MODEL: append new windows; rebaseline only with explicit authorisation and audit trail

13. HOW TO READ
The entity tracks evidence of a distributional change, not proof that the model is wrong. Read the flow left to right; use the state transitions to decide whether to investigate, dismiss, mitigate or continue monitoring. Validate thresholds against the domain and avoid equating statistical significance with operational importance.

14. EXAMPLE
Reference feature: daily request length distribution over a stable 30-day period.
Current feature: request lengths over the latest 7 days.
If a chosen distribution metric exceeds a validated threshold, create a suspected drift event. Confirm only after schema, sample-size and seasonality checks. If downstream quality is unaffected, record the shift and monitor; otherwise investigate targeted remediation.

15. LIMITATIONS
Reference choice, missingness, sampling bias, multiple comparisons, dependence, temporal trends and label delay can distort drift estimates. Thresholds must be set empirically. This file is a proposed companion Flow Algebra, not a claim that the linked page contains this exact formalism.

OPEN RESEARCH: Free to use with attribution and citation to the source and authors; consult the published Open Research Licence for definitive terms.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ