Skip to main content

Lesion Ontology

Pathological Biological Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 27 October 2026
Audio Overview
FLOW ALGEBRA — LESION ONTOLOGY
Version: 1.0 | Date: 2026-10-27 | Encoding: UTF-8
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/pathological-biological-entities/lesion-ontology.html
Status: Companion formalisation; not a verbatim extraction of hidden page code.
Purpose: Model lesions as observable or inferred localised structural/functional abnormalities, with explicit evidence, uncertainty, time and provenance.

01. DOMAIN
Entity Lesion := abnormal region or alteration of tissue, organ, or anatomical structure.
A lesion is a finding, not necessarily a disease, malignancy or diagnosis.
Types := {inflammatory, infectious, traumatic, vascular, degenerative, neoplastic, immune-mediated, metabolic, congenital, other, undetermined}.
Morphology := {focal, multifocal, diffuse, nodular, ulcerative, cystic, plaque-like, mass-forming, erosive, other, unknown}.
Behaviour := {benign, malignant, indeterminate, not-applicable, unknown}; assign only with suitable evidence.

02. ENTITY SCHEMA
Lesion L := (id, host, anatomical_site, tissue, onset, observation_time, morphology, size, extent, distribution, status, candidate_aetiologies, evidence, confidence, provenance).
Evidence E := (id, modality, observation, timestamp, source, reliability, limitations).
Assessment A := (lesion_id, claim, supporting_evidence, contradicting_evidence, confidence, reviewer, timestamp).
Relations := {located_in, affects, manifests_as, associated_with, caused_by, detected_by, sampled_by, progresses_to, resolves_to, overlaps, distinct_from}.
Each relation has evidence, direction, confidence and timestamp.

