<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Public Health</journal-id>
<journal-title>Frontiers in Public Health</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Public Health</abbrev-journal-title>
<issn pub-type="epub">2296-2565</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fpubh.2022.849185</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Public Health</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>A Multi-Agent Formalism Based on Contextual Defeasible Logic for Healthcare Systems</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name><surname>Akhtar</surname> <given-names>Salwa Muhammad</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/1660607/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Nazir</surname> <given-names>Makia</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/1660479/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Saleem</surname> <given-names>Kiran</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/1629388/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Ahmad</surname> <given-names>Rana Zeeshan</given-names></name>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/1553718/overview"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>Javed</surname> <given-names>Abdul Rehman</given-names></name>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
<xref ref-type="corresp" rid="c001"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/1436114/overview"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>S. Band</surname> <given-names>Shahab</given-names></name>
<xref ref-type="aff" rid="aff5"><sup>5</sup></xref>
<xref ref-type="corresp" rid="c002"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/1518450/overview"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>Mosavi</surname> <given-names>Amir</given-names></name>
<xref ref-type="aff" rid="aff6"><sup>6</sup></xref>
<xref ref-type="aff" rid="aff7"><sup>7</sup></xref>
<xref ref-type="aff" rid="aff8"><sup>8</sup></xref>
<xref ref-type="corresp" rid="c003"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/1000373/overview"/>
</contrib>
</contrib-group>
<aff id="aff1"><sup>1</sup><institution>Computer Science Department, Faculty of Computer Science and IT, University of Lahore</institution>, <addr-line>Lahore</addr-line>, <country>Pakistan</country></aff>
<aff id="aff2"><sup>2</sup><institution>School of Software, Dalian University of Technology</institution>, <addr-line>Dalian</addr-line>, <country>China</country></aff>
<aff id="aff3"><sup>3</sup><institution>Department of Information Technology, University of Sialkot</institution>, <addr-line>Sialkot</addr-line>, <country>Pakistan</country></aff>
<aff id="aff4"><sup>4</sup><institution>Department of Cyber Security, Air University</institution>, <addr-line>Islamabad</addr-line>, <country>Pakistan</country></aff>
<aff id="aff5"><sup>5</sup><institution>Future Technology Research Center, College of Future, National Yunlin University of Science and Technology</institution>, <addr-line>Douliou</addr-line>, <country>Taiwan</country></aff>
<aff id="aff6"><sup>6</sup><institution>Institute of Information Society, University of Public Service</institution>, <addr-line>Budapest</addr-line>, <country>Hungary</country></aff>
<aff id="aff7"><sup>7</sup><institution>John von Neumann Faculty of Informatics, Obuda University</institution>, <addr-line>Budapest</addr-line>, <country>Hungary</country></aff>
<aff id="aff8"><sup>8</sup><institution>Institute of Information Engineering, Automation and Mathematics, Slovak University of Technology in Bratislava</institution>, <addr-line>Bratislava</addr-line>, <country>Slovakia</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Thippa Reddy Gadekallu, VIT University, India</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Randhir Kumar, Indian Institute of Technology Hyderabad, India; Weizheng Wang, City University of Hong Kong, Hong Kong SAR, China; Praveen Kumar, VIT University, India</p></fn>
<corresp id="c001">&#x0002A;Correspondence: Abdul Rehman Javed <email>abdulrehman.cs&#x00040;au.edu.pk</email></corresp>
<corresp id="c002">Shahab S. Band <email>shamshirbands&#x00040;yuntech.edu.tw</email></corresp>
<corresp id="c003">Amir Mosavi <email>amir.mosavi&#x00040;nik.uni-obuda.hu</email></corresp>
<fn fn-type="other" id="fn001"><p>This article was submitted to Digital Public Health, a section of the journal Frontiers in Public Health</p></fn></author-notes>
<pub-date pub-type="epub">
<day>03</day>
<month>03</month>
<year>2022</year>
</pub-date>
<pub-date pub-type="collection">
<year>2022</year>
</pub-date>
<volume>10</volume>
<elocation-id>849185</elocation-id>
<history>
<date date-type="received">
<day>05</day>
<month>01</month>
<year>2022</year>
</date>
<date date-type="accepted">
<day>24</day>
<month>01</month>
<year>2022</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2022 Akhtar, Nazir, Saleem, Ahmad, Javed, S. Band and Mosavi.</copyright-statement>
<copyright-year>2022</copyright-year>
<copyright-holder>Akhtar, Nazir, Saleem, Ahmad, Javed, S. Band and Mosavi</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license></permissions>
<abstract>
<p>In the last decade, smart computing has garnered much attention, particularly in ubiquitous environments, thus increasing the ease of everyday human life. Users can dynamically interact with the systems using different modalities in a smart computing environment. The literature discussed multiple mechanisms to enhance the modalities for communication using different knowledge sources. Among others, Multi-context System (MCS) has been proven quite significant to interlink various context domains dynamically to a distributed environment. MCS is a collection of different contexts (independent knowledge sources), and every context contains its own set of defined rules and facts and inference systems. These contexts are interlinked <italic>via</italic> bridge rules. However, the interaction among knowledge sources could have the consequences such as bringing out inconsistent results. These issues may report situations such as the system being unable to reach a conclusion or communication in different contexts becoming asynchronous. There is a need for a suitable framework to resolve inconsistencies. In this article, we provide a framework based on contextual defeasible reasoning and a formalism of multi-agent environment is to handle the issue of inconsistent information in MCS. Additionally, in this work, a prototypal simulation is designed using a simulation tool called NetLogo, and a formalism about a Parkinson&#x00027;s disease patient&#x00027;s case study is also developed. Both of these show the validity of the framework.</p></abstract>
<kwd-group>
<kwd>healthcare system</kwd>
<kwd>NetLogo</kwd>
<kwd>web ontology</kwd>
<kwd>multi-agent system</kwd>
<kwd>medical internet of things (IoT)</kwd>
</kwd-group>
<contract-num rid="cn001">3253</contract-num>
<contract-sponsor id="cn001">Technische Universit&#x000E4;t Dresden<named-content content-type="fundref-id">10.13039/501100002957</named-content></contract-sponsor>
<counts>
<fig-count count="10"/>
<table-count count="3"/>
<equation-count count="0"/>
<ref-count count="30"/>
<page-count count="14"/>
<word-count count="7686"/>
</counts>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>1. Introduction</title>
<p>Ubiquitous computing deals with invisibly interweaving the real world with various agents embedded seamlessly in everyday objects of lives and connected through dedicated networks and media to make our everyday life easier and more efficient (<xref ref-type="bibr" rid="B1">1</xref>&#x02013;<xref ref-type="bibr" rid="B3">3</xref>). When the agents were initially designed, they were used solely to detect user location, however, with technological advancements, they gradually were able to adapt to interfaces, increase the precision of information retrieval, discover services users may require, and most importantly build smart environments (<xref ref-type="bibr" rid="B4">4</xref>). Smart environments are the physical environments used in daily human life that are seamlessly embedded with tiny smart devices equipped with sensors, actuators, and computational elements (agents). These physically embedded devices are connected through a continuous data collection and processing network to enable various pervasive applications, services, and smart environments to perform efficiently. The usage of various connected agents for data retrieval, processing, and exchanging make up a system called Multi-Agent System (MAS) (<xref ref-type="bibr" rid="B5">5</xref>).</p>
<p>A multi-agent system is a computerized system comprising multiple interacting intelligent agents (<xref ref-type="bibr" rid="B6">6</xref>). These intelligent agents can collect data, process it, and then send it to the controller/central system for further analysis. While this level of intelligence and functionality is more than enough for some applications, for others, this is not. These are the applications or systems that needed information from multiple resources (domains) to execute their required operations (<xref ref-type="bibr" rid="B4">4</xref>). This problem leads to a solution termed Multi-Context Systems (MCS).</p>
<p>Equilibrium is defined as a belief state that comprises a belief set, consisting of beliefs of each context in the MCS, such that an MCS is said to be in equilibrium if all the heterogeneous contexts have consistent beliefs (<xref ref-type="bibr" rid="B7">7</xref>). Inconsistency is a significant concern depriving MCS of reaching its full potential. Inconsistency makes it impossible for the system to conclude from the provided data. Suppose a system cannot derive a decision, then it is considered a failure. This work tries to ensure that the system maintains its equilibria state. This is the state in which each element of the system has a single belief, i.e., the decision should be the same according to each element of the system. The equilibria are lost whenever the system receives contradictory or inconsistent information. This makes the overall system not provide a conclusion, causing it to become purposeless. This becomes a severe issue, especially in the safety-critical system dealing with life and death situations in healthcare systems (<xref ref-type="bibr" rid="B8">8</xref>).</p>
<p>The proposed system uses a case study about a Parkinsons&#x00027; disease patient to show its correctness. The system includes a Multi-Context system (MCS) consisting of several heterogeneous contexts. Several agents acquire information, process data, and perform reasoning accordingly in each context in MCS. As physical implementation of such a system is not feasible due to financial and technological constraints, virtual agents model the proposed smart environment. It is assumed that these virtual agents are intelligent; thus, they are intelligent virtual agents. Virtual agents can also be considered a type of software that collects, processes, and shares data just like a physical sensor and agent. It is assumed that data is acquired from virtual sensors for data acquisition. In the proposed framework, intelligent agents acquire contextual information from the sensors and perform reasoning accordingly. For each domain, an ontology is developed using Prot&#x000E9;g&#x000E9;, a free, open-source ontology editor and management system. Each of these ontologies is connected using mapping rules. These ontologies are mapped on their corresponding description logic. These description logic-based ontologies are then linked together using distributed description logic (DDL) formalism. Once the system gets settled, the flow of information begins due to the communication between the heterogeneous contexts. After this, the system&#x00027;s conflicting information is dealt with using CDL (<xref ref-type="bibr" rid="B9">9</xref>). Contextual defeasible reasoning can handle inconsistencies occurring due to contradictory information (<xref ref-type="bibr" rid="B8">8</xref>).</p>
<p>The rest of this article is structured as follows. Section Related Work presents the related work. Section Contextual Defeasible Reasoning (CDL) Based Multi-Agent Formalism presents the extensive description of the architecture of the framework proposed and the inclusion of Contextual Defeasible Reasoning in it. Section Framework Development discusses the contexts developed for the framework and their corresponding ontologies. Section Temporal Logic Formalism covers the formalism of the proposed work using temporal logic. Section Simulation of Proposed System discusses the simulation of the system done using NetLogo. In section Algorithm the proposed algorithm for the system is discussed in detail. Finally, this work is discussed overall and concluded in sections Limitations and Future Scope and Conclusion, respectively.</p></sec>
<sec id="s2">
<title>2. Related Work</title>
<p>Authors in (<xref ref-type="bibr" rid="B9">9</xref>) proposed a methodology for handling inconsistency produced in a Multi-Context System (MCS) by utilizing the consistency-based and abduction-based techniques. In the first approach, pairs of sets of mapping rules are considered, such that deactivating the rules in one set and forcing the rules in the other to be active allows to re-establish consistency. While in the second approach, a pair of rules were considered whose joint (de-)activation reproduced the observed inconsistency. In (<xref ref-type="bibr" rid="B8">8</xref>), the authors proposed a framework based on Contextual Defeasible Logic (CDL) for distributed MCS. The authors deployed the Meta-rules technique to perform reasoning on the system-acquired data.</p>
<p>In (<xref ref-type="bibr" rid="B10">10</xref>), the authors present a smart city ontology called KM4City (Knowledge Model for City). This ontology includes data coming from various heterogeneous sources and mapped onto it. Since ontologies are flexible, therefore, the addition of new information can easily be managed. Static and dynamic data from various heterogeneous sources is obtained and stored in RDF syntax, accessed using SPARQL queries. This data was from public and private sources, such as people sending information from their devices. The primary purpose of the author&#x00027;s KM4City is to help citizens on roads, mainly those stuck in traffic, and especially helping the ambulances find an optimal path to their destinations, be it the hospital or the location of a patient. The proposed work, according to the authors, overcomes the gap of combining public and private data from various heterogeneous sources. Various applications like those of public administrations and enterprises can be made using this framework. The information collected for the scope of the proposed paper was limited to road graphs, services available on the roads, and traffic sensors.</p>
<p>In (<xref ref-type="bibr" rid="B11">11</xref>), the authors have used an RPI-CAM-V2 pi camera, soil moisture sensor, and a temperature sensor and connected them to a Raspberry pi microcontroller. A raspberry pi is a circuit board that can be attached to a computer monitor through the USB port. This system has especially been developed for the farmers or the caretakers of agricultural lands to increase the efficiency of the agricultural systems by automating the irrigation process. It then sends the data to the Thingspeak mobile application (an android application available on the play store of all android devices), where the farmers can easily have access to the environmental conditions of the fields without being in the area. The authors have also used the Telegram mobile application for fetching data from raspberry pi when in remote locations. Telegram application is a messaging application similar to Whatsapp, except for creating bots that interact with both humans and machines.</p>
<p>In (<xref ref-type="bibr" rid="B12">12</xref>), the authors have presented a survey on the application of technologies of industry 5.0 in different domains. Industry 5.0 is mainly used to increase the efficiency and effectiveness of large-scale product manufacturing. However, like any other technology, this also comes with many drawbacks, mainly privacy and security dilemmas. In (<xref ref-type="bibr" rid="B13">13</xref>), the authors have presented a grid and place neuron model in cognitive tasks applications. The 2D virtual environment was created to deploy this system, which resulted in 92.27 % localization accuracy.</p>
<p>In (<xref ref-type="bibr" rid="B14">14</xref>), the authors have highlighted the usage of ML algorithms for the diagnosis, analysis, and prediction of stroke. Moreover, the authors used the Antlion optimization (ALO) algorithm using a deep learning model in minimal time consumption for optimal hyper-parameters selection. The training time for the proposed model is 38 % as a positive outcome considered for the experimental superiority results.</p>
<p>In (<xref ref-type="bibr" rid="B15">15</xref>), the authors have proposed a novel pairing-free certificateless scheme using blockchain technique and a CLS scheme using a smart contract. After this, they simulated the Type-I and Type-II adversaries to verify their scheme. After a thorough analysis, the authors deduced that their work reduced 40.0% computation cost and 94.7% communication cost. In (<xref ref-type="bibr" rid="B16">16</xref>), the authors have highlighted the emergence of heterogeneous Internet of Medical Things (IoMT) (e.g., for smart healthcare systems) that is used for sending huge bulk of patient&#x00027;s data for disease analysis to central cloud servers. However, it is prone to many security issues that can be overcome using AKA p. The authors have proposed an authentication protocol using blockchain technology and physically unclonable functions (PUF) in their work. In addition, biometric information is dealt with using a fuzzy extractor scheme. Their analysis proved that their work requires the most negligible computation and communication cost among the compared schemes.</p>
<p>This work is novel in the way that it proposes a smart decision-making healthcare system based on formalism technique that can help the medical professionals in their everyday routine and the patients living in far-off areas. The modeling of the system was done using ontologies so a clear picture of the system and the flow of information in it can be obtained. In order to check the validity of this work, a simulation was created using the NetLogo simulation tool. The existing approaches are summarized in <xref ref-type="table" rid="T1">Table 1</xref>. This work is different from others such that it uses contextual defeasible logic to resolve inconsistencies in multi-context systems. This technique is helpful when the entire system needs to be controlled automatically with the help of rule-based formalism in order to allow the system to reach a conclusion about the patient&#x00027;s health and provide the medical authority about the current situation.</p>
<table-wrap position="float" id="T1">
<label>Table 1</label>
<caption><p>Analysis of related work.</p></caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th valign="top" align="left"><bold>Reference</bold></th>
<th valign="top" align="left"><bold>Technique</bold></th>
<th valign="top" align="left"><bold>Domain</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">(<xref ref-type="bibr" rid="B8">8</xref>)</td>
<td valign="top" align="left">Defeasible logic theory using the notion of meta-rules</td>
<td valign="top" align="left">Multi-context distributed systems</td>
</tr>
<tr>
<td valign="top" align="left">(<xref ref-type="bibr" rid="B10">10</xref>)</td>
<td valign="top" align="left">Ontology-driven modeling</td>
<td valign="top" align="left">Smart city</td>
</tr>
<tr>
<td valign="top" align="left">(<xref ref-type="bibr" rid="B14">14</xref>)</td>
<td valign="top" align="left">Machine learning algorithms</td>
<td valign="top" align="left">Smart healthcare</td>
</tr>
<tr>
<td valign="top" align="left">(<xref ref-type="bibr" rid="B9">9</xref>)</td>
<td valign="top" align="left">Consistency-based and abduction-based techniques</td>
<td valign="top" align="left">Multi-Context System (MCS)</td>
</tr>
<tr>
<td valign="top" align="left">(<xref ref-type="bibr" rid="B12">12</xref>)</td>
<td valign="top" align="left">Industry 5.0 supporting technologies</td>
<td valign="top" align="left">Internet of Everything (IoE)</td>
</tr>
<tr>
<td valign="top" align="left">(<xref ref-type="bibr" rid="B13">13</xref>)</td>
<td valign="top" align="left">Grid and place neuron model</td>
<td valign="top" align="left">2D virtual environment</td>
</tr>
<tr>
<td valign="top" align="left">(<xref ref-type="bibr" rid="B11">11</xref>)</td>
<td valign="top" align="left">Raspberry-pi circuit board</td>
<td valign="top" align="left">Smart agriculture</td>
</tr>
<tr>
<td valign="top" align="left">(<xref ref-type="bibr" rid="B16">16</xref>)</td>
<td valign="top" align="left">Internet of Medical Things (IoMT)</td>
<td valign="top" align="left">Smart healthcare</td>
</tr>
<tr>
<td valign="top" align="left">(<xref ref-type="bibr" rid="B15">15</xref>)</td>
<td valign="top" align="left">Blockchain technique</td>
<td valign="top" align="left">Internet of Things (IoT)</td>
</tr>
<tr>
<td valign="top" align="left">(<xref ref-type="bibr" rid="B17">17</xref>)</td>
<td valign="top" align="left">Elliptic Curve Digital Signature Algorithm (ECDSA)</td>
<td valign="top" align="left">Large-scale batch verification</td>
</tr>
</tbody>
</table>
</table-wrap></sec>
<sec id="s3">
<title>3. Contextual Defeasible Reasoning (CDL) Based Multi-Agent Formalism</title>
<p>This section covers the CDL based on multi-agent formalism. In the context-aware MAS, every agent has a set of defeasible rules in their knowledge base where the contextual information and reasoning strategy is stored. Multi-context system notions are used for modeling heterogeneous systems (<xref ref-type="bibr" rid="B18">18</xref>&#x02013;<xref ref-type="bibr" rid="B20">20</xref>). Multiple ontologies can send contextual information (e.g., rules, and facts). Each knowledge source sends the contextual information to its corresponding agents. After that, agents perform their reasoning mechanism based on the pre-defined rules. Reasoning types are two called, locally and globally. In local reasoning, the rules are performed by obtaining, through a single ontology. In distributed reasoning, multiple ontologies extract the sets of rules and facts by which each agent performs its reasoning. A framework of contextual defeasible reasoning based on heterogeneous formalism is proposed in this thesis. The framework uses the data acquired by sensors and analyzed and shared by agents, working in various heterogeneous contexts/domains with their respective systems. The following case study has been developed, which will form the basis of framework modeling and development.</p>
<p><xref ref-type="fig" rid="F1">Figure 1</xref> shows the working of the proposed system. First, the virtual sensors continuously send data to a database. This database contains additional information about the patient, his allergies, and insurance. The information from the database (which also contains data from the sensors) is sent to the proposed system, which is the intelligent system responsible for making a decision. The intelligent system responsible for making a decision acquires this information and tries to derive a conclusion. In case of no inconsistency during conclusion making, then the system prescribes the treatment for the disease and keeps a record of the severity level of the patient. But if an inconsistency does occur, then the system first handles this inconsistency by using contextual defeasible logic and then prescribes treatment and severity level. After allotting severity level and treatment, the system sends this information back to the database. The hospital has complete access to this database and will take action accordingly.</p>
<fig id="F1" position="float">
<label>Figure 1</label>
<caption><p>Architecture diagram.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-10-849185-g0001.tif"/>
</fig>
<p>These systems, which are a smart home system and smart hospital system, then send their received data to the smart decision-making system embedded in the smart hospital system so that the smart decision-making system could form a diagnosis of the patient&#x00027;s current health and the necessary treatment. Since multiple heterogeneous contexts/systems/domains are involved in this framework, structuring the overall system and data is crucial. Therefore, ontology is used for this purpose. To conclude, the smart decision-making system needs some reasoning mechanism. For this purpose, contextual defeasible reasoning is used. The flow/sharing of information between heterogeneous contexts is done and maintained using rules. <xref ref-type="fig" rid="F2">Figure 2</xref> explains the data acquisition and sharing in a smart home environment. The virtual sensors embedded in the smart home or worn by the patient inside the smart home collect raw data and send it to the virtual agents in a continuous manner. The virtual agents, which are intelligent, use their reasoning capabilities to generate an alert if a certain reading is obtained which is above or below a certain threshold. The agents alert the smart hospital domain&#x00027;s smart decision-making system.</p>
<fig id="F2" position="float">
<label>Figure 2</label>
<caption><p>Smart home system.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-10-849185-g0002.tif"/>
</fig>
<p><xref ref-type="fig" rid="F3">Figure 3</xref> explains the collection and transfer of data in a smart hospital environment. The virtual sensors embedded all over the hospital collect raw data and continuously share it with the virtual agents. The virtual agents use their reasoning capabilities and generate an alert if a particular acquired data reading is beyond or below a certain threshold. This alert generated is sent to the smart decision-making system by the agents implemented in the smart hospital domain. Databases containing information about the patient&#x00027;s allergies, and insurance, are also involved in this context or domain. They send the relevant data to the smart decision-making system whenever needed.</p>
<fig id="F3" position="float">
<label>Figure 3</label>
<caption><p>Smart hospital system.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-10-849185-g0003.tif"/>
</fig>
<p>Intelligent virtual agents carry out the step that includes data acquisition of the MCS. The virtual agents take into account all data that real physical agents measure. The proposed system includes Multi-Context Systems consisting of several heterogeneous contexts. After this, in order to map the acquired data into the different domains of the system, ontologies are developed with their own set of rules. The developed ontologies are then mapped to their correlated description logic. Ontologies based on descriptive logic use the distributed description logic for interconnection <italic>via</italic> mapping rules. Once the system gets settled, the flow of information begins by heterogeneous contexts interactivity. Contextual defeasible reasoning (CDL) is applied to the system after the information flow and used to handle any inconsistencies.</p>
<p>After this, contextual defeasible reasoning is applied to the system to handle any inconsistencies. CDL uses its facts, strict, defeasible, and defeater rules and preferences to solve these issues. The proposed framework verification is achieved by intending to develop a prototype or with the help of simulation. At the moment, implementing the proposed system is difficult due to financial and technical constraints. Our emphasis is mainly on research and partially on development. The development done is mainly for testing purposes. We are assuming that sensors are collecting the data. This data is modeled using agents. The reasoning performed on this system is done through contextual defeasible reasoning. Since our system is heterogeneous, therefore, initially, the agents are defined in different heterogeneous contexts. These heterogeneous contexts communicate with each other <italic>via</italic> mapping rules. <xref ref-type="fig" rid="F4">Figure 4</xref> explains the overall layered architecture of the proposed framework.</p>
<fig id="F4" position="float">
<label>Figure 4</label>
<caption><p>Proposed system layered architecture.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-10-849185-g0004.tif"/>
</fig></sec>
<sec id="s4">
<title>4. Framework Development</title>
<sec>
<title>4.1. Context Development</title>
<p>To check the correctness of this work, we have developed a case study about a person who has Parkinson&#x00027;s disease (a neurodegenerative disease). The following two contexts have been developed for this case study.</p>
<sec>
<title>4.1.1. Context 1: Smart Home</title>
<p>Since memory loss is the dilemma of Parkinson&#x00027;s disease, Alice&#x00027;s house has been embedded with various sensors. One of them is the motion detector sensor for sensing the current position of Alice, i.e., whether she is sitting, standing, has fallen over, or is showing symptoms of Slowed movement (bradykinesia) (<xref ref-type="bibr" rid="B21">21</xref>) one of the cardinal manifestations of Parkinson&#x00027;s disease, and for determining the current location of Alice in her house, i.e., Alice is in which room of her house is currently. This sensor is embedded in every room of her house. There are also smoke detection sensors to detect the presence of smoke or fire in the house. Another sensor being used is the carbon monoxide (CO) detection sensor that helps in alerting about emergencies, such as a person has turned on the gas of the stove but forgot to light it. Carbon monoxide is an extremely gas, and interaction with it for an extended period can be injurious to health (<xref ref-type="bibr" rid="B22">22</xref>). The smoke detectors are embedded everywhere in the house. However, the carbon monoxide detector is embedded in the kitchen only. On average, the carbon monoxide level recorded in houses with gas stoves is between 0.5 and 5 parts per million (ppm). However, in houses with gas stoves that are properly fixed, the normal recorded level is between 5 and 15 ppm, but the level may be 30 ppm or higher if the gas stoves are not correctly fixed (<xref ref-type="bibr" rid="B22">22</xref>). <xref ref-type="fig" rid="F5">Figure 5</xref> shows some example rules for the smart home context.</p>
<fig id="F5" position="float">
<label>Figure 5</label>
<caption><p>Example rules of context 1 smart home.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-10-849185-g0005.tif"/>
</fig></sec>
<sec>
<title>4.1.2. Context 1: Smart Hospital</title>
<p>In addition to home embedded sensors, some sensors are worn by Alice. These sensors are the heart rate monitoring sensor to detect fluctuations in heart rate, body temperature sensors for measuring changes in body temperature, and surface electrodes sensors for measuring electrocardiography (ECG), electromyography (EMG), or electroencephalography (EEG). They are used to monitor the electrical activities of the heart, muscles, and brain, respectively, directly from the skin&#x00027;s surface, eventually providing information about rigidity in the skin and detecting body tremors, both of which are prevalent symptoms of Parkinson&#x00027;s disease.</p>
<p>It must be mentioned here that a specific range of &#x0201C;normal&#x0201D; values is associated with each of these sensors. In case a reading value of a sensor goes above or below this range, an alert is issued by the sensor. The normal range for a heart monitoring sensor is 60&#x02013;100 bpm (precisely 82 bpm). Usually, an adult has a body temperature between 97 and 99 F (<xref ref-type="bibr" rid="B22">22</xref>). For ECG sensors, normal electrocardiography intervals are 0.6&#x02013;1.2 s. Based on the muscle, the normal EMG range is between 50 &#x003BC;V and 30 mV. An average adult has EEG readings between 8 Hz and higher. For EMG, a reading of 7 Hz or less is considered abnormal in awake adults. However, they are considered normal in children, or sleeping adults (<xref ref-type="bibr" rid="B23">23</xref>). <xref ref-type="fig" rid="F6">Figure 6</xref> shows some example rules for the wearable device context.</p>
<fig id="F6" position="float">
<label>Figure 6</label>
<caption><p>Example rules of context 2 smart hospital.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-10-849185-g0006.tif"/>
</fig></sec></sec>
<sec>
<title>4.2. Agent Development</title>
<p>Nine intelligent virtual agents are designed for the proposed framework. Their description is provided below.</p>
<list list-type="bullet">
<list-item><p>Systolic Blood Pressure (BP) Agent: For monitoring the systolic BP</p></list-item>
<list-item><p>Diastolic BP Agent: For monitoring the diastolic BP</p></list-item>
<list-item><p>Body Temperature Agent: For monitoring the body temperature</p></list-item>
<list-item><p>Heart-Rate-Agent: For monitoring the Heart Rate</p></list-item>
<list-item><p>EEG-Agent: For monitoring the EEG</p></list-item>
<list-item><p>ECG-Agent: For monitoring the ECG</p></list-item>
<list-item><p>EMG-Agent: For monitoring the EMG</p></list-item>
<list-item><p>Carbon Monoxide-Agent: This agent monitors the carbon monoxide level</p></list-item>
<list-item><p>Carbon Dioxide-Agent: This agent monitors the carbon dioxide level</p></list-item>
<list-item><p>Room-Temperature-Agent: This agent monitors the room temperature</p></list-item>
</list>
</sec>
<sec>
<title>4.3. Ontology Development</title>
<p>For system modeling, contextual information is obtained from multiple ontologies.To model distributed domains for the proposed system, a smart home ontology and a smart hospital ontology are developed for modeling the proposed framework. Fragment of the smart home ontology is shown in <xref ref-type="fig" rid="F7">Figure 7</xref>.</p>
<fig id="F7" position="float">
<label>Figure 7</label>
<caption><p>Smart home ontology.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-10-849185-g0007.tif"/>
</fig>
<p>The smart home ontology describes the flow of information in this context. The second ontology developed is the smart hospital ontology. This ontology describes the structuring of the smart hospital context and expresses the relations between different smart hospital context entities. It also describes the flow of information in this context. Fragment of the smart hospital ontology is shown in <xref ref-type="fig" rid="F8">Figure 8</xref>.</p>
<fig id="F8" position="float">
<label>Figure 8</label>
<caption><p>Smart hospital ontology.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-10-849185-g0008.tif"/>
</fig>
<p>In the proposed framework, agents acquire contextual data either from a single ontology or multiple ontologies based on the system&#x00027;s design. Mapping rules have been designed to model the flow of information between the contexts involved in the framework. To manage inconsistencies in such systems, priorities are assigned to the mapping rules, with the rule having the higher priority being fired. Class hierarchies of the developed two ontologies are also shown in <xref ref-type="fig" rid="F7">Figure 7</xref>.</p></sec></sec>
<sec id="s5">
<title>5. Temporal Logic Formalism</title>
<p>There are two types of models in temporal logic. Linear temporal logic (LTL) and computational tree temporal logic (CTL*) (<xref ref-type="bibr" rid="B24">24</xref>). In our work, we use CLT* instead of LTL because LTL is based on a single computational path (<xref ref-type="bibr" rid="B25">25</xref>).</p>
<p>The semantic of TL is defined by CLT<sup>&#x0002A;</sup> (<xref ref-type="bibr" rid="B26">26</xref>). The changing of the current state, i.e., state to -&#x0003E; state from and state from -&#x0003E; state to, is represented by the &#x003C9;-tree shape (<xref ref-type="bibr" rid="B27">27</xref>). The states correspond to the agent knowledge base and communication mechanism. The agent fires multiple rules in a multi-agent system to reach the required state that is acceptable as an outcome. Each agent may drive new context whenever it matches the pre-defined rules. When the agent acts on its actions, the system moves to the next state. If the agent did not acquire the data, the agent tells its corresponding agent about the context, and then the system moves to the other state.</p>
<sec>
<title>5.1. Current Situation Observation</title>
<p>When an agent gets something from its corresponding sensor, it checks it to map the acquired context with the internal knowledge.</p>
<sec>
<title>5.1.1. Pre-defined Rules</title>
<list list-type="bullet">
<list-item><p>G Ag<sup><italic>i</italic></sup> (&#x003D5;, t1) where &#x003D5; &#x02208; IK<sup><italic>i</italic></sup> - (i)</p></list-item>
<list-item><p>G Ag<sup><italic>i</italic></sup> (&#x000AC;&#x003D5;, t1) where &#x003D5; &#x02208; IK<sup><italic>i</italic></sup> - (ii)</p></list-item>
</list>
<p>In the rule mentioned above i and ii, globally, agent i gets information from the environment which belongs to the agent&#x00027;s internal knowledge IK or information has not been detected by agent i but belongs to internal knowledge. Here, IK<sup><italic>i</italic></sup> represents internal knowledge. For instance, when the fire information is acquired to the agent thus the fire context belongs to the agent&#x00027;s internal knowledge; else, not fire belongs to it.</p>
<list list-type="bullet">
<list-item><p>F [&#x0220B; Tell (i, j, &#x003D5;)] - (iii)</p></list-item>
</list>
<p>In rule iii, it states in the future, on some existing states s&#x00027; agent<sup><italic>i</italic></sup> believes in telling agent<sup><italic>i</italic></sup> about some acquired context information, so the agent<sup><italic>i</italic></sup> can be auto-trigger.</p>
<list list-type="bullet">
<list-item><p>Ag<sup><italic>i</italic></sup> (&#x003D5;, t1) where &#x003D5; &#x02208; HI - (iv)</p></list-item>
</list>
<p>Agent<sup><italic>i</italic></sup> acquired the state formula concerning t1, and it is true, and that state formula belongs to acquire HI. For example, after selecting the optimal plan, agent<sup><italic>i</italic></sup> has the information about calling the humanitarian assistance for human involvement to give the alert related to the unauthorized entity, as shown in rule iv.</p></sec>
<sec>
<title>5.1.2. Successful Events</title>
<list list-type="bullet">
<list-item><p>&#x003D5; i &#x003B5; &#x003C8; i - (v)</p></list-item>
</list>
<p>When agent<sup><italic>i</italic></sup> acquires the context &#x003D5; about one state formula or agent<sup><italic>i</italic></sup> acquires the context &#x003C8; about other state formula or both. In every way, it would be a successful case. For example, if agent<sup><italic>i</italic></sup> gets the information about an animal who is on-site where the camp of soldiers are, or agent<sup><italic>i</italic></sup> gets the information about detecting the unauthorized entity or both. It would be a successful case, as shown in rule v.</p>
<list list-type="bullet">
<list-item><p>Agi (&#x000AC;&#x003D5;, t1) where &#x003D5; &#x003F5; IK<sup><italic>i</italic></sup> -(vi)</p></list-item>
</list>
<p>Agent i has not detected any information, and it does belong to internal knowledge; therefore, it is the case of partial success, e.g., an agent did not get the information about detecting any unauthorized entity, is still a partial success case, as shown in rule vi.</p>
<list list-type="bullet">
<list-item><p>Ask (j, i, &#x003D5;) &#x003B5; Tell (i, j, &#x003D5;) - (vii)</p></list-item>
</list>
<p>In rule vii, agent<sup><italic>i</italic></sup> can ask agent<sup><italic>i</italic></sup> about the specific context, or agent<sup><italic>i</italic></sup> has the pre-defined rule to tell the specific context to agent<sup><italic>i</italic></sup>. For example, agent<sup><italic>i</italic></sup> has the rule to ask agent<sup><italic>i</italic></sup> about detection, or agent<sup><italic>i</italic></sup> has the rule to tell agent<sup><italic>i</italic></sup> about the detected entity.</p></sec>
<sec>
<title>5.1.3. Current Situation Step of Actions</title>
<p>After the agent checks the acquired information is true or not, it has the step of actions to follow to act efficiently.</p>
<list list-type="bullet">
<list-item><p>Xi (&#x003B1;, ti) - (viii)</p></list-item>
</list>
<p>In rule viii, after matching the predefined rules, the very next thing is, agent<sup><italic>i</italic></sup> has to perform &#x003B8; certain actions &#x003B1;. For instance, if the unauthorized entity context detection is true, then agent<sup><italic>i</italic></sup> has actions &#x003B1; to perform &#x003B8; in a specific time t<sub><italic>i</italic></sub>.</p>
<list list-type="bullet">
<list-item><p>F [&#x0220B; i (&#x003B1; (HI), t<sub><italic>i</italic></sub>)] - (ix)</p></list-item>
</list>
<p>After matching the pre-defined rules, in the future, in some existing states, an agent<sup><italic>i</italic></sup> has the actions to perform HI requirements. After selecting the optimal plan, agent<sup><italic>i</italic></sup> would contact the HI to prevent the situation from any damage, as shown in rule xi.</p></sec>
<sec>
<title>5.1.4. Task Priorities</title>
<list list-type="bullet">
<list-item><p>DL (H) iff &#x003D5; i &#x0222A; &#x003C8; j - (x)</p></list-item>
<list-item><p>DL (S) iff &#x003D5; i &#x02227; &#x003C8; j - (xi)</p></list-item>
</list>
<p>The danger level DL is always high (H). If the one-state formula is detected &#x003D5; unless the other state formula &#x003B5; is detected, DL changes to severe (S). For example, unauthorized entity &#x003D5; with any weapon at the site &#x003C8; is severe DL, as shown in rules x and xi.</p></sec></sec></sec>
<sec id="s6">
<title>6. Simulation of Proposed System</title>
<p>This section explains the case study, we have developed for the validation of our system. For its implementation, we have used the Netlogo simulation tool. Netlogo is used for modeling, and it teaches the concept of agents like turtles, patches, observers and links, etc., it is used in different kinds of scenarios like in gaming, or if people built a model for a war to check it whether it is correct or not, or/ and in disaster management scenarios, etc. It is open-source software that includes an interface, commands to create an agent model and execute them. It has built-in commands and reports that they call primitive, and the command reports created by a programmer called procedure (<xref ref-type="bibr" rid="B28">28</xref>, <xref ref-type="bibr" rid="B29">29</xref>). To achieve the perfect communication between agents, FIPA protocol was used (<xref ref-type="bibr" rid="B30">30</xref>).</p>
<p>For example, agent 1 tells agent two about an &#x0201C;Emergency Situation&#x0201D; by sending &#x0201C;Abnormal BP detected&#x0201D; in the message.</p>
<disp-quote><p>[&#x00022;Emergency Situation&#x00022; &#x00022;sender:1&#x00022;&#x00022;content:&#x00022; &#x00022;Abnormal BP Detected&#x00022; &#x00022;receiver:2.&#x00022;]</p></disp-quote>
<p><xref ref-type="fig" rid="F9">Figure 9</xref> shows the interface of our system. We created seven context-aware agents named controller agent, BP agent, body temperature agent, heart-rate agent, electrical-activity agent, carbon-level agent, room-temperature agent. Each of them has their unique functionality based on their own set of facts and rules, also perform reasoning and take decisions intelligently. These agents can communicate in NetLogo as they are connected by creating a link.</p>
<fig id="F9" position="float">
<label>Figure 9</label>
<caption><p>System interface.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-10-849185-g0009.tif"/>
</fig>
<p><xref ref-type="fig" rid="F10">Figure 10</xref> shows the execution of the system. During the execution, the system continuously monitors the patient&#x00027;s situation as &#x0201C;Continuously Monitoring.&#x0201D; When any &#x0201C;Emergency Situation&#x0201D; is detected controller agent gets to inform a respective agent that is highly abnormal body temperature detected. After that controller agent sends a message to the doctor by alerting the situation &#x0201C;Doctor has been alerted with high priority due to high body temperature.&#x0201D;</p>
<fig id="F10" position="float">
<label>Figure 10</label>
<caption><p>System interface.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpubh-10-849185-g0010.tif"/>
</fig></sec>
<sec id="s7">
<title>7. Algorithm</title>
<p>The algorithm has two parts. The first part (<xref ref-type="table" rid="T2">Algorithm 1</xref>) is invoked as soon as the system begins. However, invoking the second part of the algorithm (<xref ref-type="table" rid="T3">Algorithm 2</xref>) depends on obtaining an abnormal value (above or below the pre-defined normal range). In <xref ref-type="table" rid="T2">Algorithm 1</xref>, the agents collect contextual information from their environment. Until that contextual information remains within a specific range (the value obtained is above the lower pre-defined range and below the upper pre-defined range), the system generates no alert and usually works. However, if any agent obtains a value that does not fall within the pre-defined normal range (the value obtained is either below the lower or above the upper pre-defined range), the system generates an alert (<xref ref-type="table" rid="T3">Algorithm 2</xref>) invoked.</p>
<table-wrap position="float" id="T2">
<label>Algorithm 1</label>
<caption><p>Obtaining of Data.</p></caption>
<graphic xlink:href="fpubh-10-849185-i0001.tif"/>
</table-wrap>
<table-wrap position="float" id="T3">
<label>Algorithm 2</label>
<caption><p>Conflicting Rule Set Creation</p></caption>
<graphic xlink:href="fpubh-10-849185-i0002.tif"/>
</table-wrap>
<p>In <xref ref-type="table" rid="T3">Algorithm 2</xref>, the priority of the rule instances is fired, and the rule with the highest priority is chosen. The following action, alerting the corresponding authority, depends on the rule instance fired. In the case of PC_Agents rule instances, the doctors, caretakers, and the next of kin are alerted. On the other hand, when the rule instances fired are from Env_Agents, then the fire department, emergency response unit, and the police department are alerted.</p>
<p>This alert is sent to the corresponding authority by the controller agent of the system. The controller agent is the primary agent of the system controlling all information flow. All the contextual information obtained by any agent is sent directly to the controller agent. In case of an emergency (an abnormal value), the agent sends an alert to the controller agent, and the controller agent then contacts the corresponding authority. The contact can be made in any number of ways, and it can be a text message, an email, a notification, a phone call, or a WhatsApp message. The mode of communication is chosen by the corresponding authority and then included as a command in the memory of the controller agent.</p>
<p>Once an alert has been generated, it is up to the corresponding authority to either take action or not do anything. The corresponding authority solely takes this decision. The reason for this decision goes beyond the scope of this work and the author&#x00027;s domain. If the corresponding authority believes action must be taken, it alerts the system, and the flag&#x00027;s value is set to 1. The flag is a variable that can have only two values, either 1 or 0. each value corresponds to a separate course of actions. If the flag&#x00027;s value becomes 1, the system knows that the corresponding authorities have taken over. In such a case, the system will halt and wait to be rebooted by the corresponding authority. However, if the corresponding authority believes that no action needs to be taken, it does not alert the system, and the flag&#x00027;s value is set to 0. If the flag&#x00027;s value becomes 0, then the system knows that the corresponding authorities have not taken over now, and they will continue to work as usual (continue gathering contextual information). In such a case, the system will not halt. The working of the algorithm in case a single rule is fired or in case multiple rules are fired simultaneously is described below. It must be mentioned here that by default, the priority of patient care agents (PC_Agents) is more than environmental agents (Env_Agents).</p>
<sec>
<title>7.1. Case 1: Single Rule Instance Fired</title>
<p>When a single rule is fired, the system will function according to that rule without any conflict or issue.</p></sec>
<sec>
<title>7.2. Case 2: Multiple Rules Instances</title>
<p>When multiple rules are fired, then the set CRS<sub><italic>pri</italic></sub> will be developed. All the conflicting rules will be included in the CRS<sub><italic>pri</italic></sub> set, and ultimately the rule with the highest priority will be selected.</p></sec></sec>
<sec id="s8">
<title>8. Limitations and Future Scope</title>
<p>Since the inconsistencies in heterogeneous knowledge sources systems usually do not have a single reason for occurrence but arrive from the interaction of heterogeneous knowledge bases, therefore, conflicting, or contradictory information is a major reason for an inconsistent system. According to the best of our knowledge, the existing approaches propose no hard and fast method for assessing inconsistencies in MCS as so far, no proposed method is flexible enough to accommodate the criteria of various applications. A new approach is needed to provide a single platform to overcome the issues of inconsistency due to conflicting or contradictory information. This new approach must have a reasoning mechanism to handle the issues while having a solid logical base to perform sound reasoning. Since these issues occur due to knowledge sharing among heterogeneous contexts, a mechanism is needed to represent the knowledge formally. There can be multiple heterogeneous contexts in a multi-context system. Thus having a mechanism for structuring such a system in an organized manner is extremely necessary. The proposed framework fulfills all the requirements mentioned above by using ontology to structure the system, description logic for knowledge representation, and contextual defeasible reasoning for performing reasoning. This work is beneficial for patients who require continuous monitoring of their health, but they cannot afford to stay in a monitoring facility or do not have enough resources to accommodate all their patients. In such cases, this system can be helpful as it will allow the patient to be under supervision continuously by the agents, and in case of an emergency, the authorities will be instantly notified. Another implementation of this system is for those patients who may not need continuous monitoring but are suffering from terminal illnesses such as Parkinson&#x00027;s disease. In these cases, the disease can act up at any moment. The exact time of such situations cannot be predicted. In these scenarios, the patients can be monitored in the safety of their homes, and in case of emergencies, the medical authorities will be notified immediately. In other domains, this system can also be implemented. In disaster management systems, this system can be used to manage disasters such as fire eruptions, carbon dioxide or carbon monoxide leakage, the occurrence of flood, etc.</p></sec>
<sec sec-type="conclusions" id="s9">
<title>9. Conclusion</title>
<p>In this work, an ontology-driven formalism has been proposed for handling inconsistency in a highly dynamic environment. The proposed framework and application differ from other approaches because it uses contextual defeasible logic to solve inconsistencies. The proposed framework can provide a single platform to overcome the issues of inconsistency occurring due to contradictory information in a multi-context system. Contextual defeasible reasoning has been chosen to perform reasoning on the system as it can handle inconsistency issues by providing a solid logical base to perform sound reasoning. Since the issue occurs due to sharing knowledge among heterogeneous contexts, description logic (DL) and distributed description logic (DDL) mechanisms represent the knowledge being shared formally. While an ontology-based modeling approach has been adopted to model the multiple heterogeneous contexts in a multi-context system. Thus, the proposed framework provides a formalism of multi-agents based on that can handle conflicting information in an environment that is highly decentralized in nature.</p></sec>
<sec sec-type="data-availability" id="s10">
<title>Data Availability Statement</title>
<p>The original contributions presented in the study are included in the article/supplementary material, further inquiries can be directed to the corresponding author/s.</p></sec>
<sec id="s11">
<title>Author Contributions</title>
<p>AJ and SA: conceptualization. SA: data curation. AJ: formal analysis, investigation, methodology, and software. SB and MN: funding acquisition. KS and MN: project administration. RA and MN: resources and writing&#x02014;review and editing. AM, AJ, and KS: supervision. SA, AM, and RA: validation. SA and KS: visualization. All authors contributed to the article and approved the submitted version.</p></sec>
<sec sec-type="funding-information" id="s12">
<title>Funding</title>
<p>This paper was supported by TU-Dresden, Dresden, Germany.</p></sec>
<sec sec-type="COI-statement" id="conf1">
<title>Conflict of Interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest. The handling editor declared a past co-authorship with one of the author AJ.</p></sec>
<sec sec-type="disclaimer" id="s13">
<title>Publisher&#x00027;s Note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p></sec>
</body>
<back>
<ref-list>
<title>References</title>
<ref id="B1">
<label>1.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Akhtar</surname> <given-names>SM</given-names></name> <name><surname>Nazir</surname> <given-names>M</given-names></name> <name><surname>Saleem</surname> <given-names>K</given-names></name> <name><surname>Haque</surname> <given-names>HMU</given-names></name> <name><surname>Hussain</surname> <given-names>I</given-names></name></person-group>. <article-title>An ontology-driven IoT based healthcare formalism</article-title>. <source>Int J Adv Comput Sci Appl.</source> (<year>2020</year>) <volume>11</volume>:<fpage>479</fpage>&#x02013;<lpage>86</lpage>. <pub-id pub-id-type="doi">10.14569/IJACSA.2020.0110261</pub-id></citation></ref>
<ref id="B2">
<label>2.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Akhtar</surname> <given-names>SM</given-names></name> <name><surname>Haque</surname> <given-names>HMU</given-names></name></person-group>. <article-title>Contextual defeasible reasoning framework for heterogeneous systems</article-title>. In: <source>Context-Aware Systems and Applications, and Nature of Computation and Communication.</source> <publisher-loc>Springer</publisher-loc> (<year>2020</year>). p. <fpage>16</fpage>&#x02013;<lpage>30</lpage>.</citation></ref>
<ref id="B3">
<label>3.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Javed</surname> <given-names>AR</given-names></name> <name><surname>Sarwar</surname> <given-names>MU</given-names></name> <name><surname>ur Rehman</surname> <given-names>S</given-names></name> <name><surname>Khan</surname> <given-names>HU</given-names></name> <name><surname>Al-Otaibi</surname> <given-names>YD</given-names></name> <name><surname>Alnumay</surname> <given-names>WS</given-names></name></person-group>. <article-title>Pp-spa: privacy preserved smartphone-based personal assistant to improve routine life functioning of cognitive impaired individuals</article-title>. <source>Neural Process Lett.</source> (<year>2021</year>) <volume>10</volume>:<fpage>1</fpage>&#x02013;<lpage>18</lpage>. <pub-id pub-id-type="doi">10.1007/s11063-020-10414-5</pub-id></citation></ref>
<ref id="B4">
<label>4.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Mahfooz ul Haque</surname> <given-names>H</given-names></name> <name><surname>Muhammad Akhtar</surname> <given-names>S</given-names></name> <name><surname>Uddin</surname> <given-names>I</given-names></name></person-group>. <article-title>Contextual defeasible reasoning framework for heterogeneous knowledge sources</article-title>. In: <source>Concurrency and Computation: Practice and Experience</source>. <publisher-loc>London</publisher-loc>: <publisher-name>Springer-Verlag</publisher-name>. p. <fpage>e6446</fpage>.</citation></ref>
<ref id="B5">
<label>5.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Sharmeen</surname> <given-names>Z</given-names></name> <name><surname>Martinez-Enriquez</surname> <given-names>AM</given-names></name> <name><surname>Aslam</surname> <given-names>M</given-names></name> <name><surname>Syed</surname> <given-names>AZ</given-names></name> <name><surname>Waheed</surname> <given-names>T</given-names></name></person-group>. <article-title>Multi agent system based interface for natural disaster</article-title>. In: <source>International Conference on Active Media Technology.</source> <publisher-loc>Warsaw</publisher-loc>: <publisher-name>Springer</publisher-name> (<year>2014</year>). p. <fpage>299</fpage>&#x02013;<lpage>310</lpage>.</citation></ref>
<ref id="B6">
<label>6.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Haiouni</surname> <given-names>H</given-names></name> <name><surname>Maamri</surname> <given-names>R</given-names></name></person-group>. <article-title>Context-aware multi-agent planning in intelligent environments</article-title>. <source>Multiagent Grid Syst.</source> (<year>2019</year>) <volume>15</volume>:<fpage>219</fpage>&#x02013;<lpage>36</lpage>. <pub-id pub-id-type="doi">10.3233/MGS-190310</pub-id></citation></ref>
<ref id="B7">
<label>7.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Esposito</surname> <given-names>A</given-names></name> <name><surname>Tarricone</surname> <given-names>L</given-names></name> <name><surname>Zappatore</surname> <given-names>M</given-names></name> <name><surname>Catarinucci</surname> <given-names>L</given-names></name> <name><surname>Colella</surname> <given-names>R</given-names></name></person-group>. <article-title>A framework for context-aware home-health monitoring</article-title>. <source>Int J Auton Adapt Commun Syst.</source> (<year>2010</year>) <volume>3</volume>:<fpage>75</fpage>&#x02013;<lpage>91</lpage>. <pub-id pub-id-type="doi">10.1007/978-3-540-69293-5_11</pub-id></citation></ref>
<ref id="B8">
<label>8.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Al-Anbaki</surname> <given-names>NS</given-names></name> <name><surname>Obeid</surname> <given-names>N</given-names></name> <name><surname>Sabri</surname> <given-names>KE</given-names></name></person-group>. <article-title>A defeasible logic-based framework for contextualizing deployed applications</article-title>. <source>Work.</source> (<year>2019</year>) <volume>10</volume>:<fpage>176</fpage>&#x02013;<lpage>86</lpage>. <pub-id pub-id-type="doi">10.14569/IJACSA.2019.0100923</pub-id></citation></ref>
<ref id="B9">
<label>9.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Eiter</surname> <given-names>T</given-names></name> <name><surname>Fink</surname> <given-names>M</given-names></name> <name><surname>Sch&#x000FC;ller</surname> <given-names>P</given-names></name> <name><surname>Weinzierl</surname> <given-names>A</given-names></name></person-group>. <article-title>Towards diagnosing inconsistency in nonmonotonic multi-context systems</article-title>. <source>Logic Based Interpret.</source> (<year>2009</year>) <volume>9</volume>:<fpage>13</fpage>. <pub-id pub-id-type="doi">10.1007/978-3-642-15675-5_14</pub-id></citation></ref>
<ref id="B10">
<label>10.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bellini</surname> <given-names>P</given-names></name> <name><surname>Benigni</surname> <given-names>M</given-names></name> <name><surname>Billero</surname> <given-names>R</given-names></name> <name><surname>Nesi</surname> <given-names>P</given-names></name> <name><surname>Rauch</surname> <given-names>N</given-names></name></person-group>. <article-title>Km4City ontology building vs data harvesting and cleaning for smart-city services</article-title>. <source>J Vis Lang Comput.</source> (<year>2014</year>) <volume>25</volume>:<fpage>827</fpage>&#x02013;<lpage>39</lpage>. <pub-id pub-id-type="doi">10.1016/j.jvlc.2014.10.023</pub-id></citation></ref>
<ref id="B11">
<label>11.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Tapakire</surname> <given-names>BA</given-names></name> <name><surname>Patil</surname> <given-names>MM</given-names></name></person-group>. <article-title>IoT based smart agriculture using thingspeak</article-title>. <source>Int J Eng Res Technol.</source> (<year>2019</year>) 8. <pub-id pub-id-type="doi">10.17577/IJERTV8IS120185</pub-id><pub-id pub-id-type="pmid">34201041</pub-id></citation></ref>
<ref id="B12">
<label>12.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Maddikunta</surname> <given-names>PKR</given-names></name> <name><surname>Pham</surname> <given-names>QV</given-names></name> <name><surname>Prabadevi</surname> <given-names>B</given-names></name> <name><surname>Deepa</surname> <given-names>N</given-names></name> <name><surname>Dev</surname> <given-names>K</given-names></name> <name><surname>Gadekallu</surname> <given-names>TR</given-names></name> <etal/></person-group>. <article-title>Industry 5.0: a survey on enabling technologies and potential applications</article-title>. <source>J Ind Inf Integr.</source> (<year>2021</year>) <volume>15</volume>:<fpage>100257</fpage>. <pub-id pub-id-type="doi">10.1016/j.jii.2021.100257</pub-id></citation></ref>
<ref id="B13">
<label>13.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Shrivastava</surname> <given-names>R</given-names></name> <name><surname>Kumar</surname> <given-names>P</given-names></name> <name><surname>Tripathi</surname> <given-names>S</given-names></name> <name><surname>Tiwari</surname> <given-names>V</given-names></name> <name><surname>Rajput</surname> <given-names>DS</given-names></name> <name><surname>Gadekallu</surname> <given-names>TR</given-names></name> <etal/></person-group>. <article-title>A novel grid and place neuron&#x00027;s computational modeling to learn spatial semantics of an environment</article-title>. <source>Appl Sci.</source> (<year>2020</year>) <volume>10</volume>:<fpage>5147</fpage>. <pub-id pub-id-type="doi">10.3390/app10155147</pub-id></citation></ref>
<ref id="B14">
<label>14.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bhattacharya</surname> <given-names>S</given-names></name> <name><surname>Maddikunta</surname> <given-names>PKR</given-names></name> <name><surname>Hakak</surname> <given-names>S</given-names></name> <name><surname>Khan</surname> <given-names>WZ</given-names></name> <name><surname>Bashir</surname> <given-names>AK</given-names></name> <name><surname>Jolfaei</surname> <given-names>A</given-names></name> <etal/></person-group>. <article-title>Antlion re-sampling based deep neural network model for classification of imbalanced multimodal stroke dataset</article-title>. <source>Multimedia Tools Appl.</source> (<year>2020</year>) <volume>10</volume>:<fpage>664</fpage>&#x02013;<lpage>70</lpage>. <pub-id pub-id-type="doi">10.1007/s11042-020-09988-y</pub-id></citation></ref>
<ref id="B15">
<label>15.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wang</surname> <given-names>W</given-names></name> <name><surname>Xu</surname> <given-names>H</given-names></name> <name><surname>Alazab</surname> <given-names>M</given-names></name> <name><surname>Gadekallu</surname> <given-names>TR</given-names></name> <name><surname>Han</surname> <given-names>Z</given-names></name> <name><surname>Su</surname> <given-names>C</given-names></name></person-group>. <article-title>Blockchain-based reliable and efficient certificateless signature for IIoT devices</article-title>. <source>IEEE Trans Ind Inf.</source> (<year>2021</year>) <volume>2</volume>:<fpage>193</fpage>&#x02013;<lpage>200</lpage>. <pub-id pub-id-type="doi">10.1109/TII.2021.3084753</pub-id></citation></ref>
<ref id="B16">
<label>16.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wang</surname> <given-names>W</given-names></name> <name><surname>Qiu</surname> <given-names>C</given-names></name> <name><surname>Yin</surname> <given-names>Z</given-names></name> <name><surname>Srivastava</surname> <given-names>G</given-names></name> <name><surname>Gadekallu</surname> <given-names>TR</given-names></name> <name><surname>Alsolami</surname> <given-names>F</given-names></name> <etal/></person-group>. <article-title>Blockchain and PUF-based lightweight authentication protocol for wireless medical sensor networks</article-title>. <source>IEEE Internet Things J.</source> (<year>2021</year>) <fpage>1</fpage>&#x02013;<lpage>18</lpage>. <pub-id pub-id-type="doi">10.1109/JIOT.2021.3117762</pub-id></citation></ref>
<ref id="B17">
<label>17.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Xiong</surname> <given-names>H</given-names></name> <name><surname>Jin</surname> <given-names>C</given-names></name> <name><surname>Alazab</surname> <given-names>M</given-names></name> <name><surname>Yeh</surname> <given-names>KH</given-names></name> <name><surname>Wang</surname> <given-names>H</given-names></name> <name><surname>Gadekallu</surname> <given-names>TRR</given-names></name> <etal/></person-group>. <article-title>On the design of blockchain-based ECDSA with fault-tolerant batch verication protocol for blockchain-enabled IoMT</article-title>. <source>IEEE J Biomed Health Inf.</source> (<year>2021</year>) <volume>42</volume>:<fpage>4</fpage>&#x02013;<lpage>13</lpage>. <pub-id pub-id-type="doi">10.1109/JBHI.2021.3112693</pub-id><pub-id pub-id-type="pmid">34529581</pub-id></citation></ref>
<ref id="B18">
<label>18.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Haque</surname> <given-names>HMU</given-names></name> <name><surname>Khan</surname> <given-names>SU</given-names></name> <name><surname>Hussain</surname> <given-names>I</given-names></name></person-group>. <article-title>Semantic knowledge transformation for context-aware heterogeneous formalisms</article-title>. <source>Int J Adv Comput Sci Appl (IJACSA).</source> (<year>2019</year>) <volume>10</volume>:<fpage>664</fpage>&#x02013;<lpage>70</lpage>. <pub-id pub-id-type="doi">10.14569/IJACSA.2019.0101285</pub-id></citation></ref>
<ref id="B19">
<label>19.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Eiter</surname> <given-names>T</given-names></name> <name><surname>Fink</surname> <given-names>M</given-names></name> <name><surname>Weinzierl</surname> <given-names>A</given-names></name></person-group>. <article-title>Preference-based inconsistency assessment in multi-context systems</article-title>. In: <source>European Workshop on Logics in Artificial Intelligence.</source> <publisher-loc>Helsinki</publisher-loc>: <publisher-name>Springer.</publisher-name> (<year>2010</year>). p. <fpage>143</fpage>&#x02013;<lpage>55</lpage>.</citation></ref>
<ref id="B20">
<label>20.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Haque</surname> <given-names>HMU</given-names></name> <name><surname>Khan</surname> <given-names>SU</given-names></name></person-group>. <article-title>A context-aware reasoning framework for heterogeneous systems</article-title>. In: <source>2018 International Conference on Advancements in Computational Sciences (ICACS).</source> <publisher-loc>Lahore</publisher-loc>: <publisher-name>IEEE</publisher-name> (<year>2018</year>). p. <fpage>1</fpage>&#x02013;<lpage>9</lpage>.</citation></ref>
<ref id="B21">
<label>21.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Johnson</surname> <given-names>ME</given-names></name> <name><surname>Stecher</surname> <given-names>B</given-names></name> <name><surname>Labrie</surname> <given-names>V</given-names></name> <name><surname>Brundin</surname> <given-names>L</given-names></name> <name><surname>Brundin</surname> <given-names>P</given-names></name></person-group>. <article-title>Triggers, facilitators, and aggravators: redefining Parkinson&#x00027;s disease pathogenesis</article-title>. <source>Trends Neurosci.</source> (<year>2019</year>) <volume>42</volume>:<fpage>4</fpage>&#x02013;<lpage>13</lpage>. <pub-id pub-id-type="doi">10.1016/j.tins.2018.09.007</pub-id><pub-id pub-id-type="pmid">30342839</pub-id></citation></ref>
<ref id="B22">
<label>22.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Mshali</surname> <given-names>H</given-names></name> <name><surname>Lemlouma</surname> <given-names>T</given-names></name> <name><surname>Moloney</surname> <given-names>M</given-names></name> <name><surname>Magoni</surname> <given-names>D</given-names></name></person-group>. <article-title>A survey on health monitoring systems for health smart homes</article-title>. <source>Int J Ind Ergon.</source> (<year>2018</year>) <volume>66</volume>:<fpage>26</fpage>&#x02013;<lpage>56</lpage>. <pub-id pub-id-type="doi">10.1016/j.ergon.2018.02.002</pub-id></citation></ref>
<ref id="B23">
<label>23.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Yassine</surname> <given-names>A</given-names></name> <name><surname>Singh</surname> <given-names>S</given-names></name> <name><surname>Alamri</surname> <given-names>A</given-names></name></person-group>. <article-title>Mining human activity patterns from smart home big data for health care applications</article-title>. <source>IEEE Access.</source> (<year>2017</year>) <volume>5</volume>:<fpage>13131</fpage>&#x02013;<lpage>41</lpage>. <pub-id pub-id-type="doi">10.1109/ACCESS.2017.2719921</pub-id></citation></ref>
<ref id="B24">
<label>24.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Alagar</surname> <given-names>V</given-names></name> <name><surname>Periyasamy</surname> <given-names>K</given-names></name></person-group>. <article-title>Temporal logic</article-title>. In: <source>Specification of Software Systems.</source> <publisher-loc>Sangli</publisher-loc>: <publisher-name>Springer</publisher-name> (<year>2011</year>). p. <fpage>177</fpage>&#x02013;<lpage>229</lpage>.</citation></ref>
<ref id="B25">
<label>25.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Goranko</surname> <given-names>V</given-names></name> <name><surname>Rumberg</surname> <given-names>A</given-names></name></person-group>. <article-title>Temporal logic</article-title>. In: <source>Stanford Encyclopedia of Philosophy.</source> <publisher-loc>Evanston</publisher-loc>: <publisher-name>Center for Connected Learning and Computer-Based Modeling Northwestern University</publisher-name> (<year>2020</year>).</citation></ref>
<ref id="B26">
<label>26.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>van der Aalst</surname> <given-names>WM</given-names></name> <name><surname>De Beer</surname> <given-names>H</given-names></name> <name><surname>van Dongen</surname> <given-names>BF</given-names></name></person-group>. <article-title>Process mining and verification of properties: an approach based on temporal logic</article-title>. In: <source>OTM Confederated International Conferences &#x0201C;On the Move to Meaningful Internet Systems&#x0201D;.</source> <publisher-loc>Eindhoven</publisher-loc>: <publisher-name>Springer</publisher-name> (<year>2005</year>). p. <fpage>130</fpage>&#x02013;<lpage>47</lpage>.</citation></ref>
<ref id="B27">
<label>27.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Dormoy</surname> <given-names>J</given-names></name> <name><surname>Kouchnarenko</surname> <given-names>O</given-names></name> <name><surname>Lanoix</surname> <given-names>A</given-names></name></person-group>. <article-title>Using temporal logic for dynamic reconfigurations of components</article-title>. In: <source>International Workshop on Formal Aspects of Component Software.</source> <publisher-loc>Berlin</publisher-loc>: <publisher-name>Springer.</publisher-name> (<year>2010</year>). p. <fpage>200</fpage>&#x02013;<lpage>17</lpage>.</citation></ref>
<ref id="B28">
<label>28.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Tisue</surname> <given-names>S</given-names></name> <name><surname>Wilensky</surname> <given-names>U</given-names></name></person-group>. <article-title>NetLogo: design and implementation of a multi-agent modeling environment</article-title>. In: <source>Proceedings of Agent. Vol. 2004</source> (<publisher-loc>Fukushima</publisher-loc>). (<year>2004</year>). p. <fpage>7</fpage>&#x02013;<lpage>9</lpage>.</citation></ref>
<ref id="B29">
<label>29.</label>
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Sakellariou</surname> <given-names>I</given-names></name> <name><surname>Kefalas</surname> <given-names>P</given-names></name> <name><surname>Stamatopoulou</surname> <given-names>I</given-names></name></person-group>. <article-title>Enhancing NetLogo to simulate BDI communicating agents</article-title>. In: <source>Hellenic Conference on Artificial Intelligence.</source> <publisher-loc>Berlin</publisher-loc>: <publisher-name>Springer</publisher-name> (<year>2008</year>). p. <fpage>263</fpage>&#x02013;<lpage>75</lpage>.</citation></ref>
<ref id="B30">
<label>30.</label>
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hong</surname> <given-names>Mw</given-names></name> <name><surname>Cho</surname> <given-names>Dj</given-names></name></person-group>. <article-title>Ontology context model for context-aware learning service in ubiquitous learning environments</article-title>. <source>Int J Comput.</source> (<year>2008</year>) <volume>2</volume>:<fpage>172</fpage>&#x02013;<lpage>8</lpage>. <pub-id pub-id-type="doi">10.1145/2590651.2590776</pub-id></citation></ref>
</ref-list> 
</back>
</article>