Skip to main content

Spectrogram Entity Ontology

Speech and Audio AI Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 03 November 2026
Audio Overview
SEMANTIC LIBRARY — SPECTROGRAM ENTITY ONTOLOGY
FLOW ALGEBRA COMPANION FORMALISATION v1.0
Date: 03 November 2026
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/speech-and-audio-ai-entities/spectrogram-entity-ontology.html
Original page credits: Mark Anthony Higgins — Sky Recursive AI
Original page date: 11 October 2025; revised 01 August 2026.
Formalisation: companion interpretation, not a verbatim reproduction of the embedded specification (not exposed in the retrieved page).

1. PURPOSE
Represent a spectrogram as a provenance-linked, time-frequency entity derived from an audio signal under a declared transform, window, hop, scale and calibration. Permit validation, feature extraction, relationships and qualified inference without treating an image of a spectrogram as the original audio.

2. ENTITY STATE
S = (I,R,B,K)
I = input evidence: waveform x[n], sample rate fs, channels, timestamps, source ID.
R = relationships: derivedFrom, hasTimeBin, hasFrequencyBin, overlaps, encodesEnergy, supportsFeature.
B = boundaries: valid sample interval, Nyquist range, privacy/consent scope, transform and numerical limits.
K = knowledge: transform metadata, units, calibration, provenance, quality flags and confidence.
Spectrogram entity G = (id, source_id, X, A, T, F, M, P, Q)
X = complex STFT array; A = displayed magnitude/power/log representation; T = time axis; F = frequency axis; M = method and parameters; P = provenance; Q = quality and validation state.

3. FORMAL FLOW
I_t = {x[n], fs, channels, timestamps, metadata}
E_t = expand(I_t,R) = candidate segments, transforms, features and semantic links.
V_t = {z in E_t : B(z)=true AND valid(z,K)=true}
z* = argmax_{z in V_t} P(z | I_t,R,B,K)
I_(t+1) = update(I_t,z*,evidence,provenance)
No probability is asserted without a defined scoring model. Empty V_t yields an abstain/error state.

4. SIGNAL TO SPECTROGRAM
For finite waveform x[n], window w[n], length N and hop H:
X(m,k) = SUM_(n=0)^(N-1) x[n+mH] w[n] exp(-j 2 pi k n/N)
A_mag(m,k) = |X(m,k)|
A_pow(m,k) = |X(m,k)|^2
A_dB(m,k) = 20 log10(max(A_mag(m,k),epsilon)/A_ref)
For power, use 10 log10(max(A_pow,epsilon)/P_ref).
Time coordinate t_m = mH/fs (plus explicit frame offset, if any).
Frequency coordinate f_k = k fs/N for one-sided real-signal STFT bins.
Frequency resolution bin spacing Delta_f = fs/N; time step Delta_t = H/fs.
Nyquist limit f_N = fs/2.
A Mel spectrogram is a separately declared filterbank transform of a power or magnitude spectrum; its bins are not uniform in Hz.

5. CONSTRAINTS AND VALIDATION
V1: fs > 0; N >= 2; 1 <= H <= N; samples finite or explicitly flagged.
V2: timestamps monotonic; segment boundaries inside source duration.
V3: window type, normalisation, padding and centre convention recorded.
V4: frequency axes match one-sided/two-sided transform configuration.
V5: distinguish magnitude, power, decibel and Mel units; never interchange without conversion.
V6: log conversion uses positive reference and epsilon; preserve calibration.
V7: channel mixing and resampling recorded; no implicit speaker identity claims.
V8: all downstream features retain source and transform lineage.
V9: masked, clipped, silent and missing regions explicitly flagged.
V10: model outputs are hypotheses; confidence needs empirical calibration.

6. INFERENCE RULES
IF waveform valid AND transform metadata complete THEN construct SpectrogramEntity.
IF energy concentration spans stable harmonics THEN propose HarmonicStructureFeature, not a guaranteed pitch.
IF transient broadband energy appears THEN propose TransientCandidate with uncertainty.
IF low energy is observed THEN propose LowEnergyRegion, not necessarily silence in the source environment.
IF two spectrograms use incompatible scales THEN require normalisation before comparison.
IF provenance missing OR transform invalid THEN reject or quarantine derived claims.
IF no admissible feature survives validation THEN return INSUFFICIENT_EVIDENCE.

