Research Article

Toward Standardized IoT Ontologies Using a Machine Learning-Based Framework for Seamless Data Exchange

DOI:

10.3791/68635

October 7th, 2025

In This Article

Summary

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

This study presents a machine learning-based framework for real-time IoT ontology alignment, enabling seamless data exchange across heterogeneous systems. By integrating semantic modeling and adaptive optimization, the approach enhances interoperability, reduces latency, and achieves high accuracy. Validated in real-world settings, it offers a scalable, standardized IoT integration solution.

Abstract

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The increasing heterogeneity of Internet of Things (IoT) devices has led to significant challenges in achieving real-time interoperability and seamless data exchange. Existing IoT ecosystems often operate using diverse data models, communication protocols, and semantic representations, resulting in fragmented systems that hinder integration. To address this problem, we propose a unified framework that employs machine learning-based ontology alignment for standardized, adaptive IoT integration. The hypothesis guiding this research is that combining semantic modeling with intelligent optimization techniques can significantly improve the consistency and efficiency of data exchange across heterogeneous IoT environments. The proposed framework integrates real-time data stream processing, semantic similarity analysis, and adaptive ontology mapping to dynamically align device ontologies. Using simulated and real-world environments, including smart homes and healthcare systems, the framework was tested against key performance metrics such as accuracy, latency, and interoperability rate. Results demonstrate that the proposed method achieves a high ontology alignment accuracy of 97%, reduces latency to under 20 ms, and maintains over 95% interoperability among diverse device types. The findings confirm that the integration of machine learning algorithms with semantic modeling significantly enhances the performance, scalability, and adaptability of IoT systems. The framework successfully addresses semantic inconsistencies and supports dynamic device onboarding without manual intervention. This study presents a robust and scalable solution for IoT interoperability, offering real-time, intelligent ontology alignment that is adaptable to evolving devices and data standards. This work contributes to the development of next-generation IoT architectures capable of supporting standardized, efficient, and automated communication across diverse applications.

Introduction

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The Internet of Things (IoT) is rapidly evolving into a core infrastructure for smart environments, connecting a wide array of heterogeneous devices that operate across diverse domains such as healthcare, smart cities, agriculture, and industrial automation1,2,3. These devices generate large volumes of data and rely on semantic understanding to communicate meaningfully4,5,6,7. However, the lack of a standardized semantic structure has emerged as a key barrier to seamless data exchange8,9,10,11,12. Diverse ontologies, varying protocols, and inconsistent data models limit interoperability, making it difficult for devices to collaborate efficiently in real time. This semantic fragmentation often leads to misinterpretations, increased latency, and integration failures that compromise system scalability and performance5,12,13. Therefore, there is a critical need for a unifying approach that can standardize semantic representations while adapting to the dynamic nature of IoT environments6,10,11,12.

This study proposes a novel machine-learning-based framework for real-time ontology alignment to address these interoperability challenges4,8,9,11,14. The framework combines advanced semantic modeling, adaptive ontology mapping, and data stream integration9,10,13 to dynamically align IoT ontologies. Leveraging machine learning techniques for ontology alignment can significantly enhance semantic consistency and integration efficiency in heterogeneous IoT systems8,9,14,15. Unlike traditional rule-based methods4,5,7,8,9,10,13, the proposed approach employs weighted similarity measures, structural and lexical mappings, and optimization algorithms that adapt to incoming data15,16,17. Experimental validation was conducted in both simulated and real-world environments, including smart homes and healthcare systems. The results demonstrate that the framework achieves an ontology alignment accuracy of 97%, reduces average latency to under 20 ms, and maintains interoperability rates above 95% across device types8.

The adaptability of the proposed framework further distinguishes it from existing solutions9,13,15. As new devices join the network, the system automatically updates semantic relationships without requiring manual reconfiguration5,6,8,9,13,15. This is made possible through the integration of learning-based optimization that minimizes semantic mismatches and computational overhead8,9. The system also exhibits improved performance in memory and CPU usage, making it suitable for resource-constrained environments1,2,3,11,12. By addressing semantic inconsistency, latency, and scalability in a unified architecture, this work lays the foundation for a standardized, intelligent, and future-ready IoT communication model13,18.

