$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
This research did not involve human or vertebrate subjects or tissue sampling. All experiments were performed in compliance with institutional computational research guidelines at J. C. Bose University of Science & Technology, YMCA, Faridabad.
Ontology collection and evaluation
Public ontologies relevant to healthcare, smart homes, and industrial monitoring were obtained from established repositories, including Linked Open Vocabularies (LOV) and domain-specific portals, in RDF/OWL formats1,2,3. Each ontology was inspected in an ontology editor (for example, Protégé) and programmatically parsed to extract class hierarchies, object and data properties, and associated metadata in accordance with RDF/OWL specifications1,2.
For pairwise comparisons, lexical similarity between class labels was computed using a normalized edit-distance based string similarity4. Structural similarity was derived by traversing subclass and superclass relations and computing overlap ratios of local neighborhoods. Instance similarity was assessed by detecting shared or compatible instances across ontologies and verifying datatype compatibility. A combined score was defined as Equation (1):
Stotal=w1Slexical+w2Sstructural+w3Sinstance Equation (1)
with initial weights w1 = 0.5, w2 = 0.3, w3 = 0.2, and a threshold selected from a held-out validation subset. Candidate correspondences with combined scores at or above the threshold were logged in a CSV register with ontology identifiers, entity IRIs, component scores, and the decision outcome for downstream alignment.
Semantic modeling and data integration
To convert raw IoT streams into ontology-compliant representations, a unified ontology was constructed that covers static metadata (e.g. Student, Course, Device) and dynamic observations (e.g. Sensor, Observation, Timestamp), aligning with RDF/OWL best practices10 and established IoT Semantic5,6,13. Semantic transformation was defined by the mapping function:
Dsemantic=fmap (Draw, O) Equation (2)
where O denotes the applied ontology and f_map materializes triples with stable IRIs. Transformed data were stored as RDF and validated for consistency using SPARQL queries; a SPARQL endpoint was configured to support semantic queries across sources19. The resultant RDF artifact was archived as semantic_data.rdf, and a synchronized tabular export (a normalized wide table) was produced for learning tasks, including a data-provenance column that indicates feature origin and any imputation or scaling applied.
Ontology alignment using machine learning
A hybrid approach combined rule-based similarity signals with supervised learning to select high-confidence correspondences14,15. The training set comprised 2,500 manually annotated ontology-element pairs (match or non-match) to create a balanced dataset. Features included the three similarity components together with auxiliary statistics such as label-length difference. A decision-tree ensemble (Random Forest) with 100 trees, maximum depth 10, class_weight = "balanced", and a fixed random seed (42) was trained following established practice14. The learning objective was formalized as Equation (3):
Equation (3)
where yi is the ground truth label, yi^ is the predicted label, and λ represents the regularization parameter.
After probability calibration, pairs with predicted probability ≥ 0.50 were retained, and one-to-one constraints were enforced to avoid many-to-one mappings. The final mapping file, including source and target IRIs, confidence scores, and feature contributions, was serialized as alignment_results.json; the trained model artifact was stored as alignment_model.pkl. Model quality was reported on a held-out test set using accuracy, precision, recall, F1-score, and a confusion matrix with 95% confidence intervals computed by five-fold cross-validation14,15.
Deployment and real-world evaluation
A simulated environment representing 1,000 heterogeneous devices was created to stress-test ingestion and alignment, followed by real-world streams from smart-home and healthcare settings5,11. Ontology-aligned data were integrated into a cloud middleware layer for real-time ingestion and querying11,12. New devices were automatically onboarded by inspecting incoming data headers and applying dynamic semantic classification using the trained alignment model14,15.
System performance was evaluated along four axes: (i) alignment quality (the classification metrics above), (ii) interoperability rate (successful cross-source interactions as a percentage of attempted interactions), (iii) end-to-end latency defined as Equation (4), and (iv) resource utilization (CPU and memory).
L= Tresponse−Trequest Equation (4)
Configuration files, logs, and outputs were archived with stable file names and a README to facilitate independent replication19. The completed framework consistently enabled semantic interoperability in heterogeneous IoT settings; data outputs, performance logs, and configurations are bundled to support reproducibility and external validation11,12,19.
Implementation details for replication
The pipeline was implemented in Python (version 3.10 or later) using rdflib and owlready2 for RDF/OWL handling, scikit-learn for model training and evaluation, and standard data libraries for preprocessing8,14,15. Random seeds were fixed, library versions were pinned in a requirements.txt file, and a canonical directory structure was used: ontologies/, data/raw/, data/processed/, models/, and results/. File names referenced in text are exact: semantic_data.rdf, alignment_results.json, and alignment_model.pkl19.
Research design
This mixed-methods, computational study integrates semantic modeling with a supervised ontology-alignment module to improve interoperability across heterogeneous IoT sources. The protocol proceeds as follows in brief: public ontologies are collected and parsed; raw IoT tables are mapped to a unified RDF/OWL schema10; candidate correspondences are generated from lexical, structural, and instance signals15,16; a compact decision-tree ensemble is trained on a manually labeled set to accept one-to-one matches at a fixed threshold14,15; aligned graphs/tables are fused; and performance is assessed by correspondence-level metrics (accuracy, precision, recall, F1, confusion matrix) and system behavior (interoperability rate, end-to-end latency, CPU/memory)14,15. A rules-only weighted-similarity method serves as the baseline16. Random seeds and library versions are fixed, and artifacts use stable names (semantic_data.rdf, alignment_results.json, alignment_model.pkl) to support replication. Figure 2 illustrates the overall framework for Unified Ontology Design in IoT environments.