7. RELATIONSHIP GRAPH
AudioSignal --segmentedInto--> AudioSegment
AudioSegment --transformedInto--> SpectrogramEntity
SpectrogramEntity --contains--> TimeFrequencyBin
SpectrogramEntity --supports--> AcousticFeature
AcousticFeature --maySupport--> SoundEventHypothesis
SpectrogramEntity --derivedUsing--> STFTConfiguration
SpectrogramEntity --carries--> ProvenanceRecord
SoundEventHypothesis --has--> ConfidenceAssessment

8. TRI-MAPPING
Physical: pressure fluctuations -> microphone electrical signal -> sampled waveform.
Mathematical: discrete samples -> windowed Fourier transform -> time-frequency array.
Semantic: spectrogram entity -> acoustic features -> qualified event or speech hypotheses.
Mapping must preserve units, uncertainty, transform assumptions and source lineage.

9. EXECUTION DIAGRAM
[Audio source]
    |
    v
[Check consent, format, fs and integrity]
    |
    v
[Select segment / resample with provenance]
    |
    v
[Window + STFT + representation]
    |
    v
[Validate axes, units, numerical values]
    |
    +--> invalid --> [Error / abstain / remediation]
    |
    v
[Create SpectrogramEntity]
    |
    v
[Extract qualified features]
    |
    v
[Link evidence + confidence + provenance]
    |
    v
[Publish validated result]

10. MAPPING TABLE
Input waveform -> I -> raw sample evidence
Window/hop/FFT -> B,K -> transform specification
Time-frequency bins -> E -> expanded candidate features
Validity checks -> V -> admissible features
Feature selection -> argmax or rule selection -> scored hypothesis
Derived metadata -> I_(t+1) -> updated evidence graph

11. CONDITIONAL EXECUTION GUARANTEE
Under finite input, bounded transform parameters and terminating validators, the transformation produces either a finite validated spectrogram entity or a structured failure/abstention. This is a conditional property of the specified pipeline, not a guarantee of correct semantic interpretation, speech recognition, or sound-event identification.

12. AI SEARCH FLOW
FLOW_ID: semantic-library.speech-audio.spectrogram-entity.v1
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI (source-page credit)
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/speech-and-audio-ai-entities/spectrogram-entity-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/speech-and-audio-ai-entities/spectrogram-entity-ontology.html
PURPOSE: Interpret and validate spectrogram entities with explicit provenance.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: AudioSignal, AudioSegment, SpectrogramEntity, TimeFrequencyBin, AcousticFeature, TransformConfiguration, ConfidenceAssessment.
PATHWAYS: acquire > validate > segment > transform > validate > infer > cite.
MINI_RECURSION_ENGINE: revise transform or segment only when a declared quality failure is detected; bounded retries; log each revision.
INFERENCE_RULES: section 6.
CONFIDENCE: uncalibrated scores must not be presented as probabilities.
SEMANTIC_EQUIVALENCE: compare only representations with compatible definitions, units and provenance.
FLOW_HASH: calculate SHA-256 of canonical published TXT bytes after final editorial approval; not precomputed here.
UPDATE_MODEL: versioned, provenance-preserving, never silently overwrite a published interpretation.

13. HOW TO READ AND IMPLEMENT
Read left to right: signal evidence -> mathematical transform -> validated semantic entities. Implement using a deterministic DSP library, recording sample rate, transform settings, channel handling, axes, references and provenance. Test with synthetic sine waves, impulses, silence, clipping and sample-rate changes. For each inferred claim, keep the supporting bins/features and a confidence or abstention rationale.

14. SCOPE NOTE
The linked public HTML exposes the title, author/date information and an AI interpretation note, but not the complete embedded formal specification. This TXT is an original, clearly labelled companion formalisation for the Semantic Library; verify against the full source specification before treating it as authoritative.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