Skip to main content

Microscope Ontology

Measurement Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 12 October 2026
Audio Overview
FLOW ALGEBRA
MICROSCOPE ONTOLOGY — PHYSICAL ENTITIES / MEASUREMENT ENTITIES
Version: 1.0 | Date: 2026-10-12 | Locale: en-GB
Authors: Mark Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/physical-entities/measurement-entities/microscope-ontology.html
Status: Subject-based formalisation; source page content not independently verified.

01. PURPOSE
flow MicroscopeOntology v1.0
  domain: PhysicalEntity > MeasurementEntity > MeasurementInstrument > Microscope
  intent: represent microscopes, their components, imaging mechanisms, observations, measurements and evidence provenance.
  invariant: an instrument configuration, specimen and acquisition context must accompany each derived measurement.

02. TYPED ENTITIES
  entity Microscope <: MeasurementInstrument {id: URI, modality: ImagingModality, manufacturer?: Text, model?: Text, status: InstrumentState}
  entity OpticalMicroscope <: Microscope
  entity ElectronMicroscope <: Microscope
  entity ScanningProbeMicroscope <: Microscope
  entity ConfocalMicroscope <: OpticalMicroscope
  entity FluorescenceMicroscope <: OpticalMicroscope
  entity StereoMicroscope <: OpticalMicroscope
  entity CompoundMicroscope <: OpticalMicroscope
  entity TransmissionElectronMicroscope <: ElectronMicroscope
  entity ScanningElectronMicroscope <: ElectronMicroscope
  entity AtomicForceMicroscope <: ScanningProbeMicroscope
  entity ScanningTunnellingMicroscope <: ScanningProbeMicroscope
  entity Specimen {id: URI, preparation: Text, material?: Text, biological?: Boolean}
  entity Objective {id: URI, magnification: PositiveReal, numericalAperture?: Real, immersionMedium?: Text}
  entity Detector {id: URI, type: Text, responseModel?: URI}
  entity IlluminationSource {id: URI, wavelengthNm?: PositiveReal, sourceType: Text}
  entity Stage {id: URI, position: Vector3, calibrated: Boolean}
  entity Image {id: URI, pixels: Matrix, scale?: Quantity, acquisitionTime: Timestamp}
  entity CalibrationRecord {id: URI, referenceStandard: URI, uncertainty: Quantity, validUntil?: Timestamp}
  entity Observation {id: URI, instrument: URI, specimen: URI, output: URI, timestamp: Timestamp}
  entity Measurement {id: URI, measurand: Text, value: Quantity, uncertainty?: Quantity, traceability?: URI}
  entity AcquisitionConfiguration {objective?: URI, illumination?: URI, detector?: URI, settings: Map, environment?: Map}
  enum ImagingModality = brightfield | darkfield | phaseContrast | differentialInterferenceContrast | fluorescence | confocal | electronTransmission | electronScanning | atomicForce | scanningTunnelling | other
  enum InstrumentState = operational | calibrating | maintenance | unavailable | retired

03. SEMANTIC RELATIONSHIPS
  is_a(Microscope, MeasurementInstrument)
  measures(Microscope, SpecimenProperty)
  images(Microscope, Specimen)
  has_component(Microscope, Objective | Detector | IlluminationSource | Stage)
  uses_modality(Microscope, ImagingModality)
  configured_by(Observation, AcquisitionConfiguration)
  produces(Observation, Image)
  derives_from(Measurement, Image | Observation)
  calibrated_by(Microscope, CalibrationRecord)
  traceable_to(CalibrationRecord, ReferenceStandard)
  has_uncertainty(Measurement, Quantity)
  temporally_precedes(CalibrationRecord, Observation)

04. TYPE AND VALIDATION RULES
  require microscope.id, specimen.id, observation.timestamp
  require objective.magnification > 0
  require 0 < -objective.numericalAperture <= n_medium where applicable
  require image.scale > 0 when reporting dimensional measurements
  require finite(measurement.value) and measurement.uncertainty >= 0 when uncertainty is given
  reject unit-incompatible arithmetic
  warn if calibration expired or missing
  distinguish optical magnification from spatial resolution