03. STATE MODEL
S_t := (I_t, R_t, B_t, K_t)
I_t := lesion observations and current candidate interpretations.
R_t := anatomy, pathology, temporal and evidence relationships.
B_t := boundaries: patient/site identity, evidence availability, uncertainty and clinical safety.
K_t := accepted biological knowledge and provenance-qualified constraints.
E_t := expand(I_t, R_t)
V_t := {x in E_t | valid(x, B_t, 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, new_evidence)
Stop when no justified update remains, evidence is insufficient, or review is required.
Probability notation denotes a calibrated scoring target, not an automatically known numerical probability.

04. STRUCTURAL INVARIANTS
INV-01: Every lesion must have a stable identifier and anatomical context.
INV-02: Observation, interpretation and confirmed diagnosis are separate claim types.
INV-03: Lesion morphology alone does not prove aetiology or malignancy.
INV-04: Temporal change requires at least two comparable time-stamped observations.
INV-05: Missing evidence must not be converted into negative evidence.
INV-06: Correlation or co-occurrence must not be silently promoted to causation.
INV-07: Conflicting observations are retained with their provenance.
INV-08: No inference may exceed the specificity supported by evidence.
INV-09: Unknown and indeterminate remain valid terminal states.
INV-10: Every material claim is traceable to an observation or explicit rule.

05. ENTITY GRAPH
Lesion --located_in--> AnatomicalStructure
Lesion --affects--> Tissue
Lesion --detected_by--> ExaminationOrImaging
Lesion --sampled_by--> Biopsy
Lesion --associated_with--> DiseaseOrDisorder [non-causal by default]
Lesion --manifests_as--> ClinicalFinding
Lesion --has_morphology--> MorphologicalDescriptor
Lesion --has_evidence--> Evidence
Lesion --has_state_at--> TemporalObservation
Lesion --has_assessment--> Assessment

06. TRANSFORMATIONS
T_observe: raw observation -> evidence record, preserving modality and limits.
T_localise: evidence + anatomy -> proposed lesion location.
T_characterise: evidence -> morphology/size/distribution descriptors.
T_compare: compatible observations at t1,t2 -> change descriptor.
T_hypothesise: findings + knowledge -> ranked candidate explanations.
T_validate: candidate + constraints -> supported / unsupported / unresolved.
T_update: validated evidence -> revised state, preserving history.

07. INFERENCE RULES
R01 IF abnormality is documented at an anatomical site THEN create candidate Lesion entity.
R02 IF two observations refer to the same site and identity AND are comparable THEN evaluate temporal change.
R03 IF a tissue sample has a definitive pathology report THEN attach report conclusion with provenance; do not overwrite contradictory evidence.
R04 IF lesion is associated with a disease THEN create associated_with, not caused_by, unless causation is independently supported.
R05 IF location or identity is ambiguous THEN withhold lesion merging.
R06 IF modality cannot reliably resolve a feature THEN label that feature unknown.
R07 IF findings conflict THEN flag for review and retain competing interpretations.
R08 IF evidence supports only a broad lesion class THEN do not infer a narrower class.
R09 IF no qualifying evidence exists THEN abstain from a diagnostic assertion.
R10 IF evidence changes THEN re-evaluate affected downstream claims.

08. MINI RECURSION ENGINE
INPUT: observations O, anatomical graph G, knowledge K, constraints B.
INITIALISE: S_0 := (O, G, B, K).
REPEAT:
  candidates := expand(S_t.I, S_t.R)
  candidates := filter(candidates, respects_invariants AND evidence_supported)
  scored := rank(candidates, evidence_quality, consistency, specificity)
  IF scored is empty: RETURN unresolved_with_provenance
  selected := highest_supported(scored)
  S_(t+1) := update_without_erasing_history(S_t, selected)
UNTIL fixed_point OR review_required OR iteration_limit
OUTPUT: lesion entity graph, assessments, unresolved questions, audit trail.

09. TRI-MAPPING
Natural language: "A localised abnormal tissue finding was observed."
Entity mapping: Lesion(L1) --located_in--> Site(S1); Lesion(L1) --detected_by--> Evidence(E1).
Formal mapping: observed(E1,L1) AND site(E1,S1) -> candidate_lesion(L1,S1).
Natural language: "The lesion enlarged on follow-up."
Entity mapping: L1 --has_state_at--> O1(t1), O2(t2).
Formal mapping: same_lesion(O1,O2) AND comparable(O1,O2) AND size(O2)>size(O1) -> increased_size(L1).

10. AI SEARCH FLOW
flow "LesionOntology" v1.0
AUTHORS: ["Mark Anthony Higgins", "Sky Recursive AI"]
SOURCE: "https://kirethresearch.org/booksai-core/entity-graph/biological-entities/pathological-biological-entities/lesion-ontology.html"
CITATION_BACKLINK: SOURCE
PURPOSE: "Evidence-aware lesion entity identification and graph reasoning"
STATE_MODEL: "S=(I,R,B,K); E=expand(I,R); V=filter(E,B,K); I'=update(I,argmax_supported(V))"
ENTITIES: [Lesion, AnatomicalStructure, Tissue, Evidence, Assessment, DiseaseOrDisorder, TemporalObservation]
PATHWAYS: [observe, localise, characterise, compare, hypothesise, validate, update]
INFERENCE_RULES: [R01,R02,R03,R04,R05,R06,R07,R08,R09,R10]
CONFIDENCE: "Record per-claim calibration, evidence quality and unknown states; never fabricate certainty"
SEMANTIC_EQUIVALENCE: "Map synonymous lesion descriptions only where anatomy and meaning agree"
FLOW_HASH: "Compute SHA-256 over canonical published bytes at deployment; not precomputed"
UPDATE_MODEL: "Append evidence; version interpretations; invalidate dependent unsupported claims"

11. EXECUTION GUARANTEE AND LIMITS
Guaranteed by specification: traceability checks, invariant enforcement, explicit abstention, preservation of conflicting evidence.
Not guaranteed: medical correctness, clinical diagnosis, causal identification, calibrated probabilities without a validated model, or complete ontology coverage.
Human clinical review is required for patient-specific diagnostic or treatment decisions.

12. VALIDATION TESTS
TEST-01: Unknown aetiology remains unknown without causal evidence.
TEST-02: Two unrelated lesions at the same site are not automatically merged.
TEST-03: A single measurement cannot establish growth.
TEST-04: A pathology conclusion retains report date and origin.
TEST-05: Conflicting imaging reports remain visible.
TEST-06: Missing biopsy is not interpreted as negative biopsy.
TEST-07: Any unsupported malignant label is rejected.
TEST-08: Each output assertion has provenance.

END FLOW ALGEBRA — LESION ONTOLOGY
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