The goal of this study is to develop and validate a machine-learning-based framework for real-time ontology alignment to facilitate semantic interoperability in heterogeneous IoT environments. The study includes the following phases: (1) Ontology collection and analysis, (2) Semantic modeling and alignment, (3) Machine learning-based optimization, and (4) Real-world validation in simulated and live IoT contexts. The experimental framework was tested using public datasets, simulated environments, and live deployments in smart home and healthcare environments. A schematic representation of a machine learning based IoT ontology alignment framework is provided in Figure 1.

Machine learning IoT ontology alignment diagram; data acquisition, semantic modeling, alignment.
Figure 1: Machine learning-based IoT ontology alignment framework. This figure presents a high-level view of the proposed framework that integrates machine learning techniques to align ontologies across heterogeneous IoT systems. The pipeline includes semantic similarity assessment, optimization using loss minimization, and iterative refinement for enhanced interoperability. Please click here to view a larger version of this figure.

Access restricted. Please log in or start a trial to view this content.

Protocol

Loading...
$$\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):

Loss function equation for linear regression, mathematical expression, regularization term.    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.

Role-based access control (RBAC) diagram; RDF conversion, WoT system management, user authorization.
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.

alignment process diagram; input-output alignment, threshold parameters, thesauri resources
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.

Campus entry security process diagram with sensors, scanners, treatment area, and AI assistants.
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:

Loss function equation for regularization; includes summation and lambda terms; mathematical formula.

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.

Access restricted. Please log in or start a trial to view this content.

Results

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Ontology collection and evaluation
Ontology analysis revealed substantial inconsistencies across domain-specific IoT ontologies in terms of class hierarchy, semantic labels, and data property definitions. These inconsistencies were more pronounced between healthcare and smart home datasets, demonstrating a 28% structural mismatch rate. The identification of these variations validated the initial hypothesis that lack of standardization impairs interoperability across IoT environments. These mismatches...

Access restricted. Please log in or start a trial to view this content.

Discussion

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The developed machine learning-based framework demonstrates its effectiveness in addressing semantic interoperability challenges in heterogeneous IoT environments. Through a structured protocol integrating semantic modelling, machine learning-based ontology alignment, and cloud-based middleware deployment, the system achieved high ontology alignment accuracy and consistent data integration across varied devices.

Critical protocol steps
Several steps within the proposed p...

Access restricted. Please log in or start a trial to view this content.

Disclosures

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The authors declare that they have no conflicts of interest to report regarding the present study.

Acknowledgements

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

This study received no funding.

Access restricted. Please log in or start a trial to view this content.

Materials

List of materials used in this article
NameCompanyCatalog NumberComments
Cloud-based Middleware PlatformOpen-source / Proprietary (e.g., Firebase)N/AFacilitates real-time data ingestion and storage.
Input OntologiesPublic Repositories (e.g., LOV)N/ADomain-specific OWL/RDF ontologies for IoT environments.
Machine Learning LibraryOpen-source (e.g., scikit-learn)N/AUsed for supervised classification model training.
Network Simulation ToolOpen-source / Commercial (e.g., NetSim)N/AGenerates simulated heterogeneous IoT device datasets.
Ontology Editing SoftwareOpen-source (e.g., Protégé)N/AUsed for ontology parsing, editing, and visualization.
Programming EnvironmentOpen-source (e.g., Python)N/AImplements machine learning models and data processing.
Raw IoT Data StreamsPublic / Custom Dataset SourcesN/ACSV or JSON files containing raw IoT device data.
RDF Output FilesGenerated In-studyN/ARDF/XML files representing semantically enriched IoT data.
Semantic Parsing LibraryOpen-source (e.g., RDFLib)N/AConverts IoT data into RDF triples for semantic modeling.
SPARQL Query EngineOpen-sourceN/AValidates RDF data consistency using SPARQL queries.