Figure 2: Unified ontology design in IoT environments. The figure illustrates the core architectural layers of the unified ontology, showcasing semantic modeling, AI integration, and domain knowledge abstraction for seamless IoT data interoperability. The framework supports both cross-domain and domain-specific ontological structures. Please click here to view a larger version of this figure.
Data collection
Data collection was performed in two distinct phases.
Ontology Evaluation: A critical analysis of existing IoT ontologies and semantic models was conducted to identify gaps in current integration strategies. Publicly available IoT datasets and domain-specific ontologies were examined to evaluate structural and semantic alignment limitations5,6,10,11.
Trial Endorsement: Real-world IoT systems (e.g., smart homes, healthcare applications, industrial automation) were utilized to collect data for validating the framework. Additionally, simulated datasets were generated to assess the system's performance under controlled and repeatable conditions8,9,11,12.
Data analysis
The analysis phase employed a combination of semantic, statistical, and AI-based techniques to validate the proposed framework.
Practical aligners include lexical string matchers using normalized Levenshtein distance(NLD) for labels/synonyms16; structural graph based methods that propagates or aggregate similarity Flooding that propagate similarity over subclass/superclass neighborhoods12,15; logic-aware/coherence-preserving techniques that combine matching with reasoning to keep mappings consistent15,19; instance-based/probabilistic approaches that leverage evidence from shared or compatible instances17; and hybrid/ensemble matchers that fuse multiple signals and rules12,14,15. Recent neural variants employ contextual sentence embeddings to score candidate similarities12,14.
Ontology Alignment: High-level alignment algorithms were used to resolve semantic discrepancies among heterogeneous IoT ontologies. These algorithms utilized heuristic rules and machine learning (ML) methods to compute accurate mappings and maintain consistency constraints15,17. Figure 3 presents the ontology alignment process for achieving interoperability among IoT devices.

Figure 3: Ontology alignment process for IoT device interoperability. This diagram demonstrates the alignment process that resolves syntactic and semantic mismatches between devices in a heterogeneous IoT ecosystem. It emphasizes the role of lexical, structural, and instance-based similarity metrics used in the alignment algorithm. Please click here to view a larger version of this figure.
Semantic modeling: An AI-driven semantic modeling strategy was applied to develop a unified ontology capturing both domain-specific and cross-domain semantics. This model integrates static and dynamic IoT data streams and conforms to RDF/OWL best practices and established IoT semantics5,6,10,13, supporting real-time applications.
Performance evaluation: The experimental setup evaluated key performance metrics, including interoperability rate, latency, system efficiency, and scalability 11,12. Comparative analysis was conducted against baseline integration techniques to demonstrate the flexibility and resilience of the proposed solution12,14,15,16. Figure 4 showcases the computational flow and critical components of the ontology alignment and semantic modeling processes.

Figure 4: Semantic model for real-time IoT applications. This figure highlights the semantic modeling strategy that integrates static device configurations and dynamic sensor data streams into the unified ontology. The architecture supports real-time semantic enrichment for context-aware decision-making. Please click here to view a larger version of this figure.
Key Equations
Equation for ontology alignment using similarity metrics: To align heterogeneous IoT ontologies, the aggregate similarity is computed as a weighted blend of lexical, structural, and instance-based signals as per Equation 1 above, where Stotal is the aggregate similarity between two ontology elements, Slexical is similarity from lexical matching (e.g., normalized string distance), Sstructural is similarity based on underlying relationships (e.g., parent-kid hierarchy), Sinstance is Comparability based on instance data (e.g., overlap in usage examples), and w1, w2, w3 are weight coefficients, adjusted based on the application context.
Equation for machine learning-based optimization for ontology mapping: The enhancement of mappings can be formulated as an expense minimization problem using a misfortune capability:

where L is Misfortune capability for mapping prediction, yi is ground truth label for the ith mapping, y^i is predicted label for the ith mapping, ||Θ|| is regularization term to prevent overfitting, λ is regularization parameter.
Equation for semantic modelling of IoT data streams: Semantic enrichment is expressed as an ontology-based data transformation as per equation 2 above, where Dsemantic is the semantically annotated dataset, Draw is the raw IoT data, O is the ontology used for annotation, and fmap is the mapping function derived from the unified ontology.
Equations for performance metrics (interoperability and latency)
Interoperability index (percentage of successful cross-source interactions):
I_index = (successful interactions / total interactions) x 100 Equation (5)
Latency (reproduced here for completeness) is computed as per equation 4 above, where I_index is the interoperability index (in %), L is latency (ms), T_response is the response timestamp, and T_request is the request timestamp.
Equation for scalability analysis of the IoT ecosystem
Computational complexity with respect to the number of devices and ontology elements:
C = O(n · m) Equation (6)
where C is the computational complexity, n is the number of IoT devices, and m is the number of ontology elements.