Skip to main content

Convolutional Neural Network Ontology

Neural Network Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 28 October 2026
Audio Overview
FLOW ALGEBRA — CONVOLUTIONAL NEURAL NETWORK ONTOLOGY
Version: 1.0 | 28 October 2026 | UTF-8
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/neural-network-entities/convolutional-neural-network-ontology-2.html
Status: Original companion formalisation. The complete source ontology is not exposed in the accessible page text; this file does not claim to reproduce it verbatim.

1. PURPOSE
Define a convolutional neural network (CNN) as a typed computational entity with local receptive fields, shared convolutional kernels, feature hierarchies, optional pooling, and task-specific prediction heads. Formalise forward execution, training, interpretation, and validity conditions.

2. ENTITY AND STATE MODEL
CNN = (I, R, B, K)
I: input tensor and task request.
R: typed operations and composition relations.
B: boundaries (tensor shapes, numerical validity, permitted operations, resource and safety limits).
K: learned parameters, architecture metadata, training provenance and domain knowledge.
State S_t = (X_t, H_t, Theta_t, A_t, Q_t), where X is input, H intermediate feature tensors, Theta trainable parameters, A architecture and Q quality/provenance metadata.
Entities: InputTensor, ConvolutionKernel, FeatureMap, Activation, NormalisationLayer, PoolingLayer, ResidualConnection, DenseHead, Prediction, Target, Loss, Gradient, Optimiser, Dataset, ModelVersion.
Relations: consumes, convolves, activates, normalises, pools, composes, predicts, compares_with, differentiates, updates, validates.

3. FORMAL FORWARD ALGEBRA
For input X in R^(N x C_in x H x W) and kernels W in R^(C_out x C_in x kH x kW), with stride s, padding p and dilation d:
H_out = floor((H + 2pH - dH*(kH-1) - 1)/sH + 1)
W_out = floor((W + 2pW - dW*(kW-1) - 1)/sW + 1)
Z[n,o,i,j] = b[o] + sum_c sum_u sum_v W[o,c,u,v] * X_padded[n,c,i*sH+u*dH,j*sW+v*dW]
Note: this is the cross-correlation convention commonly called convolution in deep-learning frameworks.
H^(l+1) = Pool_l( Act_l( Norm_l( Conv_l(H^l; Theta_l) ) ) ) where optional operators may be identities.
Y_hat = Head(H^L; Theta_head).
Classification: P(y=k|X) = softmax(logits(X))[k].
Regression: Y_hat = f_Theta(X), with task-defined output units.

4. TRAINING AND PARAMETER UPDATE
Empirical objective: J(Theta) = (1/N) sum_i L(f_Theta(X_i), y_i) + lambda * Omega(Theta).
Gradient: G_t = grad_Theta J(Theta_t), computed by chain rule / backpropagation.
Update: Theta_(t+1) = Optimiser(Theta_t, G_t, eta_t).
Validation and test data remain separate from fitting and hyperparameter selection as appropriate.
Training is conditional on valid data, a differentiable computational path where required, and an optimiser with defined semantics.

5. FLOW ALGEBRA RECURSION
E_t = expand(I_t, R) : construct admissible candidate layer operations and feature paths.
V_t = {x in E_t | B(x) = true} : retain shape-valid, numerically valid and permitted paths.
x*_t = argmax_(x in V_t) P(x | I_t, R, B, K) : select a path under a declared scoring model, when such a probability model exists.
I_(t+1) = update(I_t, x*_t, observations_t).
For fixed architecture inference, selection reduces to deterministic execution; argmax is not required. For architecture search, the score and search space must be specified.

