AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
RECALL METRIC ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Evaluation Entities
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/evaluation-entities/recall-metric-ontology.html
Formalisation date: 03 November 2026
Status: Extended independent formalisation; the public page identifies the ontology but does not expose its full embedded specification.
01. PURPOSE
Represent recall (sensitivity, true positive rate) as a reproducible evaluation entity with explicit positive-class definition, counting rules, population boundaries, aggregation, uncertainty, and provenance.
02. ENTITY IDENTITY
ENTITY: RecallMetric
TYPE: EvaluationMetric / ClassificationMetric
ALIASES: Sensitivity; TruePositiveRate (TPR); HitRate (context-dependent)
RELATED: EvaluationTask, EvaluationDataset, EvaluationExample, EvaluationRun, ConfusionMatrix, PrecisionMetric, F1Metric, Threshold, ClassLabel, ModelOutput.
03. CORE STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = evaluated labelled instances and model predictions at step t.
R_t = classification and counting rules.
B_t = class, dataset, threshold, weighting and inclusion boundaries.
K_t = cumulative counts, metric estimates, uncertainty and provenance.
S_(t+1) = Update(S_t, observation_(t+1)) subject to Validate(B_t,R_t).
04. FUNDAMENTAL COUNTS
For a designated positive class c:
TP_c = sum_i 1[y_i=c AND yhat_i=c]
FN_c = sum_i 1[y_i=c AND yhat_i!=c]
P_c = TP_c + FN_c
Recall_c = TP_c/P_c if P_c>0; otherwise UNDEFINED.
All counts are non-negative integers for unweighted single-label data.
Recall_c lies in [0,1] when defined.
05. BINARY CONFUSION MATRIX
Actual positive, predicted positive -> TP.
Actual positive, predicted negative -> FN.
Actual negative, predicted positive -> FP.
Actual negative, predicted negative -> TN.
Recall = TP/(TP+FN). False positives and true negatives do not appear in this formula.
06. WEIGHTED RECALL
For non-negative example weights w_i:
TP_w = sum_i w_i*1[y_i=c AND yhat_i=c]
FN_w = sum_i w_i*1[y_i=c AND yhat_i!=c]
Recall_w = TP_w/(TP_w+FN_w) when denominator > 0.
Weighting policy must be recorded and fixed before comparison.
07. THRESHOLD FLOW
For score p_i(c) and decision threshold tau:
yhat_i(c;tau) = 1[p_i(c)>=tau].
Recall_c(tau) = TP_c(tau)/(TP_c(tau)+FN_c(tau)).
For fixed scores and labels, lowering tau cannot reduce binary recall, but may increase false positives.
08. MULTICLASS FLOW
Compute per-class one-versus-rest TP_c and FN_c.
MacroRecall = (1/C)*sum_c Recall_c only when all included class recalls are defined; otherwise use an explicitly documented absent-class policy.
MicroRecall = sum_c TP_c / sum_c (TP_c+FN_c), when denominator > 0.
SupportWeightedRecall = sum_c P_c*Recall_c / sum_c P_c, over supported classes.
For single-label multiclass evaluation with every class included and one prediction per example, micro recall equals overall accuracy.
09. MULTILABEL FLOW
Treat each (example, label) pair as a binary decision.
Per-label recall uses that label's positive support.
Micro recall pools TP and FN across labels; macro recall averages defined per-label recalls.
Document label universe, absent-label policy and decision thresholds.
10. RECURSIVE UPDATE
At step t, maintain K_t=(TP_t,FN_t,N_t,metadata_t).
On validated example e_(t+1):
TP_(t+1)=TP_t+1[y=c AND yhat=c]
FN_(t+1)=FN_t+1[y=c AND yhat!=c]
N_(t+1)=N_t+1
Recall_(t+1)=TP_(t+1)/(TP_(t+1)+FN_(t+1)) when defined.
Counts for other classes are maintained separately.
11. FLOW ALGEBRA
E_t = Expand(I_t,R_t)
V_t = {e in E_t : Valid(e,B_t)}
C_t = CountTPFN(V_t,c)
M_t = Recall(C_t)
K_(t+1) = Merge(K_t,C_t,M_t,Provenance(V_t))
S_(t+1) = (I_(t+1),R_t,B_t,K_(t+1))
Never silently mix counts from overlapping datasets or incompatible boundaries.
12. TRI-MAPPING
Semantic: RecallMetric -> measures retrieval of actual positives.
Mathematical: Recall_c = TP_c/(TP_c+FN_c).
Operational: Label -> Predict -> Validate -> Count -> Divide -> Report.
13. ENTITY RELATIONSHIPS
RecallMetric --evaluates--> ModelPrediction
RecallMetric --uses--> GroundTruthLabel
RecallMetric --computedFrom--> TruePositiveCount
RecallMetric --computedFrom--> FalseNegativeCount
RecallMetric --conditionedOn--> PositiveClass
RecallMetric --conditionedOn--> DecisionThreshold
RecallMetric --belongsTo--> EvaluationRun
RecallMetric --reportedWith--> DatasetVersion
RecallMetric --comparedAgainst--> BaselineMetric
14. INFERENCE RULES
R1: IF TP>=0 AND FN>=0 AND TP+FN>0 THEN recall=TP/(TP+FN).
R2: IF TP+FN=0 THEN recall=UNDEFINED, not automatically 0 or 1.
R3: IF FN=0 AND TP>0 THEN recall=1.
R4: IF TP=0 AND FN>0 THEN recall=0.
R5: IF identical evaluation boundaries and TP rises while FN falls at fixed positive support THEN recall cannot fall.
R6: IF dataset, label, threshold or counting policy changes THEN mark comparison as potentially non-equivalent.
R7: IF ground truth is unknown THEN do not count as TP or FN without an explicit missing-label protocol.
15. UNCERTAINTY AND CONFIDENCE
For n=TP+FN positive reference cases, recall is an observed proportion k/n.
Report n and k, not just the percentage.
For independent representative Bernoulli cases, a Wilson interval may describe sampling uncertainty; clustered, dependent or shifted data require suitable alternatives.
Confidence intervals do not correct systematic label error, selection bias or distribution shift.
16. QUALITY AND VALIDITY BOUNDARIES
B1: Ground truth provenance is known.
B2: Positive class and label taxonomy are unambiguous.
B3: Evaluation examples do not leak into model training in prohibited ways.
B4: Predictions correspond to the same evaluation examples.
B5: Missing and abstained predictions have a documented policy.
B6: All compared systems use equivalent datasets and scoring conventions.
B7: No claim of deployment reliability follows from recall alone.
17. SAFETY INTERPRETATION
High recall means fewer missed actual positives on the evaluated sample; it does not imply high precision, calibration, fairness, or low overall risk. In safety-critical applications, inspect false negatives, false positives, prevalence, subgroup performance, distribution shift and operating thresholds together.
18. MAPPING TABLE
Input labels -> y_i -> Reference positives.
Predictions -> yhat_i -> Detection outcomes.
Positive class -> c -> Class boundary.
True positives -> TP -> Correctly detected positives.
False negatives -> FN -> Missed positives.
Support -> P=TP+FN -> Denominator.
Recall -> TP/P -> Sensitivity.
Threshold -> tau -> Operating point.
Run metadata -> provenance -> Reproducibility.
19. TEXT DIAGRAM
[Evaluation Dataset]
|
v
[Ground Truth + Predictions]
|
v
[Class / Threshold / Boundary Validation]
|
v
[TP and FN Counts] ---> [Support Check: TP+FN > 0?]
| YES | NO
v v
[Compute Recall] [Undefined]
|
v
[Uncertainty + Provenance]
|
v
[Evaluation Result]
20. EXECUTION PRECONDITIONS
Require finite input collection or bounded stream; identifiable ground truth and predictions; declared class/label policy; fixed inclusion and weighting rules; traceable dataset/model versions.
21. EXECUTION POSTCONDITIONS
Output metric value or explicit undefined status; TP and FN; support; aggregation and threshold policies; run and dataset identifiers; caveats about sampling and domain applicability.
22. EXECUTION GUARANTEE — CONDITIONAL
For finite validated inputs and deterministic counting rules, this flow terminates and computes the defined empirical recall exactly up to numerical representation. It does not guarantee accurate labels, representative data, generalisation, causal validity or model safety.
23. AI SEARCH FLOW
FLOW_NAME: RecallMetricOntology
FLOW_VERSION: 1.0
LANGUAGE: en-GB
PURPOSE: Retrieve and reason about recall as an evaluation metric.
ENTITIES: RecallMetric, TruePositive, FalseNegative, PositiveClass, Threshold, EvaluationDataset, EvaluationRun.
INPUTS: GroundTruth, Predictions, ClassPolicy, OptionalWeights, OptionalThreshold.
PATHWAY: Validate -> Count -> CheckSupport -> Calculate -> Aggregate -> Report.
OUTPUTS: RecallValue, DefinedFlag, TP, FN, Support, Metadata, UncertaintyNotes.
SEMANTIC_EQUIVALENCE: Recall = Sensitivity = True Positive Rate for the same positive class and evaluation policy.
CONFIDENCE: Report empirical measurement uncertainty separately from model confidence.
UPDATE_MODEL: Recompute when labels, predictions, thresholds, policies or dataset version change.
FLOW_HASH: Compute from canonical UTF-8 file bytes at publication; not preassigned.
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/evaluation-entities/recall-metric-ontology.html
24. WORKED EXAMPLE
Reference positives=100; correctly detected positives=84; missed positives=16.
TP=84, FN=16, Recall=84/(84+16)=0.84 (84%).
This says 84% of reference positives were found; precision cannot be inferred without FP.
25. CROSS-ONTOLOGY LINKS
Evaluation Metric; Precision Metric; Accuracy Metric; F1 Score; Benchmark Score; Evaluation Result; Evaluation Dataset; Evaluation Example; Evaluation Run; Model Output; Classification Model.
26. LIMITATIONS
Recall is conditional on actual positives. Its denominator does not include negatives. Undefined-support handling, weighting, class aggregation and data sampling can materially change interpretation. Results must not be presented as universal performance guarantees.
27. SOURCE AND ATTRIBUTION
Primary ontology page: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/evaluation-entities/recall-metric-ontology.html
Original research attribution: Mark Anthony Higgins — Sky, Recursive AI.
This TXT is an additional technical formalisation, not a verbatim extraction of the page's hidden or embedded AI specification.
Open research use: cite the original source and authors; consult the published Open Research Licence for exact terms.
END OF FLOW