05. INSTRUMENT CLASSIFICATION
  classify(m) -> modality, energySource, detectorType, geometry, applicationDomain
  optical -> photon-based imaging
  electron -> electron-beam-based imaging, with modality-specific preparation and operating conditions
  scanningProbe -> local probe-sample interaction and scan reconstruction
  note: categories can overlap; fluorescence and confocal are techniques, not necessarily mutually exclusive device classes.

06. IMAGE ACQUISITION FLOW
  flow AcquireImage(m: Microscope, s: Specimen, c: AcquisitionConfiguration) -> Result<Image, Error>
    validate(m.status == operational)
    validate_compatibility(m, s, c)
    verify_safety_and_preparation(m, s)
    verify_calibration(m, c)
    align_and_focus(m, s)
    configure_detector_and_illumination(c)
    raw := acquire_signal(m, s, c)
    img := reconstruct_or_capture(raw, c)
    attach_metadata(img, m.id, s.id, c, now(), calibration_reference(m))
    return img

07. MEASUREMENT FLOW
  flow MeasureFeature(img: Image, region: Region, measurand: Text) -> Measurement
    require calibrated_scale(img)
    region_px := segment(img, region)
    result := transform_pixel_measurement(region_px, img.scale, measurand)
    uncertainty := propagate_uncertainty(segmentation, calibration, sampling, distortion)
    return Measurement(value=result, uncertainty=uncertainty, traceability=img.calibration)

08. RESOLUTION AND MAGNIFICATION
  optical_lateral_resolution_approx = 0.61 * wavelength / numerical_aperture
  condition: conventional diffraction-limited widefield optical model; wavelength and result use consistent length units.
  effective_sample_pixel_size = detector_pixel_pitch / total_lateral_magnification
  condition: conventional projected imaging with known optical train.
  distinguish nominal magnification, digital display enlargement, sampling interval and actual resolved feature size.
  electron and scanning-probe resolution require modality-specific models; do not apply optical approximation universally.

09. CALIBRATION AND TRACEABILITY
  flow Calibrate(m, standard, protocol) -> CalibrationRecord
    require certified_or_documented(standard)
    capture_reference_measurements(m, standard, protocol)
    estimate_scale_bias_distortion_and_uncertainty()
    validate_against_acceptance_criteria(protocol)
    issue_record(m.id, standard.id, uncertainty, time, validity)
  rule: invalid calibration -> measurement status = provisional, not automatically false.

10. IMAGE PROCESSING
  flow ProcessImage(raw: Image, pipeline: Pipeline) -> Image
    validate(pipeline.operations)
    corrected := apply(raw, pipeline)
    preserve(raw.id, pipeline.version, parameters, provenance)
    annotate_processing_artifacts(corrected)
    return corrected
  operations: denoise, backgroundCorrection, registration, deconvolution, segmentation, stitching, contrastAdjustment
  invariant: derived images retain a link to immutable raw acquisition data.

11. UNCERTAINTY MODEL
  combined_standard_uncertainty = sqrt(sum_i((sensitivity_i * standard_uncertainty_i)^2))
  condition: uncorrelated input quantities and first-order approximation.
  correlated_case: include covariance terms 2 * sensitivity_i * sensitivity_j * covariance_ij.
  contributors: scaleCalibration, focus, pointSpreadFunction, drift, vibration, specimenPreparation, segmentation, detectorNoise.
  report: value, unit, uncertainty, coverageFactor if used, method and confidence context.

12. QUALITY CONTROL
  checks: focusScore, illuminationUniformity, detectorSaturation, drift, contamination, artefacts, signalToNoise, calibrationValidity
  flow ValidateObservation(o) -> QualityReport
    evaluate(checks)
    assign(pass | caution | fail)
    record evidence and thresholds
    return report
  rule: threshold values depend on validated instrument, method and application; do not invent universal pass values.

13. FAULT DETECTION
  possibleFaults: focusFailure, alignmentDrift, detectorFailure, stageBacklash, illuminationInstability, vacuumFault, probeDamage
  infer faultCandidate from correlated symptoms and instrument diagnostics
  require independent confirmation before definitive fault attribution.

14. SPATIAL AND TEMPORAL CONTEXT
  attach coordinateReferenceFrame, stageCoordinates, pixelCoordinates, transformationMatrix
  attach acquisitionTimestamp, duration, instrumentClockSource
  transformations must preserve declared units and coordinate handedness.