6. INFERENCE RULES
R1: If an input has the declared shape and dtype, it may enter the CNN pipeline.
R2: If kernel, stride, dilation and padding yield positive integral output dimensions, the convolution edge is shape-valid.
R3: Shared kernels applied over spatial positions produce feature maps with spatially local receptive fields.
R4: Nonlinear activation follows convolution where specified; it must not be silently assumed.
R5: Pooling changes spatial aggregation according to its explicit window, stride and reduction rule.
R6: Residual addition requires compatible tensor shapes or an explicit projection.
R7: A prediction is interpretable only with its task, label mapping, calibration status and model version.
R8: A gradient update is permitted only when optimisation constraints and parameter ownership are satisfied.
R9: Out-of-distribution, corrupted or low-quality inputs must trigger a declared uncertainty or review pathway when required by the deployment policy.

7. TRI-MAPPING
Semantic: CNN -> convolutional architecture -> feature extraction -> task-specific prediction.
Mathematical: tensors -> local linear operators -> nonlinear transforms -> loss/gradients -> parameter updates.
Operational: validate input -> apply layers -> generate prediction -> validate output -> record provenance.

8. MAPPING TABLE
InputTensor | X | observed sample | input validation
Kernel | W | local shared filter | convolution
FeatureMap | H^l | learned representation | layer output
Activation | sigma | nonlinear transform | activation stage
Pooling | Pool | spatial reduction | pooling stage
Head | Head(H^L) | task mapping | output stage
Loss | L | error objective | training stage
Gradient | grad J | update direction | optimisation stage
Boundary | B | admissibility constraints | guard stage

9. SYSTEM DIAGRAM
[Input X] -> [Validate] -> [Convolution + Bias] -> [Normalisation?]
         -> [Activation] -> [Pooling?] -> [Repeat/Residual?]
         -> [Prediction Head] -> [Output Checks] -> [Prediction + Provenance]
Training only: [Prediction + Target] -> [Loss] -> [Backpropagation] -> [Optimiser] -> [Updated Parameters]

10. SAFETY AND QUALITY INVARIANTS
INV1: Tensor dimensions and dtypes match every operator contract.
INV2: All numerical outputs are finite where the task requires finite values.
INV3: Training-only operations do not leak into inference unexpectedly.
INV4: Labels, preprocessing, weights and model versions remain consistent.
INV5: No claim of calibrated probability without calibration evidence.
INV6: Protected, confidential or restricted data follow the declared data-governance policy.
INV7: Uncertain or invalid outputs are not represented as verified facts.
INV8: Model changes are versioned, tested and reversible when deployment requires it.

11. CONDITIONAL EXECUTION GUARANTEE
Given valid tensor contracts, finite supported operations, available parameters, and a terminating finite architecture, forward execution returns an output tensor or an explicit validation/runtime failure. This is a structural execution condition, not a guarantee of accuracy, robustness, fairness or safety.

12. AI SEARCH FLOW
FLOW_ID: CNN_ENTITY_ONTOLOGY_V1
ENTITY_TYPE: NeuralNetwork/ConvolutionalNeuralNetwork
SOURCE_URL: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/neural-network-entities/convolutional-neural-network-ontology-2.html
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
PURPOSE: Retrieve, reason about and validate convolutional neural network entities and transformations.
INPUTS: task, input_tensor, architecture, parameters, constraints, optional labels.
OUTPUTS: prediction, feature representations where authorised, validity report, provenance.
PATHWAYS: shape_validation -> convolution -> activation -> optional_pooling -> head -> output_validation.
MINI_RECURSION_ENGINE: expand -> filter_by_B -> evaluate -> update, with bounded depth and termination.
SEMANTIC_EQUIVALENCE: CNN ~ convolutional neural network; ConvNet ~ CNN (context-dependent).
CONFIDENCE: Report separately for predictive scores, calibration and evidence quality; never equate raw softmax with guaranteed correctness.
UPDATE_MODEL: Version architecture, weights, preprocessing, datasets and evaluation results independently.
CITATION_BACKLINK: source URL above.
FLOW_HASH: Generate SHA-256 from final published UTF-8 bytes if required; no hash is asserted here.

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