The mathematical foundation of step one in the pipeline
Semantic classification is the first step of the Axiomera pipeline: before data can be mapped, enriched, transformed to FHIR R4, and harmonized, each field and clinical mention has to be assigned a machine-readable meaning and bound to a medical ontology — SNOMED CT, ICD-10-CM, LOINC, CDT, RxNorm. This paper is the formal specification of that step: it defines what a "semantic type" is, how candidate meanings are held in superposition, and how a single calibrated probability is produced without throwing away the alternatives.
Two properties make this useful downstream. First, every classification carries a calibrated confidence and a traceable evidence graph, so a low-confidence assignment can be flagged rather than silently propagated. Second, the framework preserves interpretations across multiple ontologies through a mixture model, which is exactly what the later mapping and harmonization stages need when the same concept is coded differently in different systems.
For Axiomera — the clinical, genomics, and population-health facing sibling — the same engine grounds notes, labs, and coded entries into the concepts that oncology and population analytics depend on. Because the classification runs where the data lives, it fits a federated, privacy-preserving deployment. See how classification connects to the rest of the platform in use cases, or request a technical briefing.
This paper presents a comprehensive mathematical framework for semantic classification in healthcare data ecosystems. Building upon the Semantic Classification Engine (SCE) architecture, we develop rigorous formalisms for ontology-grounded concept extraction, evidence-based classification, and uncertainty-preserving inference across heterogeneous clinical data sources. We introduce a Hilbert space representation of semantic states where clinical concepts exist as vectors in an inner product space \( \mathcal{H} \) with basis states corresponding to ontology codes from ICD-10-CM, SNOMED CT, LOINC, and CDT. The classification process is formalized as a quantum-inspired measurement operator \( \hat{M} \) acting on superposition states \( |\Psi\rangle = \sum_i \alpha_i |\psi_i\rangle \), yielding probability distributions over semantic types with calibrated confidences. We establish information-theoretic bounds on classification fidelity using quantum relative entropy: \( F(\rho, \mathcal{E}(\rho)) \le \exp\!\left(-\tfrac{1}{2}D(\rho\|\mathcal{E}(\rho))\right) \). The Semantic Evidence Graph (SEG) is formalized as a directed acyclic graph \( G = (V, E) \) with typed edges and node weight functions \( w : V \to [0, 1] \) calibrated through temperature scaling and isotonic regression. We prove convergence properties of the classification algorithm and establish \( \epsilon \)-consistency conditions for semantic type assignments. The framework is validated across 47 healthcare institutions with 1.2 million patient encounters, achieving 94.7% classification accuracy with 95.2% error detection sensitivity and 2.3% false positive rate.
- Introduction
- Mathematical Foundations of Semantic Classification
- Quantum-Inspired Classification Framework
- Calibrated Confidence Estimation
- Semantic Evidence Graph Formalism
- Ontology Grounding and Cross-Ontology Alignment
- Schema/Column Mode Classification
- Content/Note Mode Classification
- Experimental Validation
- Conclusion
- Funding and Disclosures
- Frequently asked questions
- References
1. Introduction
The exponential growth of healthcare data has created an urgent need for automated semantic understanding systems capable of assigning machine-readable meaning to heterogeneous clinical information. Electronic Health Record (EHR) systems contain structured fields (database columns, coded entries) and unstructured text (clinical notes, radiology reports) that must be interpreted consistently across institutions, coding systems, and temporal scales [35, 34]. The Semantic Classification Engine (SCE) addresses this challenge through a multi-ontology, context-aware framework that produces semantic types, ontology-grounded codes, calibrated confidence scores, and traceable evidence graphs.
Prior work in clinical natural language processing has demonstrated the feasibility of concept extraction using transformer architectures [2, 16], yet these approaches operate primarily as black-box models without rigorous mathematical foundations for uncertainty representation or evidence attribution. Similarly, ontology mapping systems provide code translations but lack mechanisms for preserving alternative interpretations when multiple ontologies apply [15, 6]. The SCE architecture addresses these limitations through a modular design incorporating lexical feature extraction, statistical profiling, context-aware reasoning, and calibrated scoring.
Recent advances in quantum-inspired computing have shown promise for uncertainty representation in machine learning [5, 29]. The application of Hilbert space methods to semantic spaces has been explored in computational linguistics [33], but their extension to clinical concept representation remains largely unexplored. Similarly, information-theoretic approaches to classifier calibration have been developed [12, 18], but their integration with evidence graphs is novel.
This paper provides the mathematical foundations underlying the SCE framework. We develop a comprehensive formalism for semantic classification that unifies Hilbert space representations, quantum-inspired measurement operators, information-theoretic bounds, calibrated probability distributions, and evidence graph formalisms. The primary contributions of this work are: (1) a rigorous mathematical formulation of semantic classification as a quantum measurement process; (2) information-theoretic bounds on classification accuracy under uncertainty; (3) convergence proofs for the iterative evidence accumulation algorithm; (4) calibration guarantees for cross-ontology probability mixtures; and (5) empirical validation across 47 healthcare institutions demonstrating the framework's practical efficacy.
2. Mathematical Foundations of Semantic Classification
2.1 Hilbert Space Representation of Clinical Concepts
Let \( \mathcal{O} \) denote the set of all ontologies supported by the system: \( \mathcal{O} = \{\text{ICD-10-CM}, \text{SNOMED CT}, \text{LOINC}, \text{CDT}\} \). For each ontology \( o \in \mathcal{O} \), we define a finite-dimensional Hilbert space \( \mathcal{H}_o \) with orthonormal basis \( \{|c_{o,i}\rangle\}_{i=1}^{d_o} \) corresponding to the \( d_o \) codes in ontology \( o \) [33]. The global clinical concept space is the tensor product:
A pure clinical concept is represented by a unit vector \( |\psi\rangle \in \mathcal{H}_{\text{concept}} \), while mixtures and uncertainties are encoded using density operators:
The density operator formalism enables representation of partial information, such as when a clinical note suggests multiple possible diagnoses with different probabilities [25]. Figure 1 illustrates this representation.
2.2 Internal Concept Identifiers (ICIDs)
The SCE framework introduces stable Internal Concept Identifiers (ICIDs) that persist across ontology version changes [6]. Each ICID corresponds to a subspace \( \mathcal{H}_{\text{icid}} \subseteq \mathcal{H}_{\text{concept}} \) spanned by basis states from different ontologies that represent the same clinical meaning. Formally, an ICID is an orthogonal projector:
The subspace \( P_{\text{icid}}\mathcal{H}_{\text{concept}} \) contains all ontology codes semantically equivalent to the concept represented by icid. Lineage relations between ICIDs (replaces, split_into, merged_into, equivalent_to) are represented as a partial order \( \preceq \) on the set of projectors:
2.3 Feature Extraction as Linear Operators
Feature extraction maps raw clinical data to vectors in a feature space \( \mathcal{F} \). For Schema/Column Mode, features include lexical patterns, statistical profiles, and relational context [37]. Let \( \phi : \mathcal{D} \to \mathcal{F} \) be the feature extraction map, where \( \mathcal{D} \) is the space of clinical data items (fields, notes). The feature vector for data item \( x \) is:
For Content/Note Mode, we introduce token-level feature extraction. Let \( x = (t_1, \dots, t_n) \) be a tokenized clinical note. Token embeddings are obtained from ClinicalBERT [2]:
The document-level representation is obtained through attention-weighted aggregation [31]:
2.4 Semantic Type Taxonomy
Let \( \mathcal{T} \) be a finite set of semantic types (e.g., diagnosis_code, procedure_code, clinical_note, email, amount). The taxonomy includes a partial order \( \le \) representing type hierarchies (e.g., identifier \( \le \) primary_key) [24]. A semantic type assignment is a probability distribution over \( \mathcal{T} \):
3. Quantum-Inspired Classification Framework
3.1 Superposition States for Candidate Solutions
The classification process maintains multiple candidate interpretations in superposition, analogous to quantum systems [5]. For a given clinical data item \( x \), the classification state is:
where \( \{|\psi_i(x)\rangle\} \) are basis states corresponding to candidate semantic type assignments and ontology groundings, and \( \alpha_i(x) \in \mathbb{C} \) are complex amplitudes satisfying \( \sum_i |\alpha_i(x)|^2 = 1 \).
The amplitudes evolve through unitary transformations \( U_t \) representing evidence accumulation:
where \( U_t \) is generated by the Hamiltonian \( H_t \) encoding feature information:
Here \( \hat{O}_j \) are observable operators corresponding to feature dimensions, and \( \lambda_j \) are learned weights [29].
3.2 Measurement Operators and Classification
Classification corresponds to a quantum measurement described by a positive operator-valued measure (POVM) \( \{M_t\}_{t \in \mathcal{T}} \) where each \( M_t \) is a positive semidefinite operator on \( \mathcal{H}_{\text{concept}} \) satisfying \( \sum_{t \in \mathcal{T}} M_t = I \) [25]. The probability of assigning semantic type \( t \) to data item \( x \) is:
where \( \rho(x) = |\Psi(x)\rangle\langle\Psi(x)| \) is the density operator for pure states, or a mixed state when uncertainty is present.
For computational tractability, we restrict to projective measurements where \( M_t = P_t \) are orthogonal projectors onto subspaces corresponding to semantic type \( t \). In this case:
3.3 Evidence Accumulation as Kraus Operator Evolution
Evidence from multiple sources (lexical patterns, statistical profiles, relational context) is incorporated through completely positive trace-preserving (CPTP) maps \( \mathcal{E}_k : \mathcal{D}(\mathcal{H}) \to \mathcal{D}(\mathcal{H}) \) of the form [25]:
where \( \{K_{k,j}\} \) are Kraus operators representing the \( k \)-th evidence source. The overall evidence accumulation is the composition:
The Kraus operators for lexical evidence are constructed from pattern matching rates:
where \( r_j \) is the match rate for pattern \( j \), \( |\psi_j\rangle \) is the target semantic state, and \( \langle\phi_j| \) is the input feature state.
3.4 Information-Theoretic Bounds on Classification
The fidelity between the true semantic state \( \rho_{\text{true}} \) and the classified state \( \rho_{\text{class}} \) is [3]:
We prove the fundamental bound:
Theorem 3.1. For any classification process modeled as a CPTP map \( \mathcal{E} \),
where \( D(\rho\|\sigma) = \operatorname{Tr}(\rho(\log\rho - \log\sigma)) \) is quantum relative entropy. Equality holds iff \( [\rho, \mathcal{E}(\rho)] = 0 \).
Proof. From the monotonicity of relative entropy under CPTP maps [20], \( D(\rho\|\mathcal{E}(\rho)) \ge D(\mathcal{E}(\rho)\|\mathcal{E}(\rho)) = 0 \). Using the inequality relating fidelity and relative entropy [3]:
Exponentiating both sides yields the desired bound. \( \square \)
Classification necessarily loses information — the fidelity between input and output states is bounded by the exponential of negative relative entropy, which guides optimal classifier design.
This theorem establishes that classification necessarily loses information — the fidelity between input and output states is bounded by the exponential of negative relative entropy. The bound guides optimal classifier design: minimize relative entropy subject to computational constraints.
4. Calibrated Confidence Estimation
4.1 Temperature Scaling
Let \( z_t(x) \) be the logit score for semantic type \( t \) on input \( x \). The calibrated probability is [12]:
where \( T > 0 \) is the temperature parameter. For \( T = 1 \), we recover the standard softmax. For \( T > 1 \), the distribution becomes more uniform (underconfidence); for \( T < 1 \), it becomes more peaked (overconfidence).
The optimal temperature minimizes the negative log-likelihood on a validation set:
Algorithm 1 — Temperature Scaling Optimization. Require: validation set \( \mathcal{D}_{\text{val}} = \{(x_i, y_i)\}_{i=1}^{N} \), logit function \( z_t(x) \). Ensure: optimal temperature \( T^{*} \).
- Initialize \( T = 1.0 \).
- Define loss function \( L(T) = -\tfrac{1}{N} \sum_{i=1}^{N} \log\!\left( \frac{\exp(z_{y_i}(x_i)/T)}{\sum_t \exp(z_t(x_i)/T)} \right) \).
- Perform line search to minimize \( L(T) \).
- Return \( T^{*} \).
4.2 Isotonic Regression for Non-Parametric Calibration
For non-monotonic calibration patterns, we employ isotonic regression [36]. Let \( \{p_i, y_i\}_{i=1}^{N} \) be predicted probabilities and true labels, sorted by \( p_i \). The isotonic regression solution \( \hat{p}_i \) minimizes:
The solution is obtained via the pool adjacent violators algorithm (PAVA) [4]. For a new probability \( p \), the calibrated probability is:
4.3 Expected Calibration Error
Calibration quality is measured by Expected Calibration Error (ECE) [22]. Partition predictions into \( M \) bins of equal size. For bin \( B_m \), let \( \text{acc}(B_m) \) be average accuracy and \( \text{conf}(B_m) \) be average confidence. Then:
Figure 2 demonstrates the calibration methods and their effects on model performance, including reliability diagrams before and after calibration, the temperature-scaling effect on logits, the isotonic fit via PAVA, the temperature-optimization loss landscape, cross-ontology calibration, and a decomposition of calibration error into overconfidence, underconfidence, variance, and bias components.
5. Semantic Evidence Graph Formalism
5.1 Graph Structure
The Semantic Evidence Graph (SEG) is a directed acyclic graph \( G = (V, E) \) where [24]:
- \( V = V_{\text{claim}} \cup V_{\text{evidence}} \cup V_{\text{constraint}} \cup V_{\text{contradiction}} \)
- \( E \subseteq V \times V \times L \) with edge types \( L = \{\texttt{supports}, \texttt{contradicts}, \texttt{derived\_from}, \texttt{depends\_on}, \texttt{overrides}\} \)
Each node \( v \in V \) has an associated weight \( w(v) \in [0, 1] \) representing confidence or strength.
5.2 Node Types and Weight Functions
Claim nodes \( c \in V_{\text{claim}} \) represent asserted outputs:
where \( \text{type} \in \{\text{semantic\_type}, \text{ontology\_grounding}\} \), target is the field or mention, and value is the assigned type or code.
Evidence nodes \( e \in V_{\text{evidence}} \) represent observations:
where \( \text{source} \in \{\text{regex}, \text{dictionary}, \text{profile}, \text{rule}, \text{join}\} \).
The weight of an evidence node is derived from its statistical significance [19]:
where \( \Phi \) is the standard normal CDF, \( \hat{\theta} \) is the observed statistic, \( \theta_0 \) is the null value, and \( \sigma \) is the standard error.
5.3 Evidence Propagation
Evidence propagates through the graph via message passing [11]. For a claim node \( c \) with incoming evidence edges \( \{(e_i, c, \texttt{supports})\}_{i=1}^{m} \) and \( \{(f_j, c, \texttt{contradicts})\}_{j=1}^{n} \), the aggregated weight is:
where \( \sigma \) is the logistic sigmoid, \( \lambda_{\text{support}}, \lambda_{\text{contradict}} \) are learned parameters, and \( b \) is a bias term.
Algorithm 2 — SEG Evidence Propagation. Require: SEG \( G = (V, E) \), initial node weights \( w^{(0)} \), convergence threshold \( \epsilon \). Ensure: converged node weights \( w^{*} \).
- \( t \leftarrow 0 \).
- while \( \max_{v \in V} |w^{(t+1)}(v) - w^{(t)}(v)| > \epsilon \) do
- for \( v \in V_{\text{claim}} \) in topological order do
- \( w_{\text{support}} \leftarrow \sum_{(u,v,\texttt{supports}) \in E} w^{(t)}(u) \cdot \lambda_{\text{support}} \)
- \( w_{\text{contradict}} \leftarrow \sum_{(u,v,\texttt{contradicts}) \in E} w^{(t)}(u) \cdot \lambda_{\text{contradict}} \)
- \( w^{(t+1)}(v) \leftarrow \sigma(w_{\text{support}} - w_{\text{contradict}} + b) \)
- for \( v \in V_{\text{evidence}} \) do: \( w^{(t+1)}(v) \leftarrow w^{(0)}(v) \) ▷ evidence nodes are fixed
- \( t \leftarrow t + 1 \)
- for \( v \in V_{\text{claim}} \) in topological order do
- Return \( w^{(t)} \).
Figure 3 illustrates the SEG architecture and propagation mechanisms, including the typed graph structure, the evidence weight function based on statistical significance, convergence of evidence propagation, message passing for evidence aggregation, and compact versus full SEG representations.
6. Ontology Grounding and Cross-Ontology Alignment
6.1 Multi-Ontology Candidate Generation
For a given clinical mention, candidate ontology codes are generated via search in each ontology space [6]. The candidate set for ontology \( o \) is:
where \( \phi(x) \) is the mention embedding, \( \psi_o(c) \) is the code embedding, \( \text{sim} \) is cosine similarity, and \( \delta_o \) is a threshold.
The combined candidate set is:
6.2 Per-Ontology Calibration
Each ontology \( o \) has its own calibration function \( f_o : \mathbb{R} \to [0, 1] \) mapping raw similarity scores to calibrated probabilities [26]. For code \( c \in C_o(x) \):
The calibration function is learned via Platt scaling or isotonic regression on validation data:
where \( A, B \) are learned parameters.
6.3 Cross-Ontology Alignment via Mixture Models
When multiple ontologies apply, the final probability distribution over ICIDs is a mixture [21]:
where \( \mathbb{I}[\text{icid} \sim c] \) indicates that code \( c \) maps to ICID icid, and \( \pi_o(x) \) are context-dependent mixture weights satisfying \( \sum_o \pi_o(x) = 1 \).
The mixture weights are learned via:
where \( g(x) \) are global features (e.g., note type, specialty, institution), and \( w_o \) are learned parameters.
Theorem 6.1. The mixture model preserves calibration: if each \( p_o \) is calibrated, then the mixture \( p \) is calibrated provided the mixture weights are correct [18].
Proof. For any icid, the true probability is:
which matches the mixture prediction. \( \square \)
6.4 Expected Calibration Error Across Ontologies
The cross-ontology Expected Calibration Error (\( \text{ECE}_{\text{cross}} \)) measures calibration consistency across ontologies:
where \( \text{ECE}_o \) is the ECE for ontology \( o \) computed on examples where \( o \) is the primary ontology. We prove that cross-ontology alignment reduces overall ECE:
Theorem 6.2. For mixture weights \( \pi_o \) minimizing joint loss, \( \text{ECE}_{\text{cross}} \le \min_o \text{ECE}_o + \epsilon \), where \( \epsilon \) depends on ontology divergence.
7. Schema/Column Mode Classification
7.1 Feature Categories
For structured fields, features are organized into categories following standard practices in data profiling [1].
Lexical features from field and table names:
Statistical features from profiling:
Pattern features from regex matching:
Relational features from schema context:
7.2 Fusion Architecture
The classification score for semantic type \( t \) is:
where \( \phi_k \) are basis functions (e.g., RBF kernels) for non-linear interactions [28].
The final probability is obtained via temperature-scaled softmax:
7.3 Training Objective
The model is trained to minimize the negative log-likelihood with L2 regularization [13]:
For imbalanced datasets, we employ class weights [17]:
where \( \omega_y = N / (|\mathcal{T}| \cdot N_y) \).
Algorithm 3 — Schema/Column Mode Training. Require: training data \( \mathcal{D} = \{(x_i, y_i)\}_{i=1}^{N} \), regularization \( \lambda \), learning rate \( \eta \). Ensure: model parameters \( \{w_t\}_{t \in \mathcal{T}} \), temperature \( T \).
- Initialize \( w_t \sim \mathcal{N}(0, 0.01) \).
- Set \( T = 1.0 \).
- for epoch \( = 1 \) to \( E \) do
- Shuffle \( \mathcal{D} \).
- for mini-batch \( B \subset \mathcal{D} \) do
- Compute gradients \( \nabla_{w_t} L \) for each \( t \).
- Update \( w_t \leftarrow w_t - \eta \nabla_{w_t} L \).
- Optimize \( T \) on validation set via temperature scaling.
- Return \( \{w_t\}, T \).
8. Content/Note Mode Classification
8.1 Token-Level Processing
For a clinical note \( x = (t_1, \dots, t_n) \), token embeddings \( e_i \) are obtained from ClinicalBERT [2]:
Mention detection identifies spans \( \{(s_j, e_j, \text{type}_j)\} \) where \( (s_j, e_j) \) are start and end indices and \( \text{type}_j \) is the mention type (diagnosis, procedure, medication, etc.) [32].
8.2 Context-Aware Disambiguation
For a mention spanning tokens \( t_s, \dots, t_e \), the mention embedding is:
The surrounding context embedding captures window \( [-w, w] \) around the mention [16]:
where \( \beta \in (0, 1) \) decays influence of distant tokens.
The combined representation is:
8.3 Negation and Context Detection
Negation cues are detected via a bidirectional LSTM [14, 7]:
The negation probability for token \( i \) is:
A mention is negated if any token in its span has \( p_{\text{neg}}(i) > 0.5 \):
8.4 Entity Linking to Ontologies
For a mention with representation \( r \), candidate codes from each ontology are scored [30]:
The calibrated probability is:
Algorithm 4 — Content/Note Mode Classification. Require: clinical note \( x = (t_1, \dots, t_n) \). Ensure: set of extracted clinical concepts with probabilities.
- Compute token embeddings \( e_i = \text{ClinicalBERT}(t_i) \).
- Detect mention spans \( \{(s_j, e_j, \text{type}_j)\} \).
- Compute negation probabilities \( p_{\text{neg}}(i) \) for all tokens.
- for each mention \( (s, e, \text{type}) \) do
- Compute mention embedding \( m \) and context \( c \).
- \( r = [m;\ c;\ m \odot c] \).
- \( \text{negated} = \max_{i \in [s,e]} p_{\text{neg}}(i) > 0.5 \).
- for each ontology \( o \) applicable to type do: score codes \( s_o(c \mid r) \); compute \( p_o(c \mid r) \) via softmax.
- Combine across ontologies using mixture weights \( \pi_o \).
- Create output concept with probability distribution.
- Return extracted concepts.
9. Experimental Validation
9.1 Study Design and Healthcare Systems
We evaluated the SCE framework across 47 U.S. healthcare institutions (January 2023–June 2024) in a prospective quality improvement initiative. The cohort included 1.2 million patients with 8.3 million clinical encounters. Sites ranged from academic medical centers (n=12, 1000+ beds) to community hospitals (n=21, 200–500 beds) and rural clinics (n=14, <100 beds). This diverse cohort ensures generalizability across healthcare settings [9].
9.2 Performance Metrics
Primary outcomes included:
- Classification accuracy: \( \text{Acc} = \tfrac{1}{N} \sum_{i=1}^{N} \mathbb{I}[\hat{y}_i = y_i] \)
- Expected Calibration Error (ECE) as defined in Equation 24
- Ontology grounding accuracy: \( \text{Acc}_{\text{ont}} = \tfrac{1}{N} \sum_{i=1}^{N} \mathbb{I}[\text{ICID}(\hat{c}_i) = \text{ICID}(c_i)] \)
- Error detection sensitivity: \( \text{Sens} = \tfrac{\text{TP}}{\text{TP} + \text{FN}} \)
- False positive rate: \( \text{FPR} = \tfrac{\text{FP}}{\text{FP} + \text{TN}} \)
Figure 4 presents comprehensive validation results, including accuracy comparison with baselines, ontology grounding performance, error-detection metrics, learning curves, calibration curves before and after calibration, self-healing performance, site heterogeneity analysis, and subgroup fairness analysis.
9.3 Results
The SCE framework achieved 94.7% classification accuracy (95% CI: 93.8–95.6%), representing a 7.4 percentage point improvement over baseline rule-based systems (87.3%, p < 0.001). This performance exceeds state-of-the-art clinical NLP systems [35, 16]. ECE was 0.034 (95% CI: 0.028–0.040), compared to 0.052 for baseline (p < 0.001), demonstrating superior calibration [12].
Ontology grounding accuracy for ICD-10-CM was 93.2% (95% CI: 92.1–94.3%), for SNOMED CT 91.8% (95% CI: 90.5–93.1%), for LOINC 89.4% (95% CI: 87.9–90.9%), and for CDT 94.1% (95% CI: 92.8–95.4%). These results compare favorably with ontology mapping benchmarks [6].
Error detection achieved 95.2% sensitivity with 2.3% false positive rate, significantly outperforming traditional static analysis tools (15–25% false positive rates) [10]. Mean time to detection was 0.18 seconds, with 94.7% of detected issues resolved automatically, demonstrating the effectiveness of the self-healing mechanisms [27].
9.4 Statistical Significance
All comparisons used paired t-tests with Bonferroni correction (\( \alpha = 0.01 \)). Effect sizes (Cohen's d) ranged from 1.87 to 2.34, indicating large practical significance [8]. Bootstrap resampling with 10,000 iterations confirmed result stability, with 95% confidence intervals excluding baseline performance for all metrics.
10. Conclusion
This paper has presented a comprehensive mathematical framework for semantic classification in healthcare, unifying quantum-inspired representations, information-theoretic bounds, calibrated confidence estimation, and evidence graph formalisms within a single coherent architecture. The framework's theoretical foundations — Hilbert space representations of clinical concepts, measurement operators for classification, CPTP maps for evidence accumulation — provide rigorous guarantees for system behavior while enabling practical deployment at scale.
The empirical validation across 47 healthcare institutions demonstrates that the framework achieves state-of-the-art performance (94.7% accuracy) with well-calibrated probabilities (ECE 0.034) and robust error detection (95.2% sensitivity). These results establish the SCE as a foundational component for next-generation clinical intelligence systems [23, 24].
Future work will extend the framework to incorporate temporal dynamics, enabling classification of evolving patient states across longitudinal records [32]. Additionally, integration with broader mapping and harmonization systems will enable seamless coordination, creating fully autonomous clinical intelligence pipelines.
11. Funding and Disclosures
Acknowledgments. The author gratefully acknowledges VMC MAR COM Inc. (d/b/a HeyDonto) for its support of this research. Any inquiries or official notices for VMC MAR COM Inc. may be directed to the mailing address above.
Funding. This research was funded by VMC MAR COM Inc., a Delaware corporation doing business as HeyDonto, located at 10258 Hardin Valley Rd Ste. 2, Knoxville, TN 37932, United States.
Conflict of Interest. The author declares that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Data Availability. The datasets generated and analyzed during the current study are available from the corresponding author on reasonable request, subject to institutional data use agreements and HIPAA compliance requirements.
Frequently asked questions
What is the Semantic Classification Engine (SCE)?
The SCE is a multi-ontology, context-aware framework that assigns machine-readable meaning to heterogeneous clinical data. It produces semantic types, ontology-grounded codes (ICD-10-CM, SNOMED CT, LOINC, CDT), calibrated confidence scores, and traceable evidence graphs. It operates over both structured database fields (Schema/Column Mode) and unstructured clinical notes (Content/Note Mode).
Why represent clinical concepts in a Hilbert space?
A Hilbert-space representation lets a clinical concept exist as a superposition of candidate meanings, with density operators encoding partial information and uncertainty. Classification then becomes a measurement operator that yields a calibrated probability distribution over semantic types. This preserves alternative interpretations rather than collapsing to a single answer prematurely — important when multiple ontologies or diagnoses plausibly apply.
How does the framework keep confidence scores trustworthy?
Confidence is calibrated with temperature scaling and isotonic regression (via the pool adjacent violators algorithm), measured by Expected Calibration Error (ECE), and preserved across ontologies through a mixture model that is proven to remain calibrated when its weights are correct. In validation, ECE was 0.034 versus 0.052 for the baseline.
What accuracy did the framework achieve, and where?
Across 47 U.S. healthcare institutions and 1.2 million patients (8.3 million encounters), the framework reached 94.7% classification accuracy — a 7.4 percentage-point improvement over rule-based baselines — with 95.2% error-detection sensitivity, a 2.3% false-positive rate, and a mean time to detection of 0.18 seconds.
References
- Z. Abedjan, L. Golab, and F. Naumann, "Profiling relational data: a survey," The VLDB Journal, vol. 24, no. 4, pp. 557–581, 2016.
- E. Alsentzer, J. R. Murphy, W. Boag, W. H. Weng, D. Jin, T. Naumann, and M. McDermott, "Publicly available clinical BERT embeddings," arXiv preprint arXiv:1904.03323, 2019.
- K. M. R. Audenaert and J. Eisert, "Relative entropy of entanglement and its relation to other entanglement measures," Journal of Mathematical Physics, vol. 48, no. 2, p. 022101, 2007.
- M. J. Best and N. Chakravarti, "Active set algorithms for isotonic regression; a unifying framework," Mathematical Programming, vol. 47, no. 1, pp. 425–439, 1979.
- J. Biamonte, P. Wittek, N. Pancotti, P. Rebentrost, N. Wiebe, and S. Lloyd, "Quantum machine learning," Nature, vol. 549, no. 7671, pp. 195–202, 2017.
- O. Bodenreider, "The unified medical language system (UMLS): integrating biomedical terminology," Nucleic Acids Research, vol. 32, no. suppl_1, pp. D267–D270, 2004.
- W. W. Chapman, W. Bridewell, P. Hanbury, G. F. Cooper, and B. G. Buchanan, "A simple algorithm for identifying negated findings and diseases in discharge summaries," Journal of Biomedical Informatics, vol. 34, no. 5, pp. 301–310, 2001.
- J. Cohen, Statistical Power Analysis for the Behavioral Sciences. Routledge, 2013.
- M. Ghassemi, T. Naumann, P. Schulam, A. L. Beam, I. Y. Chen, and R. Ranganath, "Practical guidance on artificial intelligence for health-care data," The Lancet Digital Health, vol. 3, no. 12, pp. e856–e873, 2021.
- D. Ghosh and R. Sharman, "Self-healing systems—survey and synthesis," Decision Support Systems, vol. 42, no. 4, pp. 2164–2185, 2007.
- J. Gilmer, S. S. Schoenholz, P. F. Riley, O. Vinyals, and G. E. Dahl, "Neural message passing for quantum chemistry," in International Conference on Machine Learning, 2017, pp. 1263–1272.
- C. Guo, G. Pleiss, Y. Sun, and K. Q. Weinberger, "On calibration of modern neural networks," in International Conference on Machine Learning, 2017, pp. 1321–1330.
- T. Hastie, R. Tibshirani, and J. Friedman, The Elements of Statistical Learning. Springer, 2009.
- S. Hochreiter and J. Schmidhuber, "Long short-term memory," Neural Computation, vol. 9, no. 8, pp. 1735–1780, 1997.
- G. Hripcsak and D. J. Albers, "Next-generation phenotyping of electronic health records," Journal of the American Medical Informatics Association, vol. 20, no. 1, pp. 117–121, 2013.
- K. Huang, J. Altosaar, and R. Ranganath, "ClinicalBERT: modeling clinical notes and predicting hospital readmission," arXiv preprint arXiv:1904.05342, 2019.
- G. King and L. Zeng, "Logistic regression in rare events data," Political Analysis, vol. 9, no. 2, pp. 137–163, 2001.
- M. Kull, T. S. Filho, and P. Flach, "Beyond sigmoids: how to obtain well-calibrated probabilities from binary classifiers with beta calibration," Electronic Journal of Statistics, vol. 13, no. 2, pp. 5058–5110, 2019.
- E. L. Lehmann and J. P. Romano, Testing Statistical Hypotheses. Springer, 2005.
- G. Lindblad, "Completely positive maps and entropy inequalities," Communications in Mathematical Physics, vol. 40, no. 2, pp. 147–151, 1975.
- G. J. McLachlan, S. X. Lee, and S. I. Rathnayake, "Finite mixture models," Annual Review of Statistics and Its Application, vol. 6, pp. 355–378, 2019.
- M. P. Naeini, G. Cooper, and M. Hauskrecht, "Obtaining well calibrated probabilities using Bayesian binning," in AAAI Conference on Artificial Intelligence, 2015, pp. 2901–2907.
- M. Nehzati, "Optimization of deep learning algorithms for large digital data processing using evolutionary neural networks," Memories — Materials, Devices, Circuits and Systems, vol. 2025, p. 100126, 2025.
- M. Nehzati, "Semantic intelligence framework for clinical data warehouses: graph-based concept extraction, statistically validated relationship discovery, and temporal pattern analysis," HeyDonto Technical Report, 2025.
- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information. Cambridge University Press, 2010.
- J. Platt, "Probabilistic outputs for support vector machines and comparisons to regularized likelihood methods," Advances in Large Margin Classifiers, vol. 10, no. 3, pp. 61–74, 1999.
- D. Russo, "Navigating the complexity of generative AI adoption in software engineering," ACM Transactions on Software Engineering and Methodology, vol. 33, pp. 1–50, 2024.
- B. Schölkopf and A. J. Smola, Learning with Kernels: Support Vector Machines, Regularization, Optimization, and Beyond. MIT Press, 2002.
- M. Schuld, I. Sinayskiy, and F. Petruccione, "An introduction to quantum machine learning," Contemporary Physics, vol. 56, no. 2, pp. 172–185, 2015.
- W. Shen, J. Wang, and J. Han, "Entity linking with a knowledge base: issues, techniques, and solutions," IEEE Transactions on Knowledge and Data Engineering, vol. 27, no. 2, pp. 443–460, 2015.
- A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin, "Attention is all you need," in Advances in Neural Information Processing Systems, 2017, pp. 5998–6008.
- Y. Wang, L. Wang, M. Rastegar-Mojarad, S. Moon, F. Shen, N. Afzal, S. Liu, Y. Zeng, S. Mehrabi, S. Sohn, and H. Liu, "Clinical information extraction applications: a literature review," Journal of Biomedical Informatics, vol. 77, pp. 34–49, 2018.
- D. Widdows, Geometry and Meaning. CSLI Publications, 2004.
- S. Wu, K. Roberts, S. Datta, J. Du, Z. Ji, Y. Si, S. Soni, Q. Wang, Q. Wei, Y. Xiang, B. Zhao, and H. Xu, "Deep learning in clinical natural language processing: a methodical review," Journal of the American Medical Informatics Association, vol. 27, no. 3, pp. 457–470, 2020.
- X. Yang, A. Chen, N. PourNejatian, H. C. Shin, K. E. Smith, C. Parisien, C. Compas, C. Martin, M. G. Flores, Y. Zhang, T. Magoc, C. A. Harle, J. Lipori, E. A. Shenkman, W. R. Hogan, Y. Wu, and Y. Wu, "A large language model for electronic health records," npj Digital Medicine, vol. 5, no. 1, p. 194, 2022.
- B. Zadrozny and C. Elkan, "Transforming classifier scores into accurate multiclass probability estimates," in ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2002, pp. 694–699.
- A. Zhang, S. Gollapudi, et al., "Feature engineering for machine learning," O'Reilly Media, 2019.
Nehzati, R. (2026). A Unified Mathematical Framework for Semantic Classification in Healthcare. Axiomera Research. https://axiomera.com/blog/unified-mathematical-framework-semantic-classification-healthcare