15. SEMANTIC EQUIVALENCE
  SEMANTIC_EQUIVALENCE:
    microscope == microscopy_instrument [context: general]
    light_microscope ~= optical_microscope [context: broad classification]
    TEM == transmission_electron_microscope [context: abbreviation]
    SEM == scanning_electron_microscope [context: abbreviation]
    AFM == atomic_force_microscope [context: abbreviation]
  non_equivalence:
    magnification != resolution
    image != measurement
    contrast != structural_truth
    pixel_size != resolving_power

16. INFERENCE RULES
  if m.modality == electronTransmission then infer requires_electron_optics(m)
  if observation.has_scale and valid_calibration then infer dimension_measurement_eligible(observation)
  if detector_saturated then infer intensity_quantification_unreliable(observation)
  if uncorrected_stage_drift then infer spatial_registration_risk(observation)
  if no_calibration then infer quantitative_claim_requires_review(observation)
  if image_processed then require provenance_link(image, raw_image)
  rule confidence is evidence-dependent and must not be fabricated.

17. CONFIDENCE
  CONFIDENCE:
    scope: claims and inferences, not instrument identity
    inputs: calibrationValidity, signalQuality, methodValidation, sampleAdequacy, uncertainty, provenanceCompleteness
    representation: score?: Real[0,1], interval?: Interval, method: Text, evidence: URI[]
    policy: null when no validated confidence estimation exists; never present arbitrary numeric confidence as empirical probability.

18. KNOWLEDGE GRAPH MAPPING
  nodes: Microscope, Specimen, Objective, Detector, IlluminationSource, Image, Observation, Measurement, CalibrationRecord
  edges: is_a, has_component, images, produces, derives_from, calibrated_by, traceable_to, has_uncertainty
  canonicalIdentifiers: persistent URI per entity
  provenance: sourceURL, creator, timestamp, version, evidenceReferences
  exportTargets: RDF-like triples, JSON-LD, typed property graph

19. FLOW_HASH
  FLOW_HASH:
    algorithm: SHA-256
    canonicalise: UTF-8, stable key ordering, normalised line endings, explicit version
    inputs: ontologyDefinition, rules, dependencies, version
    excludes: volatile execution timestamps unless intentionally part of the signed record
    output: lowercase hexadecimal digest calculated at publication or execution time
    status: not computed in this conceptual specification

20. UPDATE_MODEL
  UPDATE_MODEL:
    strategy: versioned immutable revisions
    triggers: new imaging modality, calibration revision, terminology change, validated scientific correction
    actions: validate_schema, assess_backward_compatibility, migrate_mappings, recalculate_flow_hash, log_change
    safeguard: retain historical observation and calibration provenance.

21. AI_CONSUMPTION
  AI_CONSUMPTION:
    modes: entityExtraction, ontologyAlignment, measurementInterpretation, retrieval, reasoning, qualityAssessment
    mandatoryContext: modality, specimen, acquisitionSettings, calibrationStatus, processingHistory
    constraints: no fabricated measurement, no inferred precision beyond calibration, no unsupported diagnostic certainty
    outputs: typed facts, provenance-linked relationships, uncertainty-aware claims

22. EXECUTION EXAMPLE (SCHEMATIC)
  input: microscope=M1, specimen=S1, configuration=C1
  image := AcquireImage(M1, S1, C1)
  quality := ValidateObservation(image.observation)
  if quality == pass and calibrated_scale(image):
    measurement := MeasureFeature(image, region=R1, measurand="feature_width")
    publish(measurement, provenance, uncertainty)
  else:
    flag_for_review(image)

23. VALIDATION TESTS
  test positive_magnification: objective.magnification > 0
  test scale_required_for_length: measurement(length) -> calibrated_scale
  test modality_compatibility: acquisition -> compatible(m, specimen, configuration)
  test immutable_raw: processedImage -> linksTo(rawImage)
  test calibration_warning: expiredCalibration -> caution
  test provenance_required: publishedMeasurement -> traceableObservation

24. SCOPE AND LIMITATIONS
  This specification describes ontology entities and computational relationships, not a validated laboratory operating procedure.
  Physical models are approximate and conditional. Instrument-specific performance must be established by appropriate calibration and evidence.
  Source page structure and wording have not been verified for this version.

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