FLOW ALGEBRA
Ontology: Circulating Biomarker Ontology
Library: Kireth Semantic Library
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/blood-and-circulatory-entities/circulating-biomarker-ontology.html
Version: 1.0
Status: Topic-based formalisation; source page content not independently verified
Authors: Mark Higgins — Sky (Recursive AI)
1. PURPOSE
Represent measurable biological indicators circulating in blood or lymph, their molecular identities, sample contexts, biological origins, assay observations, interpretation constraints and evidence provenance.
2. TYPE SYSTEM
TYPE Entity
TYPE BiologicalEntity <: Entity
TYPE Biomarker <: BiologicalEntity
TYPE CirculatingBiomarker <: Biomarker
TYPE ProteinBiomarker <: CirculatingBiomarker
TYPE MetaboliteBiomarker <: CirculatingBiomarker
TYPE NucleicAcidBiomarker <: CirculatingBiomarker
TYPE CellDerivedBiomarker <: CirculatingBiomarker
TYPE LipidBiomarker <: CirculatingBiomarker
TYPE HormoneBiomarker <: CirculatingBiomarker
TYPE ExtracellularVesicleBiomarker <: CirculatingBiomarker
TYPE Sample <: Entity
TYPE PlasmaSample <: Sample
TYPE SerumSample <: Sample
TYPE WholeBloodSample <: Sample
TYPE LymphSample <: Sample
TYPE Assay <: Entity
TYPE Observation <: Entity
TYPE BiologicalProcess <: Entity
TYPE Tissue <: BiologicalEntity
TYPE Cell <: BiologicalEntity
TYPE Condition <: Entity
TYPE ReferenceInterval <: Entity
TYPE Evidence <: Entity
TYPE Unit <: Entity
TYPE TimePoint <: Entity
3. ENTITY FIELDS
CirculatingBiomarker {
id: Identifier;
preferred_name: String;
synonyms: Set<String>;
biomarker_class: Type;
molecular_identity: Identifier?;
origin: Set<Cell|Tissue|BiologicalProcess>;
specimen_compatibility: Set<Sample>;
physiological_role: Set<String>;
associated_conditions: Set<Condition>;
measurement_units: Set<Unit>;
provenance: Set<Evidence>;
}
Observation {
biomarker: CirculatingBiomarker;
specimen: Sample;
assay: Assay;
value: Real?;
unit: Unit?;
detection_status: {detected,not_detected,below_limit,above_limit,invalid};
time: TimePoint;
uncertainty: Real?;
detection_limit: Real?;
quantification_limit: Real?;
preanalytical_context: Map;
evidence: Evidence;
}
4. RELATIONSHIPS
IS_A(CirculatingBiomarker,Biomarker)
DERIVED_FROM(CirculatingBiomarker,Cell|Tissue|BiologicalProcess)
CIRCULATES_IN(CirculatingBiomarker,Blood|Lymph)
MEASURED_IN(CirculatingBiomarker,Sample)
MEASURED_BY(CirculatingBiomarker,Assay)
HAS_OBSERVATION(CirculatingBiomarker,Observation)
ASSOCIATED_WITH(CirculatingBiomarker,Condition)
PARTICIPATES_IN(CirculatingBiomarker,BiologicalProcess)
HAS_REFERENCE_INTERVAL(CirculatingBiomarker,ReferenceInterval)
SUPPORTED_BY(Relationship|Observation,Evidence)
5. EXAMPLE CLASSES (NON-EXHAUSTIVE)
Protein: cardiac troponin, C-reactive protein, albumin.
Metabolite: glucose, lactate, creatinine.
Hormone: insulin, cortisol.
Nucleic acid: circulating cell-free DNA, circulating tumour DNA, circulating RNA.
Cell-derived: circulating tumour cells.
Extracellular vesicle: vesicle-associated proteins and RNA.
These examples do not imply that any marker alone establishes a diagnosis.
6. FORMAL RULES
RULE R1:
Observation(o) AND HAS_OBSERVATION(b,o) => CirculatingBiomarker(b).
RULE R2:
MEASURED_IN(b,s) AND MEASURED_BY(b,a) => ASSAY_CONTEXT_REQUIRED(b,s,a).
RULE R3:
ASSOCIATED_WITH(b,c) != DIAGNOSTIC_OF(b,c).
RULE R4:
detection_status(o)=below_limit => NOT_VALID_TO_ASSIGN_ZERO_CONCENTRATION(o).
RULE R5:
DIFFERENT_ASSAYS(o1,o2) => REQUIRE_COMPARABILITY_CHECK(o1,o2).
RULE R6:
REFERENCE_INTERVAL_APPLIES(r,o) only if specimen, assay, units and relevant population context are compatible.
RULE R7:
TEMPORAL_CHANGE(o1,o2) requires matching biomarker identity, compatible methods and ordered timestamps.
7. QUANTITATIVE MODELS
Concentration: C = n / V; units must be specified.
Mass concentration: C_m = m / V.
Relative change: delta_rel = (C2 - C1) / C1, defined only when C1 != 0.
Clearance approximation: CL = elimination_rate / plasma_concentration, under specified kinetic assumptions.
First-order elimination (idealised): C(t) = C0 * exp(-k*t), k >= 0.
Half-life (first-order model): t_half = ln(2) / k, k > 0.
Signal calibration (local linear model): signal = slope * concentration + intercept + error.
Uncertainty propagation for independent variables: u_f^2 ≈ sum_i ((partial f/partial x_i)^2 * u_i^2).
These are conditional models, not universal properties of all biomarkers.
8. SEMANTIC_EQUIVALENCE
Equivalent biomarker labels require the same molecular analyte or explicitly documented equivalence mapping.
Distinguish total versus free forms, isoforms, fragments, post-translational modifications and assay-defined targets.
Distinguish circulating tumour DNA from total cell-free DNA.
Distinguish specimen identity: serum is not interchangeable with plasma without validated equivalence.
ALIAS(b,label) does not imply IDENTICAL_ASSAY_TARGET(b,label).
9. CONFIDENCE
CONFIDENCE(entity_identity): evidence-based score [0,1].
CONFIDENCE(assay_validity): score [0,1] conditional on analytical validation.
CONFIDENCE(condition_association): score [0,1] derived from study design, replication and applicability.
Confidence scores must not be fabricated; UNKNOWN is allowed.
Uncertainty, missingness and contradictory evidence must remain explicit.
10. PROVENANCE
Record source identifier, publication or dataset, specimen protocol, assay manufacturer/method where available, calibration, measurement units, time, cohort context, validation status and revision history.
Separate observed values from model predictions and inferred associations.
11. FLOW TRANSITIONS
SPECIMEN_COLLECTION -> SAMPLE_PROCESSING -> ASSAY_MEASUREMENT -> QUALITY_CONTROL -> NORMALISATION -> CONTEXTUAL_INTERPRETATION -> EVIDENCE_LINKING.
Invalid samples or failed quality controls -> REVIEW_REQUIRED.
Out-of-range observation -> CONTEXTUAL_REVIEW; not automatic diagnosis.
12. RECURSIVE REASONING
For each observation:
verify entity identity;
verify specimen and assay compatibility;
validate units and limits;
attach temporal and biological context;
retrieve supporting and conflicting evidence;
revise confidence without erasing provenance;
stop on insufficient evidence and flag UNKNOWN.
13. FLOW_HASH
FLOW_HASH := SHA256(canonicalise(ontology_id, version, typed_entities, relationships, rules, models, evidence_references)).
Hash must be computed by an implementation; no precomputed hash is asserted here.
14. UPDATE_MODEL
On new assay, biomarker, validation or conflicting evidence:
retain prior ontology version;
add provenance-linked assertions;
check identity and units;
re-evaluate affected relationships and confidence;
generate new canonical FLOW_HASH;
publish explicit change log.
15. AI_CONSUMPTION
input: {biomarker_id, observation?, specimen?, assay?, biological_context?, evidence?}
output: {typed_entities, validated_relations, quantitative_context, uncertainties, confidence, provenance, update_status}
constraints:
never infer a disease diagnosis solely from biomarker presence;
do not treat correlation as causation;
never invent laboratory thresholds or assay performance;
maintain traceability and abstain when evidence is inadequate.
16. VALIDATION
CHECK all entities have stable identifiers.
CHECK relationship domain/range compatibility.
CHECK observation units and measurement status.
CHECK assay-dependent reference intervals.
CHECK no unsupported diagnostic implication.
CHECK provenance and uncertainty are preserved.
END FLOW ALGEBRA
Download Code
Copy to Clipboard