<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1 20151215//EN" "http://jats.nlm.nih.gov/publishing/1.1/JATS-journalpublishing1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" article-type="research-article" dtd-version="1.1">
<front>
<journal-meta>
<journal-id journal-id-type="pmc">CMC</journal-id>
<journal-id journal-id-type="nlm-ta">CMC</journal-id>
<journal-id journal-id-type="publisher-id">CMC</journal-id>
<journal-title-group>
<journal-title>Computers, Materials &#x0026; Continua</journal-title>
</journal-title-group>
<issn pub-type="epub">1546-2226</issn>
<issn pub-type="ppub">1546-2218</issn>
<publisher>
<publisher-name>Tech Science Press</publisher-name>
<publisher-loc>USA</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">23019</article-id>
<article-id pub-id-type="doi">10.32604/cmc.2022.023019</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Article</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>Modelling and Verification of Context-Aware Intelligent Assistive Formalism</article-title>
<alt-title alt-title-type="left-running-head">Modelling and Verification of Context-Aware Intelligent Assistive Formalism</alt-title>
<alt-title alt-title-type="right-running-head">Modelling and Verification of Context-Aware Intelligent Assistive Formalism</alt-title>
</title-group>
<contrib-group content-type="authors">
<contrib id="author-1" contrib-type="author" corresp="yes">
<name name-style="western"><surname>Yousaf</surname><given-names>Shahid</given-names></name><xref ref-type="aff" rid="aff-1">1</xref><email>shahid.yousaf@cs.uol.edu.pk</email>
</contrib>
<contrib id="author-2" contrib-type="author">
<name name-style="western"><surname>Mahfooz Ul Haque</surname><given-names>Hafiz</given-names></name><xref ref-type="aff" rid="aff-2">2</xref>
</contrib>
<contrib id="author-3" contrib-type="author">
<name name-style="western"><surname>Khalid</surname><given-names>Abbas</given-names></name><xref ref-type="aff" rid="aff-1">1</xref>
</contrib>
<contrib id="author-4" contrib-type="author">
<name name-style="western"><surname>Hashmi</surname><given-names>Muhammad Adnan</given-names></name><xref ref-type="aff" rid="aff-3">3</xref>
</contrib>
<contrib id="author-5" contrib-type="author">
<name name-style="western"><surname>Khan</surname><given-names>Eraj</given-names></name><xref ref-type="aff" rid="aff-1">1</xref>
</contrib>
<aff id="aff-1"><label>1</label><institution>Department of Computer Science &#x0026; IT, The University of Lahore</institution>, <addr-line>Lahore, 54000</addr-line>, <country>Pakistan</country></aff>
<aff id="aff-2"><label>2</label><institution>Department of Software Engineering, The University of Lahore</institution>, <addr-line>Lahore, 54000</addr-line>, <country>Pakistan</country></aff>
<aff id="aff-3"><label>3</label><institution>Higher Colleges of Technology</institution>, <addr-line>Abu Dhabi, 25026</addr-line>, <country>UAE</country></aff>
</contrib-group>
<author-notes>
<corresp id="cor1"><label>&#x002A;</label>Corresponding Author: Shahid Yousaf. Email: <email>shahid.yousaf@cs.uol.edu.pk</email></corresp>
</author-notes>
<pub-date pub-type="epub" date-type="pub" iso-8601-date="2021-11-29"><day>29</day>
<month>11</month>
<year>2021</year></pub-date>
<volume>71</volume>
<issue>2</issue>
<fpage>3355</fpage>
<lpage>3373</lpage>
<history>
<date date-type="received"><day>25</day><month>8</month><year>2021</year></date>
<date date-type="accepted"><day>14</day><month>10</month><year>2021</year></date>
</history>
<permissions>
<copyright-statement>&#x00A9; 2022 Yousaf et al.</copyright-statement>
<copyright-year>2022</copyright-year>
<copyright-holder>Yousaf et al.</copyright-holder>
<license xlink:href="https://creativecommons.org/licenses/by/4.0/">
<license-p>This work is licensed under a <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
</license>
</permissions>
<self-uri content-type="pdf" xlink:href="TSP_CMC_23019.pdf"></self-uri>
<abstract>
<p>Recent years have witnessed the expeditious evolution of intelligent smart devices and autonomous software technologies with the expanded domains of computing from workplaces to smart computing in everyday routine life activities. This trend has been rapidly advancing towards the new generation of systems where smart devices play vital roles in acting intelligently on behalf of the users. Context-awareness has emerged from the pervasive computing paradigm. Context-aware systems have the ability to acquire contextual information from the surrounding environment autonomously, perform reasoning on it, and then adapt their behaviors accordingly. With the proliferation of context-aware systems and smart sensors, real-time monitoring of environmental situations (context) has become quite trivial. However, it is often challenging because the imperfect nature of context can cause the inconsistent behavior of the system. In this paper, we propose a context-aware intelligent decision support formalism to assist cognitively impaired people in managing their routine life activities. For this, we present a semantic knowledge-based framework to contextualize the information from the environment using the prot&#x00E9;g&#x00E9; ontology editor and Semantic Web Rule Language (SWRL) rules. The set of contextualized information and the set of rules acquired from the ontology can be used to model Context-aware Multi-Agent Systems (CMAS) in order to autonomously plan all activities of the users and notify users to act accordingly. To illustrate the use of the proposed formalism, we model a case study of Mild Cognitive Impaired (MCI) patients using Colored Petri Nets (CPN) to show the reasoning process on how the context-aware agents collaboratively plan activities on the user&#x0027;s behalf and validate the correctness properties of the system.</p>
</abstract>
<kwd-group kwd-group-type="author">
<kwd>Context-awareness</kwd>
<kwd>multi-agents</kwd>
<kwd>colored petri net</kwd>
<kwd>ontology</kwd>
</kwd-group>
</article-meta>
</front>
<body>
<sec id="s1"><label>1</label><title>Introduction</title>
<p>In recent years, interest and demand for smart systems and applications have been rapidly evolving. With their remarkable upsurge, smart devices and autonomous applications are becoming more complex, optimized, sophisticated, and efficient. In this arena, numerous devices are impeccably integrated via portable or embedded devices by providing readily available services to facilitate users at anytime and anywhere. Using these devices and applications, everyday users spend much time and effort to accomplish their tasks and autonomously exchange information among different devices and/or platforms for complex problem solving and make their lives much more comfortable, relaxed, and reliable, but device-dependent. Context-aware computing has been considered as one of the most emerging paradigms which provide freedom from the bondage of traditional computing systems to adaptive and highly dynamic computing. Context-aware systems often run in a highly decentralized environment and exhibit complex adaptive behaviors without or with very limited human interaction.</p>
<p>Literature has revealed a significant amount of work in intelligent assistive formalisms and applications with the incorporation of context-awareness in different domains such as safety-critical systems [<xref ref-type="bibr" rid="ref-1">1</xref>,<xref ref-type="bibr" rid="ref-2">2</xref>], disaster recovery systems [<xref ref-type="bibr" rid="ref-3">3</xref>,<xref ref-type="bibr" rid="ref-4">4</xref>], traffic management systems [<xref ref-type="bibr" rid="ref-5">5</xref>,<xref ref-type="bibr" rid="ref-6">6</xref>], different healthcare solutions [<xref ref-type="bibr" rid="ref-7">7</xref>,<xref ref-type="bibr" rid="ref-8">8</xref>], etc. Among others, Mild Cognitive Impairment (MCI) is one of the most commonly spread diseases in elderly age people. These people become helpless and are bound to stay at home due to MCI disease. In mild cognitive impairment, people gradually start facing a feeling of slight and unnoticeable decline in memory. Cognitive impairment mostly starts around the age of 65 or above. According to United Nations (UN) Population Division, the population of elderly people is feared to increase by more than 2 billion by 2050 [<xref ref-type="bibr" rid="ref-9">9</xref>]. Commonly, these people face difficulties in remembering, decision-making, learning new things, and planning &#x0026; scheduling daily life activities. They require the assistance of a person/device to drive their regular activities like taking meals, medication, attending social events (wedding ceremony, birthday party, etc.), as well as important events like official meetings and doctor&#x0027;s appointments, etc. These people can perform their routine life activities easily with little help like notification and alarm. They feel more comfortable and live like normal people if their smart devices such as smartphones or Personal Digital Assistants (PDA) assist them to plan and schedule their routine life activities. Intelligent assisted applications have the great potential to improve the quality of life by rendering a wide range of personalized services and providing users with easier and more efficient ways to exchange information and help interact with other people. For example; in [<xref ref-type="bibr" rid="ref-10">10</xref>], authors have developed a cognitive assistant to help cognitively impaired people. For this, they proposed a system called COACH to assist dementia patients by reminding them about different daily life activities. Such types of assistive application systems are used to manage routine life activities of a person where context is the primary component since it provides the requisite information about the current status/activities of the person under consideration. The authors in [<xref ref-type="bibr" rid="ref-11">11</xref>], presented an Autominder system, which is a personal robotic assistant for elderly people to help them in dealing with memory impairment. This system issues reminders to notify cognitively impaired people in managing and planning their daily life activities such as taking medicines on time and engaging them in social and family activities. Although a significant effort has been made by the researchers to build intelligent assistive applications in different domains, however, the semantic knowledge-based context-aware intelligent assistive formalism for cognitive impairment is still in its infancy and needs to be rigorously studied for the exploitation of its innate potential. In this paper, we propose a context-aware intelligent assistive formalism for cognitively impaired people to schedule and plan their daily life activities without or with minimal human assistance. This formalism consists of three layers named as sensors layer, semantic layer, and contextual reasoning layer. In the sensors layer, we assume that the raw data is fetched through the context-aware agents from the environment and this data is contextualized using the ontology. In the semantic layer, the desired contextualized information is obtained from a semantic knowledge source using SPARQL queries and the set of facts and the set of rules are extracted using semantic knowledge transformation mechanism. In the reasoning layer, a context-aware multi-agent system collaboratively plans the activities to infer the desired results and notify patients to take appropriate actions accordingly. To illustrate the use of the proposed formalism, we model a case study of cognitively impaired patients in Colored Petri Nets to analyze the behavior of the system and validate the correctness properties.</p>
<p>The rest of the paper is structured as follows: Section 2 describes preliminaries and related work. Section 3 presents contextualizing semantic knowledge ontology to represent the context in the machine-processable form. In Section 4, we propose a context-aware multi-agent reasoning formalism for cognitive impairments. Section 5 presents a comprehensive case study for MCI patients along with its execution strategies and evaluates the correctness properties and we finally conclude in Section 6.</p>
</sec>
<sec id="s2"><label>2</label><title>Preliminaries and Related Work</title>
<sec id="s2_1"><label>2.1</label><title>Contextual Modelling and Reasoning</title>
<p>Literature has revealed several definitions of contexts so far. Among others, Dey et al. [<xref ref-type="bibr" rid="ref-12">12</xref>] define context as &#x201C;<italic>Any information that can be used to characterize the situation of entity is called context information</italic>&#x201D;. Context information has been classified in different forms along with its different properties such as (a) User context (identity, preference, activity, location) (b) Device context (processor speed, screen size, location) (c) Application context (version, availability) (d) Physical environment context (illumination, humidity) (e) Resource context (availability, size, type) (f) Network context ( minimum speed, maximum speed) (g) Location context (where it is subsumed) (h) Activity context (start time, end time, actor) to name a few. In general, there are four major categories to acquire contextual information from different sources such as applying sensors, network information, device status, and browsing user profiles. The contextual instances can be classified further in two dimensions, i.e., external (physical) and internal (logical). In an external context, data is manipulated by the hardware sensor, while in an internal context, data is manipulated by the interaction of the user (user goals, tasks, emotions, etc.). Context-aware systems and applications are typically designed using smart and intelligent devices with embedded sensors such as smartphones, smartwatches, intelligent assistants, etc. Intelligent assistants have usually customized devices embedded with sensors and/or components, which acquire contextual information from the environment through the physical sensors or logical sensors, perform reasoning based on the existing knowledge, and assist people in their respective activities.</p>
<p>In context-aware computing, context modelling has been considered to be the most promising approach for contextualizing information. As a context is captured from the different perspectives, a uniform context representation approach is very essential. Context Modelling refers to defining and storing context data in a machine-processable form [<xref ref-type="bibr" rid="ref-13">13</xref>]. Literature has revealed various context modelling approaches including Key-Value Models [<xref ref-type="bibr" rid="ref-14">14</xref>,<xref ref-type="bibr" rid="ref-15">15</xref>], Markup Scheme Models [<xref ref-type="bibr" rid="ref-16">16</xref>,<xref ref-type="bibr" rid="ref-17">17</xref>], Graphical Model [<xref ref-type="bibr" rid="ref-18">18</xref>,<xref ref-type="bibr" rid="ref-19">19</xref>], Logic-Based Modelling [<xref ref-type="bibr" rid="ref-20">20</xref>,<xref ref-type="bibr" rid="ref-21">21</xref>], Object-Oriented Models [<xref ref-type="bibr" rid="ref-22">22</xref>&#x2013;<xref ref-type="bibr" rid="ref-24">24</xref>] and Ontology-Based Models [<xref ref-type="bibr" rid="ref-25">25</xref>&#x2013;<xref ref-type="bibr" rid="ref-27">27</xref>]. Among others, the ontology-based context-modelling approach has been advocated as the most promising approach due to its modular structuring mechanism, reusability, independence of its own identity [<xref ref-type="bibr" rid="ref-28">28</xref>&#x2013;<xref ref-type="bibr" rid="ref-32">32</xref>]. In this paper, we choose the ontology-driven context modelling approach for the proposed intelligent assistive formalism.</p>
<p>Contextual reasoning plays a vital role in the domain of context-aware systems to infer the contextualized information from the existing knowledge sources and lets the system to take decisions intelligently and interactively in a real-time environment. Contextual reasoning mechanism is used to make decisions dynamically whenever there is a change in the user&#x0027;s context. The use of contextual reasoning using Multi-Agent Systems (MAS) increases the cognitive ability of the context-aware agents to sense the environment, perform reasoning and take actions accordingly in order to achieve the desired goals. Literature has revealed various reasoning techniques such as BDI (belief-desire-intention) [<xref ref-type="bibr" rid="ref-33">33</xref>], case-based reasoning [<xref ref-type="bibr" rid="ref-34">34</xref>], rule-based reasoning [<xref ref-type="bibr" rid="ref-35">35</xref>], etc. Among others, rule-based reasoning has been considered as one of the most simple and efficient reasoning techniques to perform reasoning when developing expert decision-making systems.</p>
</sec>
<sec id="s2_2"><label>2.2</label><title>Related Work</title>
<p>Numerous efforts have been made in the development of context-aware intelligent assistive systems with the incorporation of context modelling and reasoning. Intelligent assistants facilitate the users by assisting them in the achievement of their short-term as well as long-term goals as described earlier. An intelligent assistant is a software agent that helps the user by performing tasks on its behalf [<xref ref-type="bibr" rid="ref-36">36</xref>]. There has been a growing interest in intelligent assistants for a variety of systems and applications. In [<xref ref-type="bibr" rid="ref-37">37</xref>], authors have presented a framework called DynaMoL for managing the follow-up of a colorectal cancer patient. This is a dynamic decision analysis framework that used the Bayesian learning model to learn from the large medical database. Besides, in [<xref ref-type="bibr" rid="ref-38">38</xref>], yet another intelligent assistant called Intelligent Therapy Assistant (ITA) has been developed to assist the therapists in configuring the patient&#x0027;s treatments in the Guttmann Neuro Personal Trainer (GNPT) platform. This ITA used data mining techniques on large stored data to treat every patient depending on his/her profile. Similarly in [<xref ref-type="bibr" rid="ref-39">39</xref>], the authors presented an automated cognitive assistant system about transportation for mentally retarded people suffering from traumatic brain injuries so that they can easily use public transport. This system is implemented with a GPRS-enabled cell phone, Bluetooth sensor beacon (separate from the cell phone and placed in user&#x0027;s pocket or purse), and inference engine (a software that learns from the user&#x0027;s history and behavior to reason about users&#x2019; transportation routines). Primarily, this system is developed to provide a route starting point to destination with minimum intervention of the user. Moreover, a prototype of a smart home for cognitively impaired people has been presented in [<xref ref-type="bibr" rid="ref-40">40</xref>] which assists patients in their initiatives and helps them in performing their daily life activities. Apart from that, in [<xref ref-type="bibr" rid="ref-41">41</xref>], the authors have shown a large number of assistive living tools, and systems for the assistance of elderly people suffering from various mental impairments. A variety of theoretical as well as practical systems have been presented in this paper to help people suffering from dementia and other cognitive impairments like OutCare [<xref ref-type="bibr" rid="ref-42">42</xref>], wireless health care system [<xref ref-type="bibr" rid="ref-43">43</xref>], etc.</p>
</sec>
</sec>
<sec id="s3"><label>3</label><title>Contextualizing Semantic Knowledge Ontology</title>
<p>Semantic web technologies [<xref ref-type="bibr" rid="ref-44">44</xref>] are considered to be the most optimal choice for context modelling and knowledge representation in intelligent and dynamic environments due to their uniform representation and reasoning capability. Ontology is the explicit formal specifications of different terms/concepts, which are used to share information in a particular domain. Ontology has different generations such as Web Ontology Language (OWL) namely OWL 1 and OWL 2 [<xref ref-type="bibr" rid="ref-45">45</xref>]. OWL-1 has three variants [<xref ref-type="bibr" rid="ref-46">46</xref>] namely OWL-Lite, OWL-DL, and OWL-Full. Similarly, OWL 2 has three sub-languages [<xref ref-type="bibr" rid="ref-47">47</xref>] such as OWL 2 EL, OWL 2 QL, and OWL 2 RL. We have chosen OWL 2 RL since it provides scalable reasoning without compromising the expressive power. Further, it enables implementation in polynomial time with rule-based technologies. Semantic Web Rule Language (SWRL) can be used to write complex rules. It enhances the expressivity, completeness, and allows users to write user-defined rules for characterizing the complex systems. To model the domain, we have opted the ontology-based context modelling approach to contextualize the context-aware intelligent assistive formalism. For this purpose, we develop the ontology and construct OWL 2 RL and SWRL rules. The ontology consists of 66 classes in total, where <italic>Person, UserAgent, PlannerAgent</italic> and <italic>Contextual_Agents</italic> are the superclasses; the rest are their child classes. A few example of object and data properties are: <italic>HasRegID, ActivityLocation, HasPlannedActivity, ActivityDate, ActivityStartTime</italic> and <italic>ActivityEndTime</italic>. Rules are formulated from ontology classes, data and object properties. The proposed context model provides the structure of contextualized information to all nominated agents. All types of contexts which can be possibly used by intelligent assistant/agents to assist MCI Patients are defined by categorizing them accordingly, i.e., we have divided context into the following categories: social context, entertainment context, environmental context, exercise-related context, food-related context, in-home everyday context, medical context, office-related context, to-do thing context, saloon related context, location context and traveling context. A fragment of the ontology is shown in <?A3B2 "fig1",5,"anchor"?><xref ref-type="fig" rid="fig-1">Fig. 1</xref>. The <?A3B2 "fig2",5,"anchor"?><xref ref-type="fig" rid="fig-2">Fig. 2</xref> depicts the class hierarchies of the MCI Patient&#x0027;s Context.</p>
<fig id="fig-1"><label>Figure 1</label><caption><title>A fragment of the ontology of intelligent assistant for MCI patients</title></caption><graphic mimetype="image" mime-subtype="png" xlink:href="CMC_23019-fig-1.png"/></fig>
<p>To execute the MCI domain in the Prot&#x00E9;g&#x00E9; ontology editor, the SPARQL query language is used to check and analyze the results, and it is specifically designed for the semantic web ontologies to evaluate extensible value testing [<xref ref-type="bibr" rid="ref-48">48</xref>]. For this, we executed a number of queries using the SPARQL query plugin in the Prot&#x00E9;g&#x00E9; ontology editor and some of the example queries are given in <?A3B2 "tbl1",5,"anchor"?><xref ref-type="table" rid="table-1">Tab. 1</xref>.</p>
<fig id="fig-2"><label>Figure 2</label><caption><title>Class hierarchies of the MCI patients&#x2019; context</title></caption><graphic mimetype="image" mime-subtype="png" xlink:href="CMC_23019-fig-2.png"/></fig>
<table-wrap id="table-1"><label>Table 1</label><caption><title>Some example SPARQL queries</title></caption>
<table frame="hsides" >
<colgroup>
<col align="left"/>
<col align="left"/>
</colgroup>
<thead>
<tr>
<th align="left">Sr. No</th>
<th align="left">Queries</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">1</td>
<td align="left">SELECT ?UserName ?Reg_ID<break/>WHERE<break/>&#x007B; ?UserName mci:hasRegID ?Reg_ID. &#x007D;</td>
</tr>
<tr>
<td align="left">2</td>
<td align="left">SELECT ?UserName ?Activity<break/>WHERE<break/>&#x007B; ?UserName mci: HasWriteActivity ?Activity.&#x007D;</td>
</tr>
<tr>
<td align="left">3</td>
<td align="left">SELECT ?UserName ?Activity ?Date<break/>WHERE<break/>&#x007B; ?UserName mci: HasWriteActivity ?Activity.<break/>?Activity mci:ActivityDate ?Date. &#x007D;</td>
</tr>
<tr>
<td align="left">4</td>
<td align="left">SELECT ?UserName ?WrittenActivity ?Date ?StartTime ?EndTime ?ActivityLocation<break/>WHERE<break/>&#x007B; ?UserName mci:HasWriteActivity ? WrittenActivity.<break/>? WrittenActivity mci:ActivityDate ?Date.<break/>? WrittenActivity mci:ActivityStartTime ?StartTime.<break/>? WrittenActivity mci:ActivityEndTime ?EndTime.<break/>? WrittenActivity mci:ActivityLocation ? ActivityLocation. &#x007D;</td>
</tr>
<tr>
<td align="left">5</td>
<td align="left">SELECT ?UserName ?PlannedActivity ?Date ?StartTime ?EndTime ?ActivityLocation<break/>WHERE<break/>&#x007B; ?UserName mci:HasPlannedActivity ? PlannedActivity.<break/>? PlannedActivity mci:ActivityDate ?Date.<break/>? PlannedActivity mci:ActivityStartTime ?StartTime.<break/>? PlannedActivity mci:ActivityEndTime ?EndTime.<break/>? PlannedActivity mci:ActivityLocation ?ActivityLocation &#x007D;</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s4"><label>4</label><title>Context-Aware Multi-Agent Reasoning Formalism</title>
<p>In this section, we present a semantic knowledge-based intelligent assistive formalism using a context-aware Multi-Agent System. This formalism consists of a set of agents where each agent in the system has a set of facts (contextualized information), a set of rules, and a reasoning strategy. These agents acquire the contextualized information from the corresponding environment which is obtained from the ontology. Further, they perform reasoning using a set of rules; share the contextualized information among different agents in order to infer the desired results, and adapt behaviors accordingly. In context-aware multi-agent settings, knowledge is shared among different agents. Moreover, ontology provides declarative semantics to assist intelligent agents in contextual reasoning. As shown in <?A3B2 "fig3",5,"anchor"?><xref ref-type="fig" rid="fig-3">Fig. 3</xref>, the architecture of context-aware intelligent assistive formalism consists of three different layers. The lower layer (sensors layer) interacts with the environment of the user. Further, we assume that the user is carrying the smartphone with him/her, and raw contextual information (user&#x0027;s activities) is acquired with the help of different sensors of the smartphone from the physical environment. This raw context information is interpreted on the intermediate layer (semantic layer). This interpretation process of context is called context modelling and OWL ontologies are developed to represent the context in the machine-processable form in a standardized format. No doubt, context modelling is an integral part of context-aware assistive applications since the non-intrusive behavior of the assistive application is not possible without the proper understanding of the user&#x0027;s context. The upper layer is the contextual reasoning layer consisting of two modules, i.e., contextual agents and context-aware rule-based reasoning.</p>
<p>The proposed system consists of a set of context-aware agents, i.e., Social Agent, Food Agent, Medical Agent, etc. These context-aware agents receive machine-processable contextualized information from the semantic layer and provide the contextualized information so obtained, to the User Agent and Planner Agent. A user agent interacts with the user to receive and send the information (activities and their schedule). A Planner agent plans all activities of the user with the coordination of other contextual agents (depending on the user&#x0027;s activities) and then sends it to the user agent. Then, the user agent shows this plan to the user. As the user acknowledges, the Planner agent saves this plan and sends an updated plan to the corresponding agents. The contextual agents continuously synchronize themselves with the environmental context through sensors/agents and monitor the activities of the user continuously and update the Planner Agent after certain intervals of time. If the user deviates from his/her scheduled plan, the Planner agent sends alerts to the user agent. Besides, the second component of the third layer is context-aware rule-based reasoning. A set of generic rules is designed to reason about the user&#x0027;s context with the help of contextual agents. The rules are defined in the SWRL format, its general representation is as following
<disp-formula id="eqn-1"><label>(1)</label><mml:math id="mml-eqn-1" display="block"><mml:mi>A</mml:mi><mml:mi>n</mml:mi><mml:mi>t</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>e</mml:mi><mml:mi>d</mml:mi><mml:mi>e</mml:mi><mml:mi>n</mml:mi><mml:mi>t</mml:mi><mml:mspace width="thickmathspace" /><mml:mo stretchy="false">&#x21D2;</mml:mo><mml:mspace width="thickmathspace" /><mml:mi>C</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mi>s</mml:mi><mml:mi>e</mml:mi><mml:mi>q</mml:mi><mml:mi>u</mml:mi><mml:mi>e</mml:mi><mml:mi>n</mml:mi><mml:mi>t</mml:mi></mml:math></disp-formula></p>
<fig id="fig-3"><label>Figure 3</label><caption><title>Architecture of context-aware intelligent assistive formalism</title></caption><graphic mimetype="image" mime-subtype="png" xlink:href="CMC_23019-fig-3.png"/></fig>
<p>An antecedent is a body and the consequent is the head of the rule. Whenever the specified condition holds true in the antecedent part then ultimately the condition in the consequent part must be held true. The antecedent and consequent both are the conjunctions of atoms which are written in the form of <italic>a<sub>1</sub></italic>, <italic>a<sub>2</sub></italic> &#x2026; , <italic>a<sub>n</sub></italic>. The question mark <italic>(? X</italic>), followed a variable is used to denote the variables, for example:
<disp-formula id="eqn-2"><label>(2)</label><mml:math id="mml-eqn-2" display="block"><mml:mi>P</mml:mi><mml:mi>e</mml:mi><mml:mi>r</mml:mi><mml:mi>s</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mspace width="thickmathspace" /><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo>?</mml:mo><mml:mi>u</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo><mml:mo>,</mml:mo><mml:mspace width="thickmathspace" /><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>g</mml:mi><mml:mi>I</mml:mi><mml:mi>D</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo>?</mml:mo><mml:mi>i</mml:mi><mml:mi>d</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo><mml:mo>,</mml:mo><mml:mspace width="thickmathspace" /><mml:mi>h</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>g</mml:mi><mml:mi>I</mml:mi><mml:mi>D</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo>?</mml:mo><mml:mi>u</mml:mi><mml:mo>,</mml:mo><mml:mspace width="thickmathspace" /><mml:mo>?</mml:mo><mml:mi>i</mml:mi><mml:mi>d</mml:mi></mml:mrow><mml:mo stretchy="false">&#x2192;</mml:mo><mml:mi>U</mml:mi><mml:mi>s</mml:mi><mml:mi>e</mml:mi><mml:mi>r</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo>?</mml:mo><mml:mi>u</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:math></disp-formula>
</p>
<p>Here <italic>Person, RegID, hasRegID and User</italic> are the rule atoms, <italic>(?u)</italic> and <italic>(?id),</italic> are the variable and after assigning values to variable this rule becomes in the following form:
<disp-formula id="eqn-3"><label>(3)</label><mml:math id="mml-eqn-3" display="block"><mml:mi>P</mml:mi><mml:mi>e</mml:mi><mml:mi>r</mml:mi><mml:mi>s</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mspace width="thickmathspace" /><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>B</mml:mi><mml:mi>o</mml:mi><mml:mi>b</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo><mml:mo>,</mml:mo><mml:mspace width="thickmathspace" /><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>g</mml:mi><mml:mi>I</mml:mi><mml:mi>D</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mn>01</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo><mml:mo>,</mml:mo><mml:mspace width="thickmathspace" /><mml:mi>h</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>g</mml:mi><mml:mi>I</mml:mi><mml:mi>D</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>B</mml:mi><mml:mi>o</mml:mi><mml:mi>b</mml:mi><mml:mo>,</mml:mo><mml:mspace width="thickmathspace" /><mml:mi>R</mml:mi><mml:mn>01</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo><mml:mo stretchy="false">&#x2192;</mml:mo><mml:mi>U</mml:mi><mml:mi>s</mml:mi><mml:mi>e</mml:mi><mml:mi>r</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>B</mml:mi><mml:mi>o</mml:mi><mml:mi>b</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:math></disp-formula>
The above rule will be interpreted as &#x201C;there is a person &#x201C;Bob&#x201D; and registration ID &#x201C;R01&#x201D;, and Bob has the registration ID &#x201C;R01&#x201D; therefore he is a registered user&#x201D;.</p>
<p>In this work, a context-aware rule-based reasoning system collaboratively plans activities and makes decisions dynamically whenever there is the faintest change in the user&#x0027;s context. Usage of contextual reasoning increases the cognitive ability of the context-aware agents in achieving their desired goals, of course.</p>
</sec>
<sec id="s5"><label>5</label><title>Modelling and Reasoning MCI Patient&#x0027;s Case Study Using CMAS</title>
<p>To demonstrate the usability and practical effectiveness of the proposed formalism, we present a case study of MCI patients. This case study has been designed for the people who normally face difficulty in recalling their activities on daily basis. This system would assist the patients in planning and managing their daily routine life activities. We develop a scenario for a cognitively impaired person, namely Bob, who usually forgets to attend important office meetings, family gatherings, doctor&#x0027;s appointments, taking medicines, etc. He frequently forgets to execute any plan he has scheduled earlier. If someone reminds him, however, he can recall the plan and handle the situation accordingly. Using the proposed system, he can use his intelligent assistant to schedule and recall all the activities without any human intervention. The functionality of the proposed system is illustrated with the help of a case scenario from the MCI example system. For instance, every Sunday morning, Bob usually schedules his activities for a whole week and he can query the planned schedule on his intelligent assistant anytime by writing activity name or by checking the activity date, time, and venue. Bob&#x0027;s planned activities for the whole week are shown in <?A3B2 "tbl2",5,"anchor"?><xref ref-type="table" rid="table-2">Tab. 2</xref>. Bob writes all these activities on the intelligent assistant to schedule these activities. The intelligent agent requests confirmation about Bob&#x0027;s schedule and Bob confirms this schedule. When this schedule is executed, Bob follows the planned schedule. However, sometimes Bob forgets to plan any activity which was supposed to be planned earlier or activity might be changed due to some reason. In this case, if Bob fails to do the activity in time, the assistant will remind him to perform this activity as the changes were not made. For example, on Monday, Bob must have to leave for the hotel Holiday Inn at 18:20 as he has to join the wedding ceremony of his friend at 19:00. The hotel is at the drive of 40 min from his home. At 18:10, the intelligent assistant will remind Bob to get ready as he has to leave for the hotel at 18:20 to attend the wedding. If Bob does not leave the office till 18:20, he will be notified again or he can cancel this scheduled activity if not interested to attend this event. Similarly, if some other tasks occur during the week, the intelligent assistant will merge the task with the existing activities; on Wednesday, Bob&#x0027;s wife said to him that she wants to go for shopping, for example. He asks his intelligent assistant to set the time of shopping on Saturday at 12:00, the intelligent assistant replied to him you have already planned an outing activity on Saturday at 10:00, and you will not be able to come back home before 12:00. Therefore, there is a clash between these two activities. The intelligent assistant suggests to him different schedules and Bob selects the option of shopping to go on Saturday at 19:00. Similarly, for next week&#x0027;s plan, Bob again writes the whole week&#x0027;s activities and asks his intelligent assistant to schedule them. Such activities are set by Planner agents, and the agents can revise their beliefs based on the existing set of facts and the set of inferred rules. The activities are shown in <xref ref-type="table" rid="table-2">Tab. 2</xref>.</p>
<table-wrap id="table-2"><label>Table 2</label><caption><title>Tentative schedule of Bob&#x0027;s weekly activities</title></caption>
<table frame="hsides">
<colgroup>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
</colgroup>
<thead>
<tr>
<th align="left">Activity/<break/>Context</th>
<th align="left">Date</th>
<th align="left">Start time</th>
<th align="left">End time</th>
<th align="left">Expected location</th>
<th align="left">Expected travel time</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">Wedding ceremony</td>
<td align="left">13-09-2021</td>
<td align="left">19:00</td>
<td align="left">21:00</td>
<td align="left">Holiday_Inn_Hotel</td>
<td align="left">40</td>
</tr>
<tr>
<td align="left">TV Serial</td>
<td align="left">14-09-2021</td>
<td align="left">20:00</td>
<td align="left">20:50</td>
<td align="left">Home</td>
<td align="left">N/A</td>
</tr>
<tr>
<td align="left" rowspan="2">Birthday party</td>
<td align="left">15-09-2021</td>
<td align="left">19:30</td>
<td align="left">21:30</td>
<td align="left">Home</td>
<td align="left">N/A</td>
</tr>
<tr>
<td align="left"/>
<td align="left"/>
<td align="left"/>
<td align="left"/>
<td align="left"/>
</tr>
<tr>
<td align="left">Cricket match</td>
<td align="left">17-09-2021</td>
<td align="left">18:30</td>
<td align="left">24:30</td>
<td align="left">Stadium</td>
<td align="left">15</td>
</tr>
<tr>
<td align="left">Tour</td>
<td align="left">19-09-2021</td>
<td align="left">10:00</td>
<td align="left">20:00</td>
<td align="left">Hills View Park</td>
<td align="left">120</td>
</tr>
<tr>
<td align="left"/>
<td align="left"/>
<td align="left"/>
<td align="left"/>
<td align="left"/>
<td align="left"/>
</tr>
</tbody>
</table>
</table-wrap>
<p>To model the case study with the proposed framework, a total of 15 different agents are used. They work in an orchestrated way to serve the user in a better way. We used distributed rule-based reasoning method for context reasoning. A multi-agent framework with contextual reasoning has been proposed, where a program of each agent consists of a set of rules, contextual information and reasoning mechanism. These context-aware agents acquire contextual data and set of extracted rules from ontologies. We have written the SWRL rules for all 15 agents but due to space constraints, we present a few rules for only 5 agents to depict the working flow of the system in <?A3B2 "tbl3",5,"anchor"?><xref ref-type="table" rid="table-3">Tab. 3</xref>. These rules strengthen the reasoning ability of OWL ontologies and make them more expressive. These SWRL rules are merged with OWL ontologies by using SWRLTab which is available in the Prot&#x00E9;g&#x00E9; tool. This tool is most commonly used for ontology development and a variety of plugins are available in this tool. Further, it also allows to import new plugins. The SWRLTab of Prot&#x00E9;g&#x00E9;-OWL allows the creation of new SWRL rules and manipulations on these by reading and writing existing SWRL rules. Some chosen example rules are shown in <xref ref-type="table" rid="table-3">Tab. 3</xref>. Here <italic>R</italic><sub>ij</sub> refers to the <italic>j</italic><sup>th</sup> rule of the <italic>i</italic><sup>th</sup> agent.</p>
<table-wrap id="table-3"><label>Table 3</label><caption><title>A few examples rules</title></caption>
<table frame="hsides" >
<colgroup>
<col align="left"/>
</colgroup>
<thead>
<tr>
<th align="left"><bold>Agent 1: User Agent</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td align="left"><bold>Initial Facts:</bold> Person(Bob), RegID(R01), hasRegID(Bob, R01), User(Bob), UsersActivity(Bob, Wedding_Ceremony), ActivityDate(Wedding_Ceremony, 30-06-2021), ActivityStartTime (Wedding_Ceremony, 19:00), ActivityEndTime(Wedding_Ceremony, 21:00 ) ActivityLocation(Wedding_Ceremony, Holiday_Inn_Hotel)</td>
</tr>
<tr>
<td align="left"><italic>R</italic><sub>11</sub>: Person(?u), RegID(?id), hasRegID(?u, ?id) &#x2192; User(?u)<break/><italic>R</italic><sub>12</sub>: User(?u) &#x2192; Ask(1,5, SelectActivity(?act))<break/><italic>R</italic><sub>13</sub>: Tell(5, 1, OutDoorSocialEvent(?act)) &#x2192; , OutDoorSocialEvent(?act)<break/><italic>R</italic><sub>14</sub>: User(?u), OutDoorSocialEvent(?act) &#x2192; UsersActivity(?u, ?act)<break/><italic>R</italic><sub>15</sub>: Tell(3, 1, ActivityDate(?act, ?date)) &#x2192; ActivityDate(?act, ?date)<break/><italic>R</italic><sub>16</sub>: Tell(3, 1, ActivityStartTime (?act, ?Stime)) &#x2192; ActivityStartTime (?act, ?Stime)<break/><italic>R</italic><sub>17</sub>: Tell(3, 1, ActivityEndTime(?act, ?Etime)) &#x2192; ActivityEndTime(?act, ?Etime)<break/><italic>R</italic><sub>18</sub>: Tell(4, 1, ActivityLocation(?act, ?loc)) &#x2192; ActivityLocation(?act, ?loc)<break/><italic>R</italic><sub>19</sub>: User(?u), In-homeSocialEvent(?act), ActivityDate(?act, ?date), ActivityStartTime(?act, ?Stime), ActivityEndTime(?act, ?Etime), ActivityLocation(?act, ?loc) &#x2192; hasScheduledActiviy(?u, ?act)<break/><italic>R</italic><sub>110</sub>: User(?u), hasScheduledActiviy(?u, ?act) &#x2192; Ask(1, 2, PlanActivityFor(?u, ?act))<break/><italic>R</italic><sub>111</sub>: Tell(2, 1, HasPlannedActivity(?u, ?act)) &#x2192; HasPlannedActivity(?u, ?act)</td>
</tr>
<tr>
<td align="left"><bold>Agent 2: Planner Agent</bold></td>
</tr>
<tr>
<td align="left"><bold>Initial Facts</bold>: PlanActivityFor(Bob, Wedding_Ceremony), PlanActivity(Wedding_Ceremony) HasPlannedActivity(Bob, Wedding_Ceremony)</td>
</tr>
<tr>
<td align="left"><italic>R</italic><sub>21</sub>: Ask(1, 2, PlanActivityFor(?u, ?act)) &#x2192; PlanActivityFor(?u, ?act)<break/><italic>R</italic><sub>22</sub>: Tell(3, 2, ActivityDate(?act, ?date)) &#x2192; ActivityDate(?act, ?date)<break/><italic>R</italic><sub>23</sub>: Tell(3, 2, ActivityStartTime(?act, ?Stime)) &#x2192; ActivityStartTime(?act, ?Stime)<break/><italic>R</italic><sub>24</sub>: Tell(3, 2, ActivityEndTime(?act, ?Etime)) &#x2192; ActivityEndTime(?act, ?Etime)<break/><italic>R</italic><sub>25</sub>: Tell(4, 2, ActivityLocation(?act, ?loc)) &#x2192; ActivityLocation(?act, ?loc)<break/><italic>R</italic><sub>26</sub>: Tell(5, 2, In-homeSocialEvent(?act)) &#x2192; In-homeSocialEvent(?act)<break/><italic>R</italic><sub>27</sub>: In-homeSocialEvent(?act), ActivityDate(?act, ?date), ActivityStartTime(?act, ?Stime), ActivityEndTime(?act, ?Etime), ActivityLocation(?act, ?loc), PlanActivity(?act) &#x2192; HasPlannedActivity(?u, ?act)<break/><italic>R</italic><sub>28</sub>: HasPlannedActivity(?u, ?act)&#x2192; Tell(2, 1, HasPlannedActivity(?u, ?act))</td>
</tr>
<tr>
<td align="left"><bold>Agent 3: Temporal Agent</bold></td>
</tr>
<tr>
<td align="left"><bold>Initial Facts</bold>: ActivityDate(Wedding_Ceremony, 15-03-2021), ActivityStartTime(Wedding_Ceremony, 19:00 ), ActivityEndTime (Wedding_Ceremony, 21:00), CurrentTime(17:33)</td>
</tr>
<tr>
<td align="left"><italic>R</italic><sub>31</sub>: Tell(1, 3, UsersActivity(?u, ?act)) &#x2192; UsersActivity(?u, ?act)<break/><italic>R</italic><sub>32</sub>: UsersActivity(?u, ?Act), SetDate(?act, ?date), Calendar(?date) &#x2192; ActivityDate(?act, ?date)<break/><italic>R</italic><sub>33</sub>: ActivityDate(?act, ?date) &#x2192; Tell(3, 1, ActivityDate(?act, ?date))<break/><italic>R</italic><sub>34</sub>: UsersActivity(?u, ?Act), SetActivityStartTime(?act, ?Stime), Time(?Stime) &#x2192; ActivityStartTime(?act, ?Stime)<break/><italic>R</italic><sub>35</sub>: ActivityStartTime(?act, ?Stime) &#x2192; Tell(3, 1, ActivityStartTime(?act, ?Stime))<break/><italic>R</italic><sub>36</sub>: UsersActivity(?u, ?Act), SetActivityEndTime(?act, ?Etime), Time(?Etime) &#x2192; ActivityEndTime(?act, ?Etime )<break/><italic>R</italic><sub>37</sub>: ActivityEndTime(?act, ?Etime) &#x2192; Tell(3, 1, ActivityEndTime(?act, ?Etime))<break/><italic>R</italic><sub>38</sub>: ActivityEndTime(?act, ?Etime) &#x2192; Tell(3, 2, ActivityEndTime(?act, ?Etime))</td>
</tr>
<tr>
<td align="left"><bold>Agent 4: Location Agent</bold></td>
</tr>
<tr>
<td align="left"><bold>Initial Facts</bold>: ActivityLocation(Wedding_Ceremony, Holiday_Inn_Hotel), CurrentLocationOfUser(Bob, Home)</td>
</tr>
<tr>
<td align="left"><italic>R</italic><sub>41</sub>: Tell(1, 4, UsersActivity(?u, ?act)) &#x2192; UsersActivity(?u, ?act)<break/><italic>R</italic><sub>42</sub>: Tell(2, 4, HasPlannedActivity(?u, ?act)) &#x2192; HasPlannedActivity(?u, ?act)<break/><italic>R</italic><sub>43</sub>: UsersActivity(?u, ?Act), SetLocation(?act, ?loc), GPS(?loc) &#x2192; ActivityLocation(?act, ?loc)<break/><italic>R</italic><sub>44</sub>: ActivityLocation(?act, ?loc) &#x2192; Tell(4, 1, ActivityLocation(?act, ?loc))<break/><italic>R</italic><sub>45</sub>: ActivityLocation(?act, ?loc) &#x2192; Tell(4, 2, ActivityLocation(?act, ?loc))<break/><italic>R</italic><sub>46</sub>: Ask(2, 4, SendCurentLocationofUser(?u, ?C_Loc))&#x2192; SendCurentLocationofUser(?u, ?C_Loc)<break/><italic>R</italic><sub>47</sub>: User(?u) GPS(?C_Loc), GetCurrentLocationOfUser(?u, ?C_Loc)&#x2192; CurrentLocationOfUser(?u, ?C_Loc)<break/><italic>R</italic><sub>48</sub>: CurrentLocationOfUser(?u, ?C_Loc) &#x2192; Tell(4, 2, CurrentLocationOfUser(?u, ?C_Loc))</td>
</tr>
<tr>
<td align="left"><bold>Agent 5: Social Agent</bold></td>
</tr>
<tr>
<td align="left"><bold>Initial Facts</bold>: OutDoorSocialEvent(Wedding_Ceremony), SelectedActivityName(Wedding_Ceremony, &#x201C;OutDoorSocialEvent&#x201D;), In-homeSocialEvent(Birthday_Party)</td>
</tr>
<tr>
<td align="left"><italic>R</italic><sub>51</sub>: Ask(1, 5, SelectActivity(?act)) &#x2192; SelectActivity(?act)<break/><italic>R</italic><sub>52</sub>: Activity(?act), SelectActivity(?act), SelectedActivityName(?act,&#x201C;In-homeSocialEvent&#x201D;) &#x2192; In-homeSocialEvent(?act)<break/><italic>R</italic><sub>53</sub>: In-homeSocialEvent(?act) &#x2192; Tell(5, 1, In-homeSocialEvent(?act))</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>We assume that data is gathered with the help of the Smartphone sensors and then OWL ontologies are developed to present the context in uniform and standard format. But OWL 2 does not express all types of relations and some complex rules are also not expressible in OWL 2. Therefore, we write user-defined complex rules using SWRL to address this issue with the combination of OWL 2 RL.</p>
<p><?A3B2 "tbl4",5,"anchor"?><xref ref-type="table" rid="table-4">Tab. 4</xref> illustrates the total number of queries that are executed on the system. These queries consist of the <italic>correctly answered queries</italic> (successfully executed) on the systems, <italic>incorrect queries</italic> which are executed but give no output, and <italic>not working queries</italic> (rejected) that contain errors. The proposed system obtains 82&#x0025; <italic>Precision,</italic> 78&#x0025; <italic>Recall,</italic> and <italic>F-Measure</italic> 80&#x0025;.</p>
</sec>
<sec id="s6"><label>6</label><title>Formal Modelling and Validation of MCI Case Study</title>
<p>Colored Petri Nets (CPN) is a graphical modelling language that is the union of Petri nets [<xref ref-type="bibr" rid="ref-49">49</xref>] and functional programming languages [<xref ref-type="bibr" rid="ref-50">50</xref>]. This union makes the CPN models suitable for modelling complex systems. Further, the thrust of CPN language is on the modelling and validation of software systems having concurrency, communication, and synchronization [<xref ref-type="bibr" rid="ref-51">51</xref>]. CPN models are capable to be simulated or verified with formal methods (i.e., state-space analysis and invariant analysis). CPNs allow for state space-based exploration and analysis. State-space analysis can be used to detect system properties such as the absence of deadlocks. CPN model consists of Colors set, Places, Transitions, Arcs, Color functions, Guard functions, Arc Inscriptions, and Initializing function. Places, transitions, and arcs are the basic Petri net components. We have created an untimed CPN model (as shown in <?A3B2 "fig4",5,"anchor"?><xref ref-type="fig" rid="fig-4">Fig. 4</xref>) for the proposed model and performed simulation-based analysis which vividly demonstrated that the proposed model is logically correct.</p>
<table-wrap id="table-4"><label>Table 4</label><caption><title>Results of the queries on the model</title></caption>
<table frame="hsides">
<colgroup>
<col align="left"/>
<col align="left"/>
</colgroup>
<thead>
<tr>
<th align="left">Total number of executed queries</th>
<th align="left">50</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">Number of correctly answered queries</td>
<td align="left">39</td>
</tr>
<tr>
<td align="left">Number of not working queries</td>
<td align="left">8</td>
</tr>
<tr>
<td align="left">Number of incorrect queries</td>
<td align="left">3</td>
</tr>
<tr>
<td align="left"><italic>Precision</italic></td>
<td align="left">82&#x0025;</td>
</tr>
<tr>
<td align="left"><italic>Recall</italic></td>
<td align="left">78&#x0025;</td>
</tr>
<tr>
<td align="left"><italic>F-Measure</italic></td>
<td align="left">80&#x0025;</td>
</tr>
</tbody>
</table>
</table-wrap>
<fig id="fig-4"><label>Figure 4</label><caption><title>CPN model for coordination process of multi-agents</title></caption><graphic mimetype="image" mime-subtype="png" xlink:href="CMC_23019-fig-4.png"/></fig>
<p>We illustrate the use of the proposed system using the CPN model to formally model check and verify the correctness properties. For this, we initially <italic>model the</italic> user&#x0027;s activities along with the plans. The syntactic representation of the model shows the number of activities along with each token. In the system, <italic>User</italic> place has a total of 4 tokens which corresponds to their four activities. Two of them are social activities which are represented as <italic>2&#x0060; &#x201C;S-act&#x201D;</italic>. The rest two activities are (a) exercise-related activity <italic>1&#x0060; &#x201C;Exer-act&#x201D;</italic> and (b) entertainment activity <italic>1&#x0060; &#x201C;E-act&#x201D;</italic>. According to the structure of the proposed multi-agent coordination process, the user agent (<italic>U_A</italic>) in the CPN model receives the activity request from the user. As the system starts execution, <italic>U_A</italic> chooses the corresponding contextual agent to plan the activities. For instance, when a user requests the exercise agent (<italic>E_A</italic>) to plan the exercise activity, the <italic>U_A</italic> uses special communication primitives <italic>Ask2-Exe-A</italic> and <italic>Tellby-Exe_A</italic> to exchange the contextual information among different agents in term firing rules instances and systems transitions. <italic>Ask2-Exe-A</italic> means <italic>U_A</italic> asking <italic>Exe_A</italic> to plan the exercise activity in the gymnasium whereas <italic>Tellby-Exe_A</italic> means <italic>Exe_A</italic> acknowledges to <italic>U_A.</italic> As a result of a successful transition, the token <italic>1&#x0060; &#x201C;Exer-act</italic> is passed to <italic>U_A</italic> to get acknowledgment and <italic>ConfirmationOfReply</italic>. This transition has a guard value [<italic>x &#x003D; b</italic>] which ensures that the right activity is selected according to the <italic>U_A</italic>. The planner agent <italic>P_A</italic> plans the activity considering the location agent (<italic>Loc_A</italic>) along with the temporal agent (<italic>Temp_A</italic>), as a result, a tag (<italic>&#x201C;planned&#x201D;</italic>) will be added to every confirmed token which shows that this activity has been planned successfully. In the same fashion, the rest of the activities will be planned concurrently.</p>
<p>To validate the CPN-based multi-agent communication model, state-space tool can be used to analyze behavioral properties such as boundedness, liveness, and fairness property. <?A3B2 "fig5",5,"anchor"?><xref ref-type="fig" rid="fig-5">Fig. 5</xref> shows the experimental results of the proposed model, as it can be seen that state space generated a total of 3645 nodes and 12312 arcs. This simulation took 1 s and its status is full. These states show that the given model will terminate in a given amount of time and there are no such conditions that it will execute infinitely. Furthermore, it indicates that there is a Strongly Connected Component (SCC) in the graph and there is no restriction on the movement of nodes.</p>
<fig id="fig-5"><label>Figure 5</label><caption><title>Statistics of O-graph</title></caption><graphic mimetype="image" mime-subtype="png" xlink:href="CMC_23019-fig-5.png"/></fig>
<p>Boundedness in model checking is an efficient technique that can be used to find bugs in the system design. If the upper bound of any place in the proposed CPN model is beyond the expectation then it means that the system will not render the expected results. <?A3B2 "fig6",5,"anchor"?><xref ref-type="fig" rid="fig-6">Fig. 6</xref> shows that it prevents the overflow of the buffer. The highest upper bound of any state is 4 in the proposed model. Moreover, there are a total of four activities that have been executed on the CPN model. It means that no such condition exists in our system which puts it in the buffer overflow situation. In the CPN model, the home property is used to represent the scenario where the system gets back to the initial state. In the proposed model, the user sends a request to the system for the planning of different contextual activities. The system, in turn, will return these activities to the user after planning. Therefore, catering of home property in the proposed model is very natural. <?A3B2 "fig7",5,"anchor"?><xref ref-type="fig" rid="fig-7">Fig. 7</xref> shows that 3645 node is home marking, which is also the last node of state space. This node is against the <italic>user</italic> place which is the start state of the proposed model. It means the model is working according to the requirements and the user will receive the planned activities in return.</p>
<fig id="fig-6"><label>Figure 6</label><caption><title>Upper and lower integer bound of places in the model</title></caption><graphic mimetype="image" mime-subtype="png" xlink:href="CMC_23019-fig-6.png"/></fig>
<p>Verification of the Liveness properties implies the absence of the deadlock in the system. <xref ref-type="fig" rid="fig-7">Fig. 7</xref> shows that the dead marking is only 3645, the last node of the state space. It means that there is no other dead state which would have occurred during the currency of the simulation. So, the system will perform all functionalities. Similarly, <italic>dead transition instances</italic> are none, which means that no such transition exists in the model which is dead and puts the system in a deadlock situation. The fairness property deals with the &#x201C;halting&#x201D; of the system. A firing sequence is said to be unconditionally (globally) fair if it is finite. <xref ref-type="fig" rid="fig-7">Fig. 7</xref> shows that there is no infinite occurrence of sequences in the proposed model and it will halt in the given timeframe. The result of home properties, liveness properties, and fairness properties is shown in <xref ref-type="fig" rid="fig-7">Fig. 7</xref>.</p>
<fig id="fig-7"><label>Figure 7</label><caption><title>Result of home properties, liveness properties and fairness properties</title></caption><graphic mimetype="image" mime-subtype="png" xlink:href="CMC_23019-fig-7.png"/></fig>
</sec>
<sec id="s7"><label>7</label><title>Conclusion</title>
<p>In this paper, we have proposed a semantic knowledge-based context-aware intelligent assistive formalism for cognitively impaired people. This is a three-layered model where context-aware agents extract the contextualized information from the ontology, perform reasoning on it and automatically schedule the user activities based on his convenience and feedback. We used HermiT reasoner and SPARQL queries to check the consistency and correctness of the ontology domain. We model the case study using Colored Petri Nets to analyze the execution behavior and validate the correctness properties of the system. In future work, we will implement the system physically in a real-time environment using a comprehensive case study and develop a smartphone application. The state-of-the-art system would assist the user to autonomously plan the whole week&#x0027;s activities at their own ease and convenience.</p>
</sec>
</body>
<back>
<fn-group>
<fn fn-type="other"><p><bold>Funding Statement:</bold> The authors received no specific funding for this study.</p></fn>
<fn fn-type="conflict"><p><bold>Conflicts of Interest:</bold> The authors declare that they have no conflicts of interest to report regarding the present study.</p></fn>
</fn-group>
<ref-list content-type="authoryear">
<title>References</title>
<ref id="ref-1"><label>[1]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>J. E.</given-names> <surname>Bardram</surname></string-name> and <string-name><given-names>N.</given-names> <surname>N&#x00F8;rskov</surname></string-name></person-group>, &#x201C;<article-title>A context-aware patient safety system for the operating room</article-title>,&#x201D; in <conf-name>Proc. of the 10th Int. Conf. on Ubiquitous Computing</conf-name>, <conf-loc>New York, USA</conf-loc>, pp. <fpage>272</fpage>&#x2013;<lpage>281</lpage>, <year>2008</year>.</mixed-citation></ref>
<ref id="ref-2"><label>[2]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>B.</given-names> <surname>Frada</surname></string-name>, <string-name><given-names>A.</given-names> <surname>Zaslavsky</surname></string-name> and <string-name><given-names>N.</given-names> <surname>Arora</surname></string-name></person-group>, &#x201C;<article-title>Context-aware mobile agents for decision-making support in healthcare emergency applications</article-title>,&#x201D; in <conf-name>Int. Workshop on Context Modeling and Decision Support, CEUR Workshop Proc.</conf-name>, <conf-loc>Fribourg, Switzerland</conf-loc>, <year>2005</year>.</mixed-citation></ref>
<ref id="ref-3"><label>[3]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>D. I.</given-names> <surname>Inan</surname></string-name>, <string-name><given-names>G.</given-names> <surname>Beydoun</surname></string-name> and <string-name><given-names>B.</given-names> <surname>Pradhan</surname></string-name></person-group>, &#x201C;<article-title>Developing a decision support system for disaster management: Case study of an Indonesia volcano eruption</article-title>,&#x201D; <source>International Journal of Disaster Risk Reduction</source>, vol. <volume>31</volume>, pp. <fpage>711</fpage>&#x2013;<lpage>721</lpage>, <year>2018</year>.</mixed-citation></ref>
<ref id="ref-4"><label>[4]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>F.</given-names> <surname>Burstein</surname></string-name>, <string-name><given-names>P. D.</given-names> <surname>Haghighi</surname></string-name> and <string-name><given-names>A.</given-names> <surname>Zaslavsky</surname></string-name></person-group>, &#x201C;<article-title>Context-aware mobile medical emergency management decision support system for safe transportation</article-title>,&#x201D; in <conf-name>Decision Support: An Examination of the DSS Discipline</conf-name>, <conf-loc>New York, USA</conf-loc>, pp. <fpage>163</fpage>&#x2013;<lpage>181</lpage>, <year>2011</year>.</mixed-citation></ref>
<ref id="ref-5"><label>[5]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>Z.</given-names> <surname>Rehena</surname></string-name> and <string-name><given-names>M.</given-names> <surname>Janssen</surname></string-name></person-group>, &#x201C;<article-title>Towards a framework for context-aware intelligent traffic management system in smart cities</article-title>,&#x201D; in <conf-name>Companion Proc. of the Web Conf. 2018</conf-name>, <conf-loc>Republic and Canton of Geneva, CHE</conf-loc>, pp. <fpage>893</fpage>&#x2013;<lpage>898</lpage>, <year>2018</year>.</mixed-citation></ref>
<ref id="ref-6"><label>[6]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>D.</given-names> <surname>Goel</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Chaudhury</surname></string-name> and <string-name><given-names>H.</given-names> <surname>Ghosh</surname></string-name></person-group>, &#x201C;<article-title>An IoT approach for context-aware smart traffic management using ontology</article-title>,&#x201D; in <conf-name>Proc. of the Int. Conf. on Web Intelligence</conf-name>, <conf-loc>New York, USA</conf-loc>, pp. <fpage>42</fpage>&#x2013;<lpage>49</lpage>, <year>2017</year>.</mixed-citation></ref>
<ref id="ref-7"><label>[7]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>B.</given-names> <surname>Manate</surname></string-name>, <string-name><given-names>V. I.</given-names> <surname>Munteanu</surname></string-name>, <string-name><given-names>T. F.</given-names> <surname>Fortis</surname></string-name> and <string-name><given-names>P. T.</given-names> <surname>Moore</surname></string-name></person-group>, &#x201C;<article-title>An intelligent context-aware decision-support system oriented towards healthcare support</article-title>,&#x201D; in <conf-name>2014 Eighth Int. Conf. on Complex, Intelligent and Software Intensive Systems</conf-name><conf-loc>, Birmingham, UK</conf-loc>, pp. <fpage>386</fpage>&#x2013;<lpage>391</lpage>, <year>2014</year>.</mixed-citation></ref>
<ref id="ref-8"><label>[8]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>M.</given-names> <surname>Oliveira</surname></string-name>, <string-name><given-names>C.</given-names> <surname>Hairon</surname></string-name>, <string-name><given-names>O.</given-names> <surname>Andrade</surname></string-name>, <string-name><given-names>R.</given-names> <surname>Moura</surname></string-name>, <string-name><given-names>C.</given-names> <surname>Sicotte</surname></string-name> <etal>et al.,</etal></person-group> &#x201C;<article-title>A context-aware framework for health care governance decision-making systems: A model based on the Brazilian digital TV</article-title>,&#x201D; in <conf-name>2010 IEEE Int. Symposium on &#x201C;A World of Wireless, Mobile and Multimedia Networks&#x201D; (WoWMoM)</conf-name><conf-loc>, Montrreal, QC, Canada</conf-loc>, pp. <fpage>1</fpage>&#x2013;<lpage>6</lpage>, <year>2010</year>.</mixed-citation></ref>
<ref id="ref-9"><label>[9]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>V.</given-names> <surname>Fuster</surname></string-name></person-group>, &#x201C;<article-title>Changing demographics: A new approach to global health care due to the aging population</article-title>,&#x201D; <source>Journal of the American College of Cardiology</source>, vol. <volume>69</volume>, no. <issue>24</issue>, pp. <fpage>3002</fpage>&#x2013;<lpage>3005</lpage>, <year>2017</year>.</mixed-citation></ref>
<ref id="ref-10"><label>[10]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>Boger</surname></string-name>, <string-name><given-names>P.</given-names> <surname>Poupart</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Hoey</surname></string-name>, <string-name><given-names>C.</given-names> <surname>Boutilier</surname></string-name>, <string-name><given-names>G.</given-names> <surname>Fernie</surname></string-name> <etal>et al.,</etal></person-group> &#x201C;<article-title>A decision-theoretic approach to task assistance for persons with dementia</article-title>,&#x201D; in <conf-name>Proc. of the 19th Int. Joint Conf. on Artificial Intelligence</conf-name>, <conf-loc>San Francisco, CA, USA</conf-loc>, pp. <fpage>1293</fpage>&#x2013;<lpage>1299</lpage>, <year>2005</year>.</mixed-citation></ref>
<ref id="ref-11"><label>[11]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>M. E.</given-names> <surname>Pollack</surname></string-name>, <string-name><given-names>L.</given-names> <surname>Brown</surname></string-name>, <string-name><given-names>D.</given-names> <surname>Colbry</surname></string-name>, <string-name><given-names>C. E.</given-names> <surname>McCarthy</surname></string-name>, <string-name><given-names>C.</given-names> <surname>Orosz</surname></string-name> <etal>et al.,</etal></person-group> &#x201C;<article-title>Autominder: An intelligent cognitive orthotic system for people with memory impairment</article-title>,&#x201D; <source>Robotics and Autonomous Systems</source>, vol. <volume>44</volume>, no. <issue>3</issue>, pp. <fpage>273</fpage>&#x2013;<lpage>282</lpage>, <year>2003</year>.</mixed-citation></ref>
<ref id="ref-12"><label>[12]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>A. K.</given-names> <surname>Dey</surname></string-name> and <string-name><given-names>G. D.</given-names> <surname>Abowd</surname></string-name></person-group>, &#x201C;<article-title>Towards a better understanding of context and context-awareness</article-title>,&#x201D; in <conf-name>Int. Symposium on Handheld and Ubiquitous Computing</conf-name>, <conf-loc>Berlin, Heidelberg</conf-loc>, pp. <fpage>304</fpage>&#x2013;<lpage>307</lpage>, <year>1999</year>.</mixed-citation></ref>
<ref id="ref-13"><label>[13]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>M.</given-names> <surname>Baldauf</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Dustdar</surname></string-name> and <string-name><given-names>F.</given-names> <surname>Rosenberg</surname></string-name></person-group>, &#x201C;<article-title>A survey on context-aware systems</article-title>,&#x201D; <source>International Journal of Ad Hoc and Ubiquitous Computing</source>, vol. <volume>2</volume>, no. <issue>4</issue>, pp. <fpage>263</fpage>&#x2013;<lpage>277</lpage>, <year>2007</year>.</mixed-citation></ref>
<ref id="ref-14"><label>[14]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>H.</given-names> <surname>Li</surname></string-name> and <string-name><given-names>J.</given-names> <surname>Wang</surname></string-name></person-group>, &#x201C;<article-title>Application architecture for ambient intelligence systems based on context ontology modeling</article-title>,&#x201D; in <conf-name>2011 Int. Conf. on Internet Technology and Applications</conf-name>, <conf-loc>Wuhan, China</conf-loc>, pp. <fpage>1</fpage>&#x2013;<lpage>4</lpage>, <year>2011</year>.</mixed-citation></ref>
<ref id="ref-15"><label>[15]</label><mixed-citation publication-type="thesis"><person-group person-group-type="author"><string-name><given-names>T.</given-names> <surname>Stang</surname></string-name></person-group>, &#x201C;<source>Service Interoperability in Ubiquitous Computing Environments</source>, &#x201D; <source>Ph.D</source>. <publisher-loc>dissertation, Ludwig-Maximilians-University of Munich, Germany</publisher-loc>, <year>2003</year>.</mixed-citation></ref>
<ref id="ref-16"><label>[16]</label><mixed-citation publication-type="thesis"><person-group person-group-type="author"><string-name><given-names>A. K.</given-names> <surname>Dey</surname></string-name></person-group>, &#x201C;<source>Providing Architectural Support for Building Context-Aware Applications</source>. <source>Ph.D</source>. <publisher-loc>dissertation, Georgia Institute of Technology, USA</publisher-loc>, <year>2000</year>.</mixed-citation></ref>
<ref id="ref-17"><label>[17]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>L.</given-names> <surname>Capra</surname></string-name>, <string-name><given-names>W.</given-names> <surname>Emmerich</surname></string-name> and <string-name><given-names>C.</given-names> <surname>Mascolo</surname></string-name></person-group>, &#x201C;<article-title>Reflective middleware solutions for context-aware applications</article-title>,&#x201D; in <conf-name>Proc. of the Third Int. Conf. on Metalevel Architectures and Separation of Crosscutting Concerns</conf-name>, <conf-loc>Berlin, Heidelberg</conf-loc>, pp. <fpage>126</fpage>&#x2013;<lpage>133</lpage>, <year>2001</year>.</mixed-citation></ref>
<ref id="ref-18"><label>[18]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>S.</given-names> <surname>Boutemedjet</surname></string-name> and <string-name><given-names>D.</given-names> <surname>Ziou</surname></string-name></person-group>, &#x201C;<article-title>A graphical model for context-aware visual content recommendation</article-title>,&#x201D; <source>IEEE Transactions on Multimedia</source>, vol. <volume>10</volume>, no. <issue>1</issue>, pp. <fpage>52</fpage>&#x2013;<lpage>62</lpage>, <year>2007</year>.</mixed-citation></ref>
<ref id="ref-19"><label>[19]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>K.</given-names> <surname>Henricksen</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Indulska</surname></string-name> and <string-name><given-names>A.</given-names> <surname>Rakotonirainy</surname></string-name></person-group>, &#x201C;<article-title>Modeling context information in pervasive computing systems</article-title>,&#x201D; in <conf-name>Int. Conf. on Pervasive Computing</conf-name>, <conf-loc>Berlin, Heidelberg</conf-loc>, pp. <fpage>167</fpage>&#x2013;<lpage>180</lpage>, <year>2002</year>.</mixed-citation></ref>
<ref id="ref-20"><label>[20]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>McCarthy</surname></string-name></person-group>, &#x201C;<article-title>Notes on formalizing contexts</article-title>,&#x201D; in <conf-name>Proc. of the Thirteenth Int. Joint Conf. on Artificial Intelligence</conf-name>, <conf-loc>San Mateo, California</conf-loc>, pp. <fpage>555</fpage>&#x2013;<lpage>560</lpage>, <year>1993</year>.</mixed-citation></ref>
<ref id="ref-21"><label>[21]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>M.</given-names> <surname>Miraoui</surname></string-name>, <string-name><given-names>S.</given-names> <surname>El-etriby</surname></string-name>, <string-name><given-names>A. Z.</given-names> <surname>Abed</surname></string-name> and <string-name><given-names>C.</given-names> <surname>Tadj</surname></string-name></person-group>, &#x201C;<article-title>A logic based context modeling and context-aware services adaptation for a smart office</article-title>,&#x201D; <source>International Journal Of Advanced Studies in Computers, Science And Engineering</source>, &#x201D; Gothenburg, vol. <volume>5</volume>, no. <issue>1</issue>, pp. <fpage>1</fpage>&#x2013;<lpage>6</lpage>, <year>2016</year>.</mixed-citation></ref>
<ref id="ref-22"><label>[22]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>F.</given-names> <surname>Dobslaw</surname></string-name>, <string-name><given-names>A.</given-names> <surname>Larsson</surname></string-name>, <string-name><given-names>T.</given-names> <surname>Kanter</surname></string-name> and <string-name><given-names>J.</given-names> <surname>Walters</surname></string-name></person-group>, &#x201C;<article-title>An object-oriented model in support of context-aware mobile applications</article-title>,&#x201D; in <conf-name>Int. Conf. on Mobile Wireless Middleware, Operating Systems, and Applications</conf-name><conf-loc>, Berlin, Heidelberg</conf-loc>, pp. <fpage>205</fpage>&#x2013;<lpage>220</lpage>, <year>2010</year>.</mixed-citation></ref>
<ref id="ref-23"><label>[23]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>B.</given-names> <surname>Bouzy</surname></string-name> and <string-name><given-names>T.</given-names> <surname>Cazenave</surname></string-name></person-group>, &#x201C;<article-title>Using the object oriented paradigm to model context in computer go</article-title>,&#x201D; in <conf-name>Proc. of the First Int. and Interdisciplinary Conf. on Modeling and Using Context</conf-name>, <conf-loc>Rio de Janeiro, Brazil</conf-loc>, pp. <fpage>279</fpage>&#x2013;<lpage>289</lpage>, <year>1997</year>.</mixed-citation></ref>
<ref id="ref-24"><label>[24]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>Bhogal</surname></string-name> and <string-name><given-names>P.</given-names> <surname>Moore</surname></string-name></person-group>, &#x201C;<article-title>Towards object-oriented context modeling: Object-oriented relational database data storage</article-title>,&#x201D; in <conf-name>28th Int. Conf. on Advanced Information Networking and Applications Workshops</conf-name>, <conf-loc>Victoria, BC, Canada</conf-loc>, pp. <fpage>542</fpage>&#x2013;<lpage>547</lpage>, <year>2014</year>.</mixed-citation></ref>
<ref id="ref-25"><label>[25]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>X. H.</given-names> <surname>Wang</surname></string-name>, <string-name><given-names>D. Q.</given-names> <surname>Zhang</surname></string-name>, <string-name><given-names>T.</given-names> <surname>Gu</surname></string-name> and <string-name><given-names>H. K.</given-names> <surname>Pung</surname></string-name></person-group>, &#x201C;<article-title>Ontology based context modeling and reasoning using OWL</article-title>,&#x201D; in <conf-name>Proc. of the Second IEEE Annual Conf. on Pervasive Computing and Communications Workshops</conf-name>, <conf-loc>USA</conf-loc>, pp. <fpage>18</fpage>&#x2013;<lpage>22</lpage>, <year>2004</year>.</mixed-citation></ref>
<ref id="ref-26"><label>[26]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>P.</given-names> <surname>Moore</surname></string-name> and <string-name><given-names>B.</given-names> <surname>Hu</surname></string-name></person-group>, &#x201C;<article-title>A context framework with ontology for personalised and cooperative mobile learning</article-title>,&#x201D; in <conf-name>Computer Supported Cooperative Work in Design III</conf-name>, <conf-loc>Berlin, Heidelberg</conf-loc>, pp. <fpage>727</fpage>&#x2013;<lpage>738</lpage>, <year>2007</year>.</mixed-citation></ref>
<ref id="ref-27"><label>[27]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>N.</given-names> <surname>Xu</surname></string-name>, <string-name><given-names>W.</given-names> <surname>Zhang</surname></string-name>, <string-name><given-names>H.</given-names> <surname>Yang</surname></string-name> and <string-name><given-names>X.</given-names> <surname>Xing</surname></string-name></person-group>, &#x201C;<article-title>CACOnt: A ontology-based model for context modeling and reasoning</article-title>,&#x201D; <source>Applied Mechanics and Materials</source>, vol. <volume>347</volume>, pp. <fpage>2304</fpage>&#x2013;<lpage>2310</lpage>, <year>2013</year>.</mixed-citation></ref>
<ref id="ref-28"><label>[28]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>I.</given-names> <surname>Horrocks</surname></string-name>, <string-name><given-names>P. F.</given-names> <surname>Patel-Schneider</surname></string-name> and <string-name><given-names>F. V.</given-names> <surname>Harmelen</surname></string-name></person-group>, &#x201C;<article-title>From SHIQ and RDF to OWL: The making of a Web ontology language</article-title>,&#x201D; <source>Journal of Web Semantics</source>, vol. <volume>1</volume>, no. <issue>1</issue>, pp. <fpage>7</fpage>&#x2013;<lpage>26</lpage>, <year>2003</year>.</mixed-citation></ref>
<ref id="ref-29"><label>[29]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>H.</given-names> <surname>Chen</surname></string-name>, <string-name><given-names>F.</given-names> <surname>Perich</surname></string-name>, <string-name><given-names>T.</given-names> <surname>Finin</surname></string-name> and <string-name><given-names>A.</given-names> <surname>Joshi</surname></string-name></person-group>, &#x201C;<article-title>SOUPA: standard ontology for ubiquitous and pervasive applications</article-title>,&#x201D; in <conf-name>the First Annual Int. Conf. on Mobile and Ubiquitous Systems: Networking and Services</conf-name>, <conf-loc>MOBIQUITOUS</conf-loc>, pp. <fpage>258</fpage>&#x2013;<lpage>267</lpage>, <year>2004</year>.</mixed-citation></ref>
<ref id="ref-30"><label>[30]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>D.</given-names> <surname>Zhang</surname></string-name>, <string-name><given-names>T.</given-names> <surname>Gu</surname></string-name> and <string-name><given-names>X.</given-names> <surname>Wang</surname></string-name></person-group>, &#x201C;<article-title>Enabling context-aware smart home with semantic technology</article-title>,&#x201D; <source>International Journal of Human-Friendly Welfare Robotic Systems</source>, vol. <volume>6</volume>, no. <issue>4</issue>, pp. <fpage>12</fpage>&#x2013;<lpage>20</lpage>, <year>2005</year>.</mixed-citation></ref>
<ref id="ref-31"><label>[31]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>H.</given-names> <surname>Chen</surname></string-name>, <string-name><given-names>T.</given-names> <surname>Finin</surname></string-name> and <string-name><given-names>A.</given-names> <surname>Joshi</surname></string-name></person-group>, &#x201C;<article-title>Semantic web in the context broker architecture</article-title>,&#x201D; in <source>Proc. of the Second IEEE Annual Conf. on Pervasive Computing and Communications</source>, <conf-loc>Orlando, Florida, USA</conf-loc>, <year>2004</year>.</mixed-citation></ref>
<ref id="ref-32"><label>[32]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>T.</given-names> <surname>Gu</surname></string-name>, <string-name><given-names>X. H.</given-names> <surname>Wang</surname></string-name>, <string-name><given-names>H. K.</given-names> <surname>Pung</surname></string-name> and <string-name><given-names>D. Q.</given-names> <surname>Zhang</surname></string-name></person-group>, &#x201C;<article-title>An ontology-based context model in intelligent environments</article-title>,&#x201D; in <conf-name>Proc. of Communication Networks and Distributed Systems Modeling and Simulation Conf.</conf-name>, <conf-loc>San Diego, California, USA</conf-loc>, <year>2004</year>.</mixed-citation></ref>
<ref id="ref-33"><label>[33]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>L.</given-names> <surname>Padgham</surname></string-name>, <string-name><given-names>D.</given-names> <surname>Scerri</surname></string-name>, <string-name><given-names>G.</given-names> <surname>Jayatilleke</surname></string-name> and <string-name><given-names>S.</given-names> <surname>Hickmott</surname></string-name></person-group>, &#x201C;<article-title>Integrating BDI reasoning into agent-based modeling and simulation</article-title>,&#x201D; in <conf-name>Proc. of the 2011 Winter Simulation Conf. (WSC)</conf-name>, <conf-loc>Phoenix, AZ, USA</conf-loc>, pp. <fpage>345</fpage>&#x2013;<lpage>356</lpage>, <year>2011</year>.</mixed-citation></ref>
<ref id="ref-34"><label>[34]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>D.</given-names> <surname>Guessoum</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Miraoui</surname></string-name> and <string-name><given-names>C.</given-names> <surname>Tadj</surname></string-name></person-group>, &#x201C;<article-title>Contextual case-based reasoning applied to a mobile device</article-title>,&#x201D; <source>International Journal of Pervasive Computing and Communications</source>, vol. <volume>13</volume>, no. <issue>3</issue>, pp. <fpage>282</fpage>&#x2013;<lpage>299</lpage>, <year>2017</year>.</mixed-citation></ref>
<ref id="ref-35"><label>[35]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>A.</given-names> <surname>Bikakis</surname></string-name> and <string-name><given-names>G.</given-names> <surname>Antoniou</surname></string-name></person-group>, &#x201C;<article-title>Rule-based contextual reasoning in ambient intelligence</article-title>,&#x201D; in <conf-name>Int. Workshop on Rules and Rule Markup Languages for the Semantic Web</conf-name>, Berlin, Heidelberg, Germany, pp. <fpage>74</fpage>&#x2013;<lpage>88</lpage>, <year>2010</year>. </mixed-citation></ref>
<ref id="ref-36"><label>[36]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>G.</given-names> <surname>Czibula</surname></string-name>, <string-name><given-names>A. M.</given-names> <surname>Guran</surname></string-name>, <string-name><given-names>I. G.</given-names> <surname>Czibula</surname></string-name> and <string-name><given-names>G. S.</given-names> <surname>Cojocar</surname></string-name></person-group>, &#x201C;<article-title>IPA-An intelligent personal assistant agent for task performance support</article-title>,&#x201D; in <conf-name>2009 IEEE 5th Int. Conf. on Intelligent Computer Communication and Processing</conf-name>, <conf-loc>Cluj-Napoca, Romania</conf-loc>, pp. <fpage>31</fpage>&#x2013;<lpage>34</lpage>, <year>2009</year>.</mixed-citation></ref>
<ref id="ref-37"><label>[37]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>T. Y.</given-names> <surname>Leong</surname></string-name> and <string-name><given-names>C.</given-names> <surname>Cao</surname></string-name></person-group>, &#x201C;<article-title>Modelling medical decisions in dynamol: A new general framework of dynamic decision analysis</article-title>,&#x201D; in <conf-name>Proc. of the Ninth Conf. on Medical Informatics</conf-name>, <conf-loc>Amsterdam: North Holland</conf-loc>, pp. <fpage>483</fpage>&#x2013;<lpage>487</lpage>, <year>1998</year>.</mixed-citation></ref>
<ref id="ref-38"><label>[38]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>Solana</surname></string-name>, <string-name><given-names>C.</given-names> <surname>C&#x00E1;ceres</surname></string-name>, <string-name><given-names>A. G.</given-names> <surname>Molina</surname></string-name>, <string-name><given-names>P.</given-names> <surname>Chausa</surname></string-name>, <string-name><given-names>E.</given-names> <surname>Opisso</surname></string-name> <etal>et al.,</etal></person-group> &#x201C;<article-title>Intelligent therapy assistant (ITA) for cognitive rehabilitation in patients with acquired brain injury</article-title>,&#x201D; <source>BMC Medical Informatics and Decision Making</source>, vol. <volume>14</volume>, no. <issue>1</issue>, pp. <fpage>1</fpage>&#x2013;<lpage>13</lpage>, <year>2014</year>.</mixed-citation></ref>
<ref id="ref-39"><label>[39]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>D. J.</given-names> <surname>Patterson</surname></string-name>, <string-name><given-names>L.</given-names> <surname>Liao</surname></string-name>, <string-name><given-names>K.</given-names> <surname>Gajos</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Collier</surname></string-name>, <string-name><given-names>N.</given-names> <surname>Livic</surname></string-name> <etal>et al.,</etal></person-group> &#x201C;<article-title>Opportunity knocks: A system to provide cognitive assistance with transportation services</article-title>,&#x201D; in <conf-name>Int. Conf. on Ubiquitous Computing, Berlin, Heidelberg</conf-name>, <conf-loc>Germany</conf-loc>, pp. <fpage>433</fpage>&#x2013;<lpage>450</lpage>, <year>2004</year>. </mixed-citation></ref>
<ref id="ref-40"><label>[40]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>Bauchet</surname></string-name>, <string-name><given-names>D.</given-names> <surname>Vergnes</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Giroux</surname></string-name> and <string-name><given-names>H.</given-names> <surname>Pigot</surname></string-name></person-group>, &#x201C;<article-title>A pervasive cognitive assistant for smart homes</article-title>,&#x201D; in <conf-name>Proc. of the Int. Conf. on Aging, Disability and Independence</conf-name>, <conf-loc>St. Pertersburg, Florida, USA</conf-loc>, vol. <volume>228</volume>, <year>2006</year>. </mixed-citation></ref>
<ref id="ref-41"><label>[41]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>P.</given-names> <surname>Rashidi</surname></string-name> and <string-name><given-names>A.</given-names> <surname>Mihailidis</surname></string-name></person-group>, &#x201C;<article-title>A survey on ambient-assisted living tools for older adults</article-title>,&#x201D; <source>IEEE Journal of Biomedical and Health Informatics</source>, vol. <volume>17</volume>, no. <issue>3</issue>, pp. <fpage>579</fpage>&#x2013;<lpage>590</lpage>, <year>2012</year>.</mixed-citation></ref>
<ref id="ref-42"><label>[42]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>Wan</surname></string-name>, <string-name><given-names>C.</given-names> <surname>Byrne</surname></string-name>, <string-name><given-names>G. M.</given-names> <surname>O&#x0027;Hare</surname></string-name> and <string-name><given-names>M. J.</given-names> <surname>Grady</surname></string-name></person-group>, &#x201C;<article-title>Orange alerts: lessons from an outdoor case study</article-title>,&#x201D; in <conf-name>2011 5th Int. Conf. on Pervasive Computing Technologies for Healthcare (PervasiveHealth) and Workshops</conf-name>, <conf-loc>IEEE</conf-loc>, pp. <fpage>446</fpage>&#x2013;<lpage>451</lpage>, <year>2011</year>.</mixed-citation></ref>
<ref id="ref-43"><label>[43]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>C. C.</given-names> <surname>Lin</surname></string-name>, <string-name><given-names>M. J.</given-names> <surname>Chiu</surname></string-name>, <string-name><given-names>C. C.</given-names> <surname>Hsiao</surname></string-name>, <string-name><given-names>R. G.</given-names> <surname>Lee</surname></string-name> and <string-name><given-names>Y. S.</given-names> <surname>Tsai</surname></string-name></person-group>, &#x201C;<article-title>Wireless health care service system for elderly with dementia</article-title>,&#x201D; <source>IEEE Transactions on Information Technology in Biomedicine</source>, vol. <volume>10</volume>, no. <issue>4</issue>, pp. <fpage>696</fpage>&#x2013;<lpage>704</lpage>, <year>2006</year>.</mixed-citation></ref>
<ref id="ref-44"><label>[44]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>Domingue</surname></string-name>, <string-name><given-names>D.</given-names> <surname>Fensel</surname></string-name> and <string-name><given-names>J. A.</given-names> <surname>Hendler</surname></string-name></person-group>, &#x201C;<chapter-title>Introduction to the semantic web technologies</chapter-title>,&#x201D; in <source>Handbook of Semantic Web Technologies</source>, <publisher-name>Springer</publisher-name>, <publisher-loc>Berlin, Heidelberg</publisher-loc>, <year>2011</year>.</mixed-citation></ref>
<ref id="ref-45"><label>[45]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><given-names>G.</given-names> <surname>Antoniou</surname></string-name> and <string-name><given-names>F. V.</given-names> <surname>Harmelen</surname></string-name></person-group>, &#x201C;<chapter-title>Web ontology language: Owl</chapter-title>,&#x201D; in <source>Handbook on Ontologies</source>, <publisher-name>Springer</publisher-name>, <publisher-loc>Berlin</publisher-loc>, <publisher-loc>Heidelberg,</publisher-loc> pp. <fpage>67</fpage>&#x2013;<lpage>92</lpage>, <year>2004</year>.</mixed-citation></ref>
<ref id="ref-46"><label>[46]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>D. L.</given-names> <surname>McGuinness</surname></string-name> and <string-name><given-names>F. V.</given-names> <surname>Harmelen</surname></string-name></person-group>, &#x201C;<article-title>OWL web ontology language overview</article-title>,&#x201D; <source>W3C Recommendation</source>, vol. <volume>10</volume>, <year>2004</year>.</mixed-citation></ref>
<ref id="ref-47"><label>[47]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>B.</given-names> <surname>Motik</surname></string-name>, <string-name><given-names>B. C.</given-names> <surname>Grau</surname></string-name>, <string-name><given-names>I.</given-names> <surname>Horrocks</surname></string-name>, <string-name><given-names>Z.</given-names> <surname>Wu</surname></string-name>, <string-name><given-names>A.</given-names> <surname>Fokoue</surname></string-name> <etal>et al.,</etal></person-group> &#x201C;<article-title>OWL 2 web ontology language profiles</article-title>,&#x201D; <source>W3C Recommendation</source>, vol. <volume>27</volume>, <year>2009</year>.</mixed-citation></ref>
<ref id="ref-48"><label>[48]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>E.</given-names> <surname>Prud&#x0027;hommeaux</surname></string-name> and <string-name><given-names>A.</given-names> <surname>Seaborne</surname></string-name></person-group>, &#x201C;<article-title>SPARQL query language for RDF</article-title>,&#x201D; <source>W3C Recommendation</source>, <year>2008</year>.</mixed-citation></ref>
<ref id="ref-49"><label>[49]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><given-names>W.</given-names> <surname>Reisig</surname></string-name></person-group>, &#x201C;<source>Understanding Petri Nets: Modeling Techniques, Analysis Methods, Case Studies</source>,&#x201D; <edition>1<sup><roman>st</roman></sup> ed.</edition>, <publisher-name>Berlin, Germany, Springer</publisher-name>, <year>2013</year>. </mixed-citation></ref>
<ref id="ref-50"><label>[50]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><given-names>R.</given-names> <surname>Milner</surname></string-name> and <string-name><given-names>M.</given-names> <surname>Tofte</surname></string-name></person-group>, &#x201C;<source>The Definition of Standard ML</source>, &#x201D; <publisher-name>MIT Press</publisher-name>, <publisher-loc>Cambridge, MA, USA</publisher-loc>. <year>1990</year>.</mixed-citation></ref>
<ref id="ref-51"><label>[51]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><given-names>W. M. P.</given-names> <surname>VanderAalst</surname></string-name>, <string-name><given-names>C.</given-names> <surname>Stahl</surname></string-name> and <string-name><given-names>M.</given-names> <surname>Westergaard</surname></string-name></person-group>, &#x201C;<chapter-title>Strategies for modeling complex processes using colored petri nets</chapter-title>,&#x201D; in <source>Transactions on Petri Nets and other Models of Concurrency vii</source>, <publisher-name>Springer, Berlin</publisher-name>, <publisher-loc>Heidelberg</publisher-loc>, pp. <fpage>6</fpage>&#x2013;<lpage>55</lpage>, <year>2013</year>.</mixed-citation></ref>
</ref-list>
</back>
</article>