AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
VISUAL SCENE ONTOLOGY — FLOW ALGEBRA
Semantic Library / AI Core / Entity Graph / Computer Vision Entities
Version: 1.0 | Generated: 03 November 2026 | Language: en-GB
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/computer-vision-entities/visual-scene-ontology.html
Original page authors: Mark Anthony Higgins — Sky Recursive AI
Source copyright: Mark Anthony Higgins, 11 October 2025; revised 01 August 2026.
Status: Companion formalisation. The webpage exposes its title and AI interpretation note but not its full underlying specification; the algebra below is newly constructed, not a verbatim transcription.
1. PURPOSE
Represent a visual scene as a bounded, evidence-grounded, time-indexed graph of visible regions, objects, attributes and spatial relations. Preserve uncertainty, coordinate frames, provenance and update history. Distinguish observations from hypotheses.
2. ENTITY AND STATE MODEL
VisualScene := (scene_id, frame_id, time, image_domain, objects, regions, relations, context, evidence, uncertainty, provenance, status).
S_t = (I_t, R_t, B_t, K_t)
I_t: image/frame inputs, metadata, observations and extracted features.
R_t: typed relations among scene objects, regions and contexts.
B_t: spatial, temporal, epistemic, safety and computational boundaries.
K_t: calibrated model knowledge, ontology mappings and prior validated states.
O_t = {o_i}; o_i = (id, class_distribution, geometry, attributes, confidence, evidence_refs).
G_t = (O_t union Q_t, E_t), where Q_t contains scene/region/context nodes and E_t typed edges.
3. FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | valid(x, B_t) and supported(x, I_t, K_t)}
x*_t = argmax_(x in V_t) P(x | I_t, R_t, B_t, K_t)
S_(t+1) = update(S_t, x*_t, evidence_t, provenance_t)
This selection expression is a model-specific ranking rule, not a claim that probabilities are always calibrated. If V_t is empty, return abstain/unknown rather than fabricate a scene.
4. VISUAL SCENE CONSTRUCTION
F_t = extract_features(I_t; theta)
D_t = detect_regions(F_t; theta)
O_t = classify_and_localise(D_t, K_t)
E_t = infer_relations(O_t, geometry_t, context_t)
G_t = validate_graph(O_t, E_t, B_t)
C_t = infer_scene_context(G_t, K_t)
Scene_t = assemble(G_t, C_t, evidence_t, provenance_t)
5. SPATIAL AND SEMANTIC RELATIONS
Allowed relation types include inside, overlaps, adjacent_to, left_of, right_of, above, below, in_front_of, behind, supports, part_of and occludes.
Every relation is (subject_id, predicate, object_id, coordinate_frame, confidence, evidence_ref).
A left_of B is meaningful only within a declared coordinate frame.
Geometry overlap does not by itself establish physical support, causation or object identity.
Relations with insufficient depth information may be marked unknown.
6. TEMPORAL UPDATE AND TRACKING
Match_t = associate(O_(t-1), O_t, appearance, geometry, motion, uncertainty)
G_t = revise(G_(t-1), Match_t, new_evidence)
Keep stable IDs only where association confidence meets a declared threshold.
A changed frame may change visibility without proving an object ceased to exist.
7. UNCERTAINTY AND EVIDENCE
For each hypothesis h, retain score(h), calibration_metadata, supporting_evidence and conflicting_evidence.
Accept(h) iff score(h) >= tau_h AND validation(h, B_t) = true.
If evidence is insufficient or contradictory, emit uncertain(h) or abstain(h).
Do not equate detector confidence with verified ground truth.
8. VALIDATION RULES
V1: All referenced objects and regions exist in the scene graph.
V2: Pixel coordinates fall within declared image bounds.
V3: Geometric quantities use consistent coordinate frames and units.
V4: Relation predicates have valid domain and range types.
V5: Confidence values are finite and within [0,1] when probabilistic.
V6: Every accepted claim has a traceable observation or justified inference.
V7: Missing, occluded and unobserved are distinct states.
V8: Scene updates preserve provenance and do not silently overwrite conflicts.
V9: Identity-sensitive claims require independent authorised verification; appearance alone is insufficient.
9. INFERENCE RULES
IF a region has a supported object label THEN instantiate an object candidate.
IF two objects have validated geometry THEN derive permitted spatial relations.
IF object and relation evidence supports a scene category THEN propose scene context with confidence.
IF a proposed relation violates coordinate or type constraints THEN reject that relation.
IF temporal association is ambiguous THEN preserve multiple candidates or mark unresolved.
IF no candidate satisfies boundaries THEN return abstain with reason.
10. TRI-MAPPING
Human interpretation: A visible environment with objects and relationships.
Semantic mapping: VisualScene -> contains -> VisualObject; VisualObject -> occupies -> ImageRegion; VisualObject -> related_to -> VisualObject.
Computational mapping: Image tensor -> features -> detections -> graph -> contextual hypotheses -> validated scene record.
11. RELATIONSHIP GRAPH
VisualScene
|-- has_frame --> VideoFrame / DigitalImage
|-- contains --> VisualObject
|-- has_region --> ImageRegion
|-- has_relation --> SpatialRelation
|-- supported_by --> PerceptionEvidence
|-- scored_by --> PerceptionConfidence
|-- interpreted_by --> ComputerVisionModel
`-- evolves_into --> VisualScene(t+1)
12. EXECUTION DIAGRAM
[Acquire image/frame]
|
[Check format, bounds and provenance]
|
[Extract features and regions]
|
[Detect objects and attributes]
|
[Build spatial/semantic graph]
|
[Apply boundaries and evidence tests]
|
{Valid scene?}
/ \
yes no
| |
[Publish scene] [Revise or abstain]
|
[Store traceable state for next frame]
13. MAPPING TABLE
Input image -> DigitalImage -> pixel array and metadata
Image region -> ImageRegion -> coordinates or mask
Detected item -> VisualObject -> class, attributes and location
Spatial relation -> SceneRelation -> typed graph edge
Scene hypothesis -> SceneContext -> label with evidence and uncertainty
Output -> VisualScene -> validated scene graph and provenance
14. CONDITIONAL EXECUTION GUARANTEE
If input validation, relation typing, provenance retention and declared acceptance thresholds all succeed, the system guarantees a well-formed, traceable scene representation under these rules. It does NOT guarantee correct recognition, complete scene understanding, calibrated probabilities, or real-world truth. Unmet conditions produce explicit errors or abstentions.
15. AI SEARCH FLOW
FLOW_NAME: VisualSceneOntology
FLOW_VERSION: 1.0
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI (source attribution)
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/computer-vision-entities/visual-scene-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/computer-vision-entities/visual-scene-ontology.html
PURPOSE: Build evidence-grounded visual scene representations for semantic search and reasoning.
STATE_MODEL: S_t=(I_t,R_t,B_t,K_t)
ENTITIES: VisualScene, VisualObject, ImageRegion, SpatialRelation, SceneContext, PerceptionEvidence, PerceptionConfidence, VideoFrame
PATHWAYS: acquire > validate > extract > detect > relate > contextualise > verify > publish
MINI_RECURSION_ENGINE: revise scene graph from subsequent evidence while preserving state and provenance.
INFERENCE_RULES: apply typed spatial relations and calibrated evidence checks; abstain on unsupported claims.
CONFIDENCE: per-hypothesis score with threshold, calibration status and provenance.
SEMANTIC_EQUIVALENCE: equivalent scene descriptions only when object/relation meaning and boundary context are preserved.
FLOW_HASH: compute SHA-256 over canonical published file bytes at deployment; not precomputed.
UPDATE_MODEL: versioned append-or-revise with conflict trace and source timestamp.
16. HOW TO READ / IMPLEMENTS
Treat the scene graph as a structured hypothesis about an observed image, not as the world itself. Implement schema checks, frame-specific coordinate handling, evidence-linked graph edges, uncertainty-aware filtering, and versioned temporal updates. The equations describe the formal processing contract; implementation algorithms may differ if they preserve the declared constraints.
END OF FLOW