Skip to main content

Misclassification 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 — FLOW ALGEBRA v1.0
MISCLASSIFICATION ENTITY ONTOLOGY
Category: AI Core / Entity Graph / AI Entities / Error and Failure Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/misclassification-entity-ontology.html
Authors: Mark Anthony Higgins — Sky, Recursive AI
Prepared: 04 November 2026
Status: Companion formalisation. The source page's embedded detailed rules were not accessible; the definitions below are a proposed implementation, not a transcription.

1. PURPOSE
Represent a misclassification as a traceable discrepancy between a model-assigned class and an independently established reference class, with explicit treatment of uncertain labels, taxonomy versions, evidence, severity and correction.

2. ENTITY DEFINITION
MisclassificationEntity M = (id, sample_id, model_id, model_version, taxonomy_version, predicted_label, reference_label, prediction_score, reference_status, evidence, timestamp, error_kind, severity, resolution_state, provenance).
An error is confirmed only when the reference label is sufficiently validated and predicted_label != reference_label under the same taxonomy and decision policy. An unverified reference is a suspected discrepancy, not a confirmed error.

3. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: sample, features, prediction, reference evidence and metadata.
R_t: classification, validation, taxonomy-mapping and remediation rules.
B_t: scope, permissions, confidence thresholds, data protection and operational limits.
K_t: current taxonomy, label definitions, model lineage and previously validated cases.
E_t = expand(I_t, R_t)
V_t = {x in E_t : satisfies(x, B_t) and supported(x, K_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, feedback_t)
The argmax is a ranking heuristic unless probabilities are calibrated; it does not establish ground truth.

4. FORMAL PREDICATES
Comparable(p, y, T) := labels p and y belong to compatible versions of taxonomy T.
Validated(y, e) := evidence e meets the declared reference-validation policy.
ConfirmedMisclassification(M) := Comparable(M.predicted_label, M.reference_label, T) AND Validated(M.reference_label, M.evidence) AND M.predicted_label != M.reference_label.
SuspectedMisclassification(M) := mismatch observed AND NOT Validated(M.reference_label, M.evidence).
CorrectClassification(M) := Comparable(...) AND Validated(...) AND predicted_label = reference_label.
Unresolved(M) := taxonomy mismatch OR absent reference OR contested reference.

5. CLASSIFICATION ERROR MEASURES
For N validated comparable observations:
error_rate = (1/N) * SUM_i 1[predicted_i != reference_i]
accuracy = 1 - error_rate
C_(a,b) = SUM_i 1[reference_i = a AND predicted_i = b]
For each class c:
precision_c = TP_c/(TP_c+FP_c), when denominator > 0.
recall_c = TP_c/(TP_c+FN_c), when denominator > 0.
False positive, false negative and class-confusion classifications depend on the reference class and task formulation. Undefined denominators are reported as undefined, not zero.

6. STATE TRANSITIONS
OBSERVED -> REFERENCE_PENDING -> VALIDATED -> CONFIRMED_ERROR -> TRIAGED -> CORRECTION_PROPOSED -> VERIFIED -> CLOSED
VALIDATED -> NOT_AN_ERROR when labels agree.
REFERENCE_PENDING -> DISPUTED when evidence conflicts.
TRIAGED -> ESCALATED when high impact or automated correction is disallowed.
CORRECTION_PROPOSED -> ROLLED_BACK when verification fails.
Any state -> AUDIT_HOLD when provenance or integrity is compromised.
Transitions require a timestamp, actor, reason and evidence link. Closing a case does not itself imply a model update.

7. ENTITY RELATIONSHIPS
MisclassificationEntity --affects--> PredictionEntity
MisclassificationEntity --produced_by--> AIModelEntity
MisclassificationEntity --observed_on--> DataSampleEntity
MisclassificationEntity --compared_against--> ReferenceLabelEntity
MisclassificationEntity --evaluated_under--> TaxonomyEntity
MisclassificationEntity --supported_by--> EvidenceEntity
MisclassificationEntity --triggers--> EvaluationEntity
MisclassificationEntity --may_trigger--> ModelUpdateEntity
MisclassificationEntity --may_trigger--> HumanReviewEntity
MisclassificationEntity --recorded_in--> ErrorHistoryEntity

8. TRI-MAPPING
Semantic: model prediction differs from validated reference under a declared taxonomy.
Structural: prediction -> reference comparison -> evidence validation -> error record -> remediation decision.
Operational: detect -> verify -> classify -> prioritise -> review -> correct -> retest -> audit.

9. MAPPING TABLE
Input prediction | PredictionEntity | model output, class and score
Reference label | ReferenceLabelEntity | validated or disputed target
Taxonomy | TaxonomyEntity | class meanings and version
Evidence | EvidenceEntity | origin, reliability and validation
Error event | MisclassificationEntity | mismatch record and status
Corrective action | ModelUpdateEntity | optional, separately authorised change
Review | HumanReviewEntity | approval, rejection or escalation
Audit trail | ErrorHistoryEntity | immutable event history

10. INFERENCE RULES
R1: IF labels are incompatible THEN mark UNRESOLVED; do not count as confirmed error.
R2: IF reference is missing or disputed THEN request validation; do not assert misclassification.
R3: IF reference is validated AND labels differ THEN emit CONFIRMED_ERROR.
R4: IF reference is validated AND labels agree THEN emit NOT_AN_ERROR.
R5: IF confirmed error is high impact THEN require human review before consequential action.
R6: IF recurring errors concentrate in a class THEN flag for stratified evaluation; do not assume causation.
R7: IF proposed remediation degrades protected evaluation metrics THEN block promotion and escalate.
R8: IF correction is verified AND authorised THEN close with evidence and model version references.

11. MINI RECURSION ENGINE
function EvaluateCase(case, max_iterations):
    for iteration in 1..max_iterations:
        verify_taxonomy(case)
        verify_reference_evidence(case)
        status = apply_rules_R1_to_R8(case)
        append_audit_event(case, status, iteration)
        if status in {NOT_AN_ERROR, CLOSED, AUDIT_HOLD, ESCALATED}:
            return status
        if no_new_evidence_or_allowed_action(case):
            return UNRESOLVED
        case = apply_authorised_feedback(case)
    return REVIEW_REQUIRED
This is a descriptive algorithm specification; implementation must supply the named functions and enforce authorisation.

12. EXECUTION GUARANTEES (CONDITIONAL)
G1: Every confirmed error has a comparable prediction and validated reference.
G2: Every state change retains actor, timestamp and reason.
G3: A disputed label cannot silently become ground truth.
G4: No model deployment or rollback occurs without a separate authorised workflow.
G5: Iteration is bounded and unresolved cases are explicitly surfaced.
These properties hold only if implemented and tested with the stated validation and audit controls.

13. AI SEARCH FLOW
FLOW_ID: semantic-library.ai-core.error-and-failure.misclassification-entity.v1
TITLE: Misclassification Entity Ontology
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/misclassification-entity-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/misclassification-entity-ontology.html
PURPOSE: Identify, validate, explain, prioritise and audit classification discrepancies.
STATE_MODEL: S=(I,R,B,K); E=expand(I,R); V=filter(E,B,K); x*=argmax P(x|I,R,B,K); I'=update(I,x*,feedback)
ENTITIES: MisclassificationEntity, PredictionEntity, ReferenceLabelEntity, TaxonomyEntity, EvidenceEntity, AIModelEntity, HumanReviewEntity, ErrorHistoryEntity
PATHWAYS: prediction -> reference validation -> comparison -> triage -> review -> correction -> verification -> audit
INFERENCE_RULES: R1-R8
CONFIDENCE: distinguish prediction confidence from confidence in reference validity; record calibration status.
SEMANTIC_EQUIVALENCE: classification mistake; incorrect class assignment; class prediction error (subject to task and taxonomy).
UPDATE_MODEL: append-only audit history; versioned taxonomy, model and evaluation policy; controlled corrections.

14. HOW TO READ
Read the entity tuple as the record schema, the predicates as the confirmation criteria, the state machine as permitted lifecycle steps and R1-R8 as decision constraints. A disagreement between two model outputs is not automatically a misclassification: independent reference validation is required.

15. EXAMPLE
Prediction: class = CAT; reference: class = DOG; taxonomy: Animals-v3.
If DOG is independently validated and both classes are compatible under Animals-v3, record a confirmed misclassification. If the reference is disputed, record an unresolved discrepancy and request review instead.

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