References

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,
  1. Al-Fuqaha, A., Guizani, M., Mohammadi, M., Aledhari, M., Ayyash, M. Internet of Things: A survey on enabling technologies, protocols, and applications. IEEE Commun Surv Tutor. 17 (4), 2347-2376 (2015).
  2. Fortino, G., et al. Towards multi-layer interoperability of heterogeneous IoT platforms: The INTER-IoT approach. Integration, Interconnection, and Interoperability of IoT Systems. , 199-232 (2018).
  3. Perera, C., Zaslavsky, A., Christen, P., Georgakopoulos, D. Context aware computing for the Internet of Things: A survey. IEEE Commun Surv Tutor. 16 (1), 414-454 (2014).
  4. Nambi, S. A. U., Sarkar, C., Prasad, R. V., Rahim, A. A. A unified semantic knowledge base for IoT. Proceedings of IEEE World Forum on Internet of Things (WF-IoT). , 575-580 (2014).
  5. Sheth, A., Henson, C., Sahoo, S. S. Semantic sensor web. IEEE Internet Comput. 12 (4), 78-83 (2008).
  6. Compton, M., et al. The SSN ontology of the W3C semantic sensor network incubator group. J Web Semant. 17, 25-32 (2012).
  7. Barnaghi, P., Wang, W., Henson, C., Taylor, K. Semantics for the Internet of Things: Early progress and back to the future. Int J Semant Web Inf Syst. 8 (1), 1-21 (2012).
  8. Agarwal, R., et al. Unified IoT ontology to enable interoperability and federation of testbeds. Proceedings of IEEE 3rd World Forum on Internet of Things (WF-IoT). , 70-75 (2016).
  9. Rahman, H., Hussain, M. I. A comprehensive survey on semantic interoperability for Internet of Things: State-of-the-art and research challenges. Trans Emerg Telecommun Technol. 31 (12), e3902(2020).
  10. Gyrard, A., et al. Semantic web methodologies, best practices and ontology engineering applied to Internet of Things. Int J Web Grid Serv. 10 (3), 244-269 (2014).
  11. Ganzha, M., et al. Semantic interoperability in the Internet of Things: An overview from the INTER-IoT perspective. J Netw Comput Appl. 81, 85-99 (2017).
  12. Gyrard, A., Zimmermann, A., Krishnaswamy, S. Semantic web technologies for the Internet of Things: A comprehensive survey. Semant Web. 9 (5), 513-563 (2018).
  13. Balaji, B., et al. Towards a unified metadata schema for buildings. Proc ACM BuildSys. , 41-50 (2016).
  14. Zhou, Q., et al. Machine learning approaches to ontology alignment: A comprehensive survey. IEEE Access. 7, 151073-151095 (2019).
  15. Paulheim, H. Knowledge graph refinement: A survey of approaches and evaluation methods. Semant Web. 8 (3), 489-508 (2017).
  16. Yujian, L., Bo, L. A normalized Levenshtein distance metric. IEEE Trans Pattern Anal Mach Intell. 29 (6), 1091-1095 (2007).
  17. D'Amato, C., Fanizzi, N., Esposito, F. Inductive learning for the semantic web: What does it buy. Semant Web. 1 (1), 53-59 (2010).
  18. Balaji, B., et al. Towards a unified metadata schema for buildings. Proceedings of ACM BuildSys. , 41-50 (2016).
  19. Poveda-Villalón, M., Suárez-Figueroa, M. C., Gómez-Pérez, A. Validating ontologies with OOPS! (OntOlogy Pitfall Scanner!). Int J Semant Web Inf Syst. 10 (2), 7-34 (2014).

Access restricted. Please log in or start a trial to view this content.

Reprints and Permissions

Request permission to reuse the text or figures of this JoVE article

Request Permission

Tags

Ontology AlignmentSemantic ModelingMachine Learning FrameworkIoT InteroperabilityReal Time Data ProcessingSemantic SimilarityAdaptive Ontology MappingDevice Integration

Related Articles