You are on page 1of 8

Distributed Interfaces and Context-oriented broadcast services in a smart-home

environment

José Manuel Negrete Ramı́rez∗ , Philippe Roose† , Marc Dalmau‡ ,


Université de Pau et des Pays de l’Adour
IUT de Bayonne - LIUPPA, Anglet, France 64600
∗ Email: jose-manuel.negrete-ramirez@univ-pau.fr
Email: {Philippe.Roose};‡ {Marc.Dalmau}@iutbayonne.univ-pau.fr

Abstract—In this paper, which describes a work in progress, components, Data collection (4) and Data storage (5), a list
we wish to propose context aware service delivery, and we of activities performed at home (6), the criteria required for
focus on distributed human computer interface, in order to evaluating situations (7), a situation model (8) for identifying
exploit the variety of interaction mode/capabilities according
to current situation, users, and context. Our aim is providing and deducting situations from daily activities within the
new kind of more dynamic interaction modes. We particularly home environment, a context model (9), a DSL (10) which
focus on the domain of smart-home (including digital health will integrate the different types of context information, and
home preoccupations). One objective is the use of distributed the Kalimucho (11) middleware, which provides dynamic
interfaces associated to interactive services in order to help in service deployment and migration, for implementation.
maintaining old people at home (Digital Health Smart Homes).
Keywords-Smart-Health; context modeling; context aware; III. R ELATED WORK
distributed interfaces The approach of our work is focused on the field of smart
health, where topics related to interfaces, context manage-
I. I NTRODUCTION ment, e-health, smart environments, dynamic deployment,
Currently, everybody wish to access to applications from are present. We will offer a software architecture that will
a wide variety of devices (PC, Tablet, Smartphone, Set-top- allow to adapt the deployment of interactive services (in
box, etc.) in multiple situations, including various interac- order to help in maintaining old people at home). Therefore,
tions and modalities (mouse, tactile screen, voice, gesture we will present the literature related to this latter.
detection, etc.). At home, users interact with many devices Due to the fact that a context-aware system needs to
and get access to many multimedia oriented documents design the context information; important issues should be
(hosted on local drives, on cloud storage, online streaming, taken into account. Ones are considered internal, such as
etc.) in various situations and with multiple (and sometimes the system own awareness of current internal status and
at the same time) devices and interactions capabilities. In capabilities; and some others are external concerning to the
this work-in-progress paper, we wish to propose context real world, for example: place, time, user preferences and
aware service delivery, and we focus on distributed hu- needs [1].
man computer interface in order to exploit the variety of In order to propose health-related applications enabling
interaction mode/capabilities according to current situation, elderly people to react, the application designer must be able
users, and context. We aim at providing new kind of more to desing such application. A Domain-Specific Language
dynamic interaction modes (migration/duplication of parts (DSL) is an appropiate tool for this goal.
of graphical interfaces, dynamic modification of interaction A textual Domain-Specific Language which is adapted
mode while applications are running). We particularly focus for modeling context information called MLContext, was
on the domain of smart-home (including digital health home carried out by Hoyos et al. [2]. It has been implemented
preoccupations). One objective is the use of distributed by applying ModelDriven Development from context mo-
interfaces associated to interactive services in order to help dels. A domain analysis has been applied for getting the
in maintaining old people at home (Digital Health Smart requirements and design choices in order to create the DSL.
Homes). The generative approach has been applied to two different
middleware platforms for context management: OCP [3]
II. G ENERAL FRAMEWORK and JCAF [4] middleware platforms. The advantages of ths
The general framework of this work-in-progress paper approach are that its DSL provides high level of abstraction
is shown in Figure 1. It will be explained throughout this and the possibility of reusing context models. Moreover, the
paper in order to introduce the proposal to the reader. The language is easy lo learn. Neither adaptive services, which
framework includes eleven main components: a scenario (1) should be built on top of any corresponding middleware, in
designed under iCASA (2) with the help of the iPOJO (3) order to create complete ubiquitous computing applications;
❧✪✥ ✬✹ ✩✬✦✦✤✢★✩✜✧★✬✢ ✷✥❅★✩✥ ⑨❻❶
✁❈❉❊❉ ⑨❷❶
❨❙❩❲❘❙❬ ❧✪✥ ✬✹ ✴✜✧♠✯✬✬✦
✖✠✞✻✝✞✡✎ ♥❧✢♦✷✯✥✪✪★✢✣
☞✎✗✌✠☞ ❃✎✌☞✍✞☞✓ ✔✍✞☞✎✝✠✞✌✡✍✘❋ ✰✬✬♣★✢✣
▲✝●☛☞✞ ✒✝✎✞ ❪✝✞✠P ✵✜✧★✢✣
☞✎✗✌✠☞ ✾✻●☛✌✠✝✞✌✡✍✘ ✒✝✎✞✾P✡✍☞ ✖✠✞✌✗✌✞❍ ✞✎✝✠❫☞✎ q✜♣★✢✣ ✤✮
✛★✥ ✙✬r✢
☞✎✗✌✠☞ ✌✍✘✞✝✍✞✌✝✞✌✡✍ ☞✞❏✞✡✾ ❭✡✑ ❴☞✝✎✝●☛☞ ✘☞✍✘✡✎✘ ✚★✧✧★✢✣
☞✎✗✌✠☞ ✘✡☛✻✞✌✡✍ t✱✣★✥✢✥ ♥✤✯★✢✜✯✱ ✉ ✹✥✩✜✭ ✥✭✥✦★✢✜✧★✬✢♦
☞✎✗✌✠☞ ✓✌✘✠✡✗☞✎❍ ✰♠✜✢✣✥ ✬✢✥ ✮✬✪★✧★✬✢ ✧✬ ✜✢✬✧♠✥✯
✫✯✜❅✥✭ r★✧♠★✢ ✧♠✥ ✮✭✜✩✥ ✬✹ ✯✥✪★✷✥✢✩✥
s★✢✷ ✧♠✥✦✪✥✭❅✥✪ ★✢ ✧★✦✥ ✜✢✷ ✪✮✜✩✥
■✡✍❏✕✻✍✠✞✌✡✍✝☛ ✠✡✍✠☞✎✍✘ ✈✥✧✧★✢✣ ✬✤✧ ✹✯✬✦ ✯✥✪★✷✥✢✩✥ ♥♠✬✦✥♦
✛✬✣★✩✜✭ ✩✬✦✦✤✢★✩✜✧★✬✢✇ ✜✩✧★✢✣ ✜✢✷ ✴✥♠✜❅★✬✤✯
✟✡✍✞☞✑✞ ✔✍✕✡✎✒✝✞✌✡✍ ①✯✥✮✜✯✜✧★✬✢ ✜✢✷ ✩✬✢✷★✧★✬✢ ✬✹ ✦✥✜✭✪
✟✡✍✕✌✏✻✎✝✞✌✡✍ t✬✤✪✥ ✩♠✬✯✥✪
❡ ✐ ✖✠✞✌✗✌✞✌☞✘
❑☞✎✘✌✘✞✝✍✠☞ ❛❞ ❦ ①✯✥✪✩✯★✮✧★✬✢ ✜✢✷ ✦✜✢✜✣✥ ✧✯✥✜✧✦✥✢✧
❝ ❥ ②✤✱★✢✣ ✮✯✬✮✥✯✭✱ ✉ ❅✬✭✤✢✧✜✯★✭✱
☞✠✻✎✌✞❍ ❜ ❛

❵ ❤✐ s✤✢ ✜✩✧★❅★✧★✥✪ ✜✭✬✢✥ ✬✯ ★✢ ✣✯✬✤✮
❣❢

⑨❼❶
❄✥✩✬✣✢★✧★✬✢ ✬✹ ✩✬✢✩✤✯✯✥✢✧
⑨❾❶ ✜✩✧★❅★✧★✥✪❆
✺ ✖✠✞✌✗✌✞✌☞✘ ❄✥✩✬✣✢★✧★✬✢ ✬✹ ★✢✧✥✯✭✥✜❅✥✷
⑨❸❶ ✆✝✞✝ ⑨❹❶ ⑨❺❶ ✟✡✍✞☞✑✞ ⑨❽❶
✌✞✻✝✞✌✡✍ ✜✩✧★❅★✧★✥✪❆
✞✡✎✌✍✏ ✒✡✓☞☛
✁✂✄☎✄ ✠✡☛☛☞✠✞✌✡✍ ❄✥✩✬✣✢★❇★✢✣ ✜✦✴★✣✤★✧✱ ✬✹
✆✝✞✝ ✼✡✓☞☛
★✢✧✥✯✮✯✥✧✜✧★✬✢ ✬✹ ✜✩✧★❅★✧★✥✪❆
❄✥✩✬✣✢★❇★✢✣ ✜✩✧★❅★✧★✥✪
✮✥✯✹✬✯✦✥✷ ✴✱ ✦✤✭✧★✮✭✥
✯✥✪★✷✥✢✧✪❆
✐ ❢
❦❝ ✐
❢ ❛ ✽✻✍✠✞✌✡✍✝☛

❤⑥ ❦
❛ ⑤ ✠✡✒✾✡✍☞✍✞
✳✴✪✧✯✜✩✧ ✪✱✢✧✜✲ ⑤ ⑧ ✼✡✗☞✒☞✍✞
⑨⑩❿❶ ④ ❦ ✔✍✞☞✎✝✠✞✌✗☞
◗❘❙❚❯❱❲❳ ⑨⑩❶ ✛✜✢✣✤✜✣✥ ③ ⑦
✰✬✢✩✯✥✧✥ ✪✱✢✧✜✲ ✠✡✒✾✡✍☞✍✞
▲✌✒☞ ✙✚✛ ✚✥✦✜✢✧★✩✪
▼✍✗✌✎✡✍✒☞✍✞ ◆✘☞✍✘✡✎✘❖
✔✍P✝●✌✞✝✍✞✘ ✫✬✬✭ ✮✯✬✩✥✪✪
✆✝✞✝
⑨⑩⑩❶
✆✌✘✾☛✝✠☞✒☞✍✞ ✰✬✢✧✥✲✧ ✧✱✮✥✪ ✿✖❀✔✼❁✟❂❃
✵✜✪✱ ✧✬ ✤✪✥
✶✬✷✥✭ ✯✥✤✪✥
✸✢✷✥✮✥✢✷✥✢✧ ✹✯✬✦ ✜✮✮✭★✩✜✧★✬✢ ✷✬✦✜★✢
✶✬✷✥✭✪ ✬✹ ★✢✷✥✮✥✢✷✥✢✧ ✮✭✜✧✹✬✯✦✪

Figure 1. Integrated framework showing the components of the general architecture of our proposal.

nor also those related to context information (e.g. context context of each user is maintained, allowing users to be
discovery, reasoning), are considered in this work. aware of their neighbors and of the existence of content
The survey research of Raychoudhury et al. [5], provides that may be of interest for them. The main drawback
the identification of different design dimensions of pervasive found is that it needs to be extended on terms of the
computing middleware, and investigates its uses in various efficient management of heterogeneous context information
system services, which can be potentiallly helpful for our (mainly related to heterogeneous sensing devices), as well
approach. In-depth analysis of the system services have been as the implementation of services based on opportunistic
carried out, and middleware systems have been carefully computing.
studied. With a view to aid future middleware developers,
some challenging open research issues are also identified. The research of Lee et al. [8], focuses on a sensor-based
context-aware system with three inference processes: rule,
The work of Preuveneers et al. [6], relies on the feasibility
inference and pattern driven. An electrical lighting is used
of using HTML5 and related web application standards
as an example for demonstrating the proposed context-aware
for developing advanced mobile and context-aware health
system by using pattern data from five families for a working
self-care application, presenting as key features: context-
week and establishing rules and inferences. The processes
awareness and visualisation of multivariate data with pa-
to develop a smart home are described in order to improve
rallel coordinates for decision support for certain activity
the personalized services to meet the needs of residents.
recognition, visualization and security features; by means of
However, it is still required to implement the framework
a diabetes monitoring application as a practical use case.
with more complicated scenarios and construct the ubiqui-
Results are indicated through detection devices, helping to
tous residential environments with a verified context-aware
prevent the beginning of serious health issues. This system
inference system.
uses context awareness smoothly and proactively. The only
disadvantage is that it is necessary to mitigate performance The research of Bricon-Souf and Newman [9] consists
concerns with computationally expensive code. on a review on how context-awareness is applied in various
CAMEO, a light-weight context-aware middleware plat- healthcare projects that may be relevant for the reader, in
form for mobile devices, is introduced by Arnaboldi et al. order to extend his knowlodge about the subject matter. A
[7]. it is designed to support the development of real-time requirement management approach is also described in [10].
mobile social network application; to collect and reason
about multidimensional context information derived by the The remainder of this paper is structured as follows:
local device, the local user, and their physical interactions Section IV is a presentation of benefits of using iCASA tool
with other devices and users. It provides a common ap- for seeting up a daily living scenario for the elderly. The
plication programming interface to mobile social network general architecture of our approach is presented in Section
applications through which context- and social-aware func- V, and Section VI contains conclusion and brief discussion
tionalities can be exploited to optimize their features. The of this wok-in-progress paper.
IV. I CASA be set up. Relevant information that will help to deduct situa-
A. Scenario tions subsequently will be obtained. The general architecture
of our proposal will be described in the following section.
iCASA [11], is a smart home simulator which allows
to have control over: time, environment, inhabitants, de- V. G ENERAL A RCHITECTURE
vices, a graphical user interface, scripting facilities (for
We will offer a software architecture that will allow to
the environment), notification facilities [14], as shown in
adapt the deployment. Therefore, we will present the tools
Table I. iCASA is used in order to set up a simulated
related to this latter, which include topics related to inter-
scenario. The purpose of employing iCASA, which is based
faces, context management, e-health, smart environments,
on OSGi [12] and iPOJO [13], is that it takes advantage of
dynamic deployment. The previous aspects will be included
the versatility and dynamism of the two latter, which are
in the next subsections, where the roles of activities of
provided as a set of modules and components (e.g. bundles
daily living, determining situation types, a situation model,
and iPOJO components) that are deployed on a OSGi/iPOJO
a context model and the Kalimucho middleware, will be
framework.
explained in order to describe how our architecture will
Table I achieve the deployment adaptation.
ICASA TABLE
A. Activities
Time Possibility to slow down, speed up or stop time during
the simulation. Simulation of long-term actions such as
A list of possible activities is necessary as a preliminary
as energy consumption to skip to important actions.
inventory. Such inventory will be used as a tool that is
Environment Definition of different zones in a house. An administra-
going to permit us determining different types of situations
tion interface to modify different physical properties
in the beginning; only then, these situations will be part of a
(temperature, luminosity, etc.) of the different zones,
situation model and a context model that will help to deduct
is provided.
new situations.
Inhabitants Insertion or removal inhabitants from the environment.
Wilde [15] conceived an activity as a systemic whole in
Inhabitants, can move from zone to zone, may be
which all elements have a relationship to other elements, It is
carrying physical devices. also stated that in the reality, an activity requires contextual
Devices Devices can be simulated or real. At any time, the user information, from other related activities (whether it is in
can add or remove new simulated devices and modify terms of time, space, etc.), and that the activity is in itself
their localisation in the rooms. contextual information for other activities.
A graphical The interface displays a map of the house and the A list of possible activities will be required, it will be
user interface localisation of the different devices. It allows to create considered as an inventory which will be used as a tool in
and configure devices, create and move physical users the beginning. Such inventory will play an important role for
and watch their actual configurations. identifying different types of situations. It will be necessary
Scripting facilities Support to the scripts writing to control the to infer (based on data from iCASA) the possible activities
environment. Scripts provide a convenient way to test that will be performed.
the applications under reproducible conditions. Due to the fact that not all the activities are at the same
Notifications iCASA is event-based and is able to notify subscribers level, in order to make them suitable for different kind of
facilities of any modifications in the environment. situations, a categorization is proposed in Table II. Those are
based on the AGGIR [16] grid (which classifies autonomy
A data file with the information of the activities that levels to various environmental factors affecting a person’s
were performed for the inhabitants of the simulated environ- activities and social life); which is currently the legal tool
ment will be returned. Information such as location of the in France for measuring the autonomy of the elderly.
inhabitant(s) within the home environment, date and time Among the activities related to home care of people, we
about the performed activities, among other relevant data; will consider:
by means of simulated sensors which will allow to identify • Relevance: With reference to the frequency of occur-
several situations, i.e.: sensors involving light within rooms, rence of an activity, i.e. the times that the inhabitant
temperature, fridge door, flush mechanism of the bathroom. eats per day.
Such information will be recovered in the file previously • Right criteria: Localisation, history and time: for de-
mentioned. It will help to collect the information from the tection of parameters of the elderly activities within
simulated activities on the iCASA platform. Subsequently, the home environment.
the information previously mentioned will be used to deduct • Recurrence of an activity: for identifying which activi-
situations. ties that take place in the storyline can be considered
iCASA, a smart home environment simulator was intro- logic or not; i. e. the fact that the inhabitant eats times
duced to the reader in order to describe how a scenario will per day can not be considerd as logic.
Table II
C ATEGORISATION OF ACTIVITIES B. Situation types
Different types of situations will be recovered from data
Hygiene Use of bathroom, (un)dressing, urinary/fecal elimination
related to activities. How they will be obtained from spatio-
Living at home Use of communication devices
temporal data, as well as a history of previous activities, will
Feeding Cooking, eating, preparation and condition of meals, be pointed out in the following paragraphs.
house chores. Simultaneous activities (which occur at the same time) can
Moving at home Wake up, lie down, sitting, change from one position to appear, if those activities are concurrent, it can be assumed
another, travel within the place of residence.
that they are incompatible. For instances, watching TV while
Orientation Find themselves in time and space.
eating might not represent an important issue. But it would
Coherence Logical communication, aging and behaviour, prescription be the opposite case if the shower is on and the inhabitant
and manage of medical treatement, buying properly/
is eating.
voluntarily, fun activities alone or in group.
It is necessary to keep history of all the activities per-
formed by the users, due to the fact that there can be
differences among the activities occurred; because there are
• Interleaved activities: for determining if the perfor- those that are instant activities and there are others that last.
mance of an activity will be affected if another one An instant activity is not necessarily instantaneous. That is
needs to be carried out; and that those activities do not the reason why keeping a log file able to precise whether an
overlap each other; i. e. if the inhabitant stops cooking activity begins or ends, will help to manage which activity
to attend a phone call. Once it is over, he continues has begun, or which activity has already ended; or to specify
cooking. that an activity has already begun, while in the meantime
there is another one that occurs and that it is not finished yet.
For determining the situations we have proposed the We also consider the logical aspect to describe situations,
following criteria: Geography, history and time. Over this For example, if you are eating and it’s noon, it is logical,
latter, we can also find: therefore, there are no alerts to propose; but the fact that
you’re eating in the toilet is not logical.
• Concurrency: For recognizing activities which take The sources for establishing the criteria to determine rules
place simultaneously, but they do not necessarily re- for the examples of the previous paragraph, are: time and
quire the user’s interaction at the same time. That is, place, and within time, we also have: sequence, precedence,
activities that have been started but not yet ended by recurrence, simultaneity.
the inhabitant [17]. In the case where there is a recurrence of an activity, it
• Precedence: For establishing a logical order of the is essential to define where this activity comes up regularly;
activities, i.e. going to the bathroom; and then washing for instances, the fact that someone eats ten times in one
his hands. day can not be considered very logic.
• Simultaneity: For identifying which activity takes most It is possible to have situations that are not logical, one
of the time from the user, when multitasking capabi- activity after another that is not considered normal, for
lities might be present, i.e. preparing meal and calling example: do the dishes and then eat.
on the phone; or watching television while eating. What can be done is that when it is necessary to deduct
• Recurrence: For determining a logical sequences of (from families of activities), from here, the possible activities
situations. will be inferred. For this issue, we imagine the use of fuzzy
logic, combined with a workflow of activities.
Where the useful information considered relevant is time
Fuzzy logic is a solution for reasoning similarly to a
and geography, because these two latter will provide in-
human being when ambiguity is present. A fuzzy set is
formation of the actvity type. We can take the performed
characterized by its membership function that calculates the
activities once, twice, etc., and place them into the history
degree of membership of an element of the universe to the
records. Then, it would be possible to infer when they are
fuzzy set. The most commonly used range of values of
going to occur next time.
membership functions is the unit interval [0,1] [18]; whereas
A list of possible activities will be required, as a preli- in the classical set theory, membership of an element is 0
minary inventory that is going to be used as a tool in the or 1.
beginning. Then, these activities will allow us to determine At this point, these tools will have to take into account a
different types of situations. temporal and localisation history (of previous probabilities)
A description of the activites which are going to be used in and also new probabilities, to try to infer a situation with
our approach has been presented, in which a categorisation a known probability. For example: in the history logs, two
is also shown, in order to set a prelimitary inventory that activities were performed at the same time several occasions
will help to deduct different types of situations. before, with a probability of 90%; but it’s worrying If such
activity is performed with a probability of 3% later. For however, if the person eats in advance, or if he has postponed
example: if the inhabitant does not eat, and does not go it, the probability decreases.
to the bathroom either; then he begins to prepare meal and The probability will prevail if the meal takes place into the
after he goes straight to the toilet; he is suposed to have meal dining room, kitchen, the living room, But if it takes place
when he comes back. But, instead, the time he spent in the in the bedroom or the bathroom, the probability decreases.
toilet is more than 15 minutes, then, there is the possibility It is necessary to study every situation in order to get
that he is about to eat in the bathroom. With fuzzy logic, all them identified, by associating time and place for each and
the issues presented in the environment should not be noticed every of them. Those will be used subsequently by a context
either too often, and warning situations that are important model, which is introduced to the reader on the following
must not be missed out. It is not necessary to raise an alert paragraphs.
when there is no need. Fuzzy logic can be used to describe
an imprecise logical system, in which the truth-values are D. Context model
fuzzy subsets of the unit interval with linguistic labels such Dey et al. [21], consider that context information is any
as true, false, not true, very true, quite true, not very true information related to the use of characterization of the
and not very false [19]. situation of any entity. This latter could be a person, a place,
the process how situation types will be obtained was a physical or abstract object, or an event that is considered
explained in the previous paragraphs. It also discussed how relevant to the interaction between a user and an application,
data related to localisation, time and a history of activities including the user himself.
play an important role on prediction of activities. Those si- It is necesarry to consider that the information which is
tuation types will take part in the modelisation of situations. part of a context may come from several sources, such as
a sensor, a tablet or smartphone, etc.; and that those may
C. Situation model also require different formats to represent the information
they provide. There is a gap between sensor output and the
There is a notion of time that appears throughout the abstraction level of the useful information for applications,
whole process, because time goes by in every case, where and this gap may be bridged by various types of context
we constantly analyze every situation where the person is information processing as explained by Henricksen et al.
performing a task. In addition, geography (space), plays a [22]. In addition, contextual information should be modeled
very important role, because very litlle can be accomplished at a high level of abstraction, near the user-level, preferring
without considering where and when the meaningful situa- to mantain the ease of use, over the optimal efficiency, as
tions occur [20]. indicated by Vildjiounaite and Kallio [23].
It is necessary to find an algorithm that identifies the Göker and Myrhaug [24] indicated that a context model
current activity, being cautious with the disambiguation of should normally include information on temporal and spa-
activities, and also taking into account the task of predicting tial aspects. Spatial information describes concepts such
situations. Letting this algorithm to create a tendency for as location, direction or places. Temporal aspects can be
knowing which activities would be performed before or after characterized as static or dynamic. The value of static
another one. We must have a good idea of the possible information remains unchanged over time while the value
order in which activities can performed daily/weekly by of dynamic information may vary depending on the time
every inhabitant, because sequence between activities can instant it is requested.
be present; there could also be overlays in the storyline of When modeling context, it is required to establish a
the activities performed, as well as certain tasks that are not difference among different types of context information [2],
correct at a certain point in time, for example: eating in the so that a taxonomy is useful to model the concepts. However,
middle of the night. some current approaches do not define such a taxonomy.
At one point, where one person is about to perform They rather define a single type of context, no matter what
a specific activity, the algorithm would return a sum of type of context information they are handling [22], [23].
activities, but it is not sure they are exclusive, i. e., if the Some taxonomies have been proposed such as [24], [25],
inhabitant eats, then, he is not trying to wash. However, if and when they are compared, it is found that the social
he eats at the same time that he is washing; or if the shower context or the physical context are common in most of the
is on and he is about to eat; then, there could be a problem. the approaches,
Each situation has a sum of parameters, we should Henricksen et al. [22] stated that “context information is
associate each and everytime a kind of validity intervals: imperfect” and the system must assure information reliability
geographic and temporal, but they will be from the same and availability (as much as possible). The user profile and
type. In fact, for the meal, example we would have a kind the context history are also considered [26].
of probability curve during a specific period of time: meal A context model will be necessary, because it will provide,
time between 12 and 14 hours present the same probability, parting from data and information previously recorded in
history file, a list of potential activities; and alongside with In the context model we find a list of activities we have
the use of certain rules, we will get to define a situation. The proposed and some others that are deducted. The context
proposed context model is shown in figure 2. In addition, model will identify one/several of the proposed activities,
the types for the context information for the approach that and it will indicate in which situation the person is; i. e. the
we propose are summarised in Table III; where information inhabitant is currently eating, sleeping, etc., and therefore,
for each type is suggested. it will provide whether it is a kind of situation/situations
or a sum of activities, which will be equal to a situation.
Information will be recovered about all the activities that
the user performs, what the user does in a specific time of
✙✄✚✎✛✂✄✟✆✄☎ the day, and what he is about to do as next task. Then, this
✜✑✍✢ ✥✂✏✎✑✡ information will be taken into account into the historic log
file. Moreover, it will be important to consider data related
to the temporal aspect for future references, i.e., start time
✁✂✄☎✆✝☎
of a determined activity, as well as its end time. This may
✒ ✞✓ ✦✑✄✠✎✏✑✣✣✆✠
✔✓✕✖✗✘✞ ✟✂✠✆✡ develop new conclusions based on existing activities.
E. DSL requirements
The context model is described by a DSL. We need to
✙✡✠✆✛✡✌ ☛☞✌✍✎✏✑✡ be able to express to situations that respond to the fields
✁✂✟✣✤☎✑☎✎✂✄✑✡ of persons with a physical or mental disability, support
for elderly, diseases connected to aging. According to the
proposed context model, it is also indicated a need for a DSL
which will now consider the integration of different types of
Figure 2. Context Model context information: physical, environment, computational,
personal, social, tasks. The types for the context information
for the approach that we propose are summarised in Table
Table III III; where information for each type is suggested.
T YPES OF CONTEXT INFORMATION
The use of the proposed DSL will make possible to write
Physical Information obtained by exploiting pervasive devices textual specifications. The requirements for this latter are
(i.e. time, temperature, light level, etc.); for deducing listed in Table IV.
context events from activity recognition.
Table IV
Environment/ Comprehending information on the people and objects DSL R EQUIREMENTS
Space nearby the user (i.e. location, distance): for asking for
help to the nearest person related to the inhabitant in Context types In order to be close to reality, the language should
case of emergency need. handle different types of context (i.e. physical,
Computational This source provides information from software and social, computational) (see Table III).
hardware systems (i.e. hardware status, network conditions, Ease of use Easy and intuitive language in order to be used, so
etc.): for assuring operational effectiveness of the technolo- that users will be able to write / understand.
gy equipment, deployment / network availability. Model reuse The language should allow the reuse of context
Personal Information describing the profile of the person/user models by different context-aware applications.
(i.e. competences, preferences, age, gender, illness, Independence from The language should allow the modelisation of
physical, mental, or emotional disabilities, etc.). application domain contexts despite of the context application.
Social Data that describes ths social condition of the user (i.e. Model of independent Implementation details should not be carried out by
individual interests, preferences, and the activities within platforms the user.
his social environment, for opening new ways to interact
with other people).
Implementation will be explained in the next paragraphs,
Tasks/chores Information about the different tasks the user can carry out
where services will be deployed by means of the Kalimucho
(i.e. activities that need to be performed, those that are
middleware.
currently being performed, chores that the user is able to
execute). For reminding when to eat, to take medicines F. Kalimucho middleware
and/or regular health checks, etc. The Kalimucho middleware [27] allows dynamic deploy-
Elderly / Information related to elderly / people with special needs ment and migration. It also integrates another competences
Handicapped or disabilities; in order to fulfill their health care
such as distributed interactions [28]; and Health domain
expectations in the in the best way possible.
[29].
Kalimucho is a software platform for mobile and embed- health provider) with a preference order. According to
ded hardware. Kalimucho uses service factory enabling the these priorities, and contacts availabilities, one or more
creation of instances of software components. This factory contacts will be informed (phone call, sms, email).
allows making the most suitable configuration according Actually, a contact with a higher priority will be notified
to services decision managing reconfiguration. The recon- first. In case of unavailability, the system will try to
figuration service decisions depend on data sent by control contact the next one.
interfaces and the users defined rules (via the platform and • A service for notification about when it is necessary
control interfaces). to take medicines (drug reminder) would be another
The aim is to monitor elderly people who are at home, suitable example of use. The drug reminder would be
so when some incoherent behaviour is detected at their own a local service which is very useful depending on the
environment, applications will be deployed, whether it is inhabitant profile, such as those suffering from certain
on TV, on a tablet, etc.; in order to force the person to diseases (i.e. alzheimer). Thus, when provided, this
interact with the device, focusing on the needs of the elderly service will be in charge of reminding the resident the
individual, thus enabling coherence in their interventions. drugs that must be taken, as ordered by doctors during
The objective is to dynamically deploy from health daytime. Such service may be based on contextual data
services on the set top box, smartphone, tablet, desktop stored locally at the home box/gateway (where data can
computer, television, among other smart devices; according be easily updated). This service could be provided using
to profiles and data received from sensors. The deployed any media formats (e.g., text, HTML, audio, video) and
applications will dynamically adapt itself according to smart its implementation should be adaptable.
devices availability, including its business logic as well as Kalimucho was presented to the reader in order to under-
its interactions with users. stand how the architecture we propose will be implemented.
The challenge is to discover and to select the best available Due to the fact that we will work with an open architecture,
services, as a response to a given event or demand, to we will be able to apply it to the home care support, by using
make the association of reconfigurable services, according to the AGGIR grid, but we can also use it for other categories,
different situations and to ensure the continuity of services, i.e. for deaf handicaps, or for specific diseases, by means of
whatever the context of the resident or the home capabilities reprogramming applications, but using the same architecture.
are, from medical assistance to keeping a social contact to
combat the feelings of loneliness. in order to identify the
VI. C ONCLUSION
different possible scenarios that will be considered and used
to validate the different technical. In this work-in-progress paper, we introduced to the reader
Useful cases and situations related to the daily life of an a proposal context aware service delivery, in which a general
elderly or dependent person will be considered in the form framework of the architecture was explained; as well as
of one or more detailed scenarios, i.e.: some other important aspects that are described throught
• In a case when the health smart home detects an the lecture, such as: a review of related work, the tools
urgent event like a fall or a heart attack, some actions employed for generating case scenarios (iCASA, iPOJO), a
must be taken rapidly, as a response to the event: description of the general architecture with each and every
contacting a qualified person to confirm the alert and one of its components of our proposal: activities, situation
then calling the emergency telephone number if needed. types, situation model, context model and the Kalimucho
This type of service may require the consultation of middleware. With this latter, we focus on distributed hu-
some data stored in several databases or to perform man computer interface in order to exploit the variety of
some mappings between a set of data obtained from interaction mode/capabilities according to current situation,
different sources, such as repository services, contact users, and context. We aim at providing new kind of more
lists related to the resident, their availabilities, their dynamic interaction modes (migration/duplication of parts
addresses or their positions. of graphical interfaces, dynamic modification of interaction
Therefore, several contextual parameters will be consi- mode while applications are running). We particularly focus
dered to refine the contact establishment with the exter- on the domain of smart-home (including digital health home
nal environment as a response to an alert. The provided preoccupations). One objective is the use of distributed
service has to avoid systematic calls to emergency when interfaces associated to interactive services in order to help
it is not necessary. The system should be able to identify in maintaining old people at home (Digital Health Smart
which person/people to contact, depending on the kind Homes).
of incident and the availability of the people registered
in some databases and having a relationship with the ACKNOWLEDGMENT
resident. The system could identify categories of people
who are able to intervene (neighbor, relative, skilled This work is supported by the CONACyT.
R EFERENCES [14] P. Lalanda, J. A. McCann, and A. Diaconescu, Autonomic
Computing. Springer, 2013.
[1] D. Kramer, J. C. Augusto, and T. Clark, “Context-awareness to
increase inclusion of people with ds in society,” in Workshops [15] A. G. Wilde, “An overview of human activity detection
at the Twenty-Eighth AAAI Conference on Artificial Intelli- technologies for pervasive systems,” Department of Informatics
gence, 2014. University of Fribourg, Switzerland, vol. 212, 2010.

[2] J. R. Hoyos, J. Garcı́a-Molina, and J. A. Botı́a, “A domain- [16] J. Vetel, “AGGIR: guide pratique pour la codification des
specific language for context modeling in context-aware sys- variables,” Rev. Geriatrie, vol. 3, pp. 249-259, 1994.
tems,” Journal of Systems and Software, vol. 86, no. 11, pp.
2890-2905, 2013. [17] R. Helaoui, M. Niepert, and H. Stuckenschmidt, “ Recogniz-
ing interleaved and concurrent activities: A statistical-relational
approach,” in Pervasive Computing and Communications (Per-
[3] J. A. Botia, A. Villa, J. T. Palma, D. Pérez, and E. Iborra,
Com), 2011 IEEE International Conference on, 2011, pp. 1-9.
“Detecting domestic problems of elderly people: simple and
unobstrusive sensors to generate the context of the attended,” in [18] G. Klir and B. Yuan, “Fuzzy sets and fuzzy logic”, vol. 4.
International Work-Conference on Artificial Neural Networks, Prentice hall New Jersey, 1995.
2009, pp. 819-826.
[19] L. A. Zadeh, “Fuzzy logic and approximate reasoning,”
[4] J. E. Bardram, “The java context awareness framework Synthese, vol. 30, no. 34, pp. 407-428, 1975.
(JCAF)-a service infrastructure and programming framework
for context-aware applications,” in International Conference on [20] D. J. Cook, J. C. Augusto, and V. R. Jakkula, “Ambient
Pervasive Computing, 2005, pp. 98-115. intelligence: Technologies, applications, and opportunities,”
Pervasive and Mobile Computing, vol. 5, no. 4, pp. 277-298,
[5] V. Raychoudhury, J. Cao, M. Kumar, and D. Zhang, “Middle- 2009.
ware for pervasive computing: A survey,” Pervasive and Mobile
Computing, vol. 9, no. 2, pp. 177-200, 2013. [21] G. D. Abowd, A. K. Dey, P. J. Brown, N. Davies, M. Smith,
and P. Steggles, Towards a better understanding of context and
[6] D. Preuveneers, Y. Berbers, and W. Joosen, “The future of context-awareness, in International Symposium on Handheld
mobile e-health application development: exploring HTML5 and Ubiquitous Computing, 1999, pp. 304-307.
for a context-aware diabetes monitoring assistant,” in 3rd [22] K. Henricksen, J. Indulska, and A. Rakotonirainy, “Mode-
International Conference on Current and Future Trends of ling context information in pervasive computing systems,” in
Information and Communication Technologies in Healthcare, International Conference on Pervasive Computing, 2002, pp.
2013. 167-180.
[7] V. Arnaboldi, M. Conti, and F. Delmastro, “CAMEO: A novel [23] E. Vildjiounaite and S. Kallio, “A layered approach to
context-aware middleware for opportunistic mobile social net- context-dependent user modelling,” in European Conference
works,” Pervasive and Mobile Computing, vol. 11, pp. 148- on Information Retrieval, 2007, pp. 749-752.
167, 2014.
[24] A. Göker and H. I. Myrhaug, “User context and person-
[8] J. H. Lee, H. Lee, M. J. Kim, X. Wang, and P. E. Love, alisation,” in Workshop proceedings for the 6th European
“Context-aware inference in ubiquitous residential environ- Conference on Case Based Reasoning, 2002.
ments,” Computers in Industry, vol. 65, no. 1, pp. 148-157,
2014. [25] L. Ardissono, R. Furnari, A. Goy, G. Petrone, and M. Segnan,
“Context-aware workflow management,in International Con-
[9] N. Bricon-Souf and C. R. Newman, “Context awareness in ference on Web Engineering, 2007, pp. 47-52.
health care: A review,” international journal of medical infor-
[26] J. Hong, E.-H. Suh, J. Kim, and S. Kim, ”Context-aware
matics, vol. 76, no. 1, pp. 212, 2007.
system for proactive personalized service based on context
history,“ Expert Systems with Applications, vol. 36, no. 4, pp.
[10] J.-J. Chen, W.-C. Su, P.-W. Wang, and H.-C. Yen, “A CMMI- 7448-7457, 2009.
based approach for medical software project life cycle study,”
SpringerPlus, vol. 2, no. 1, p. 1, 2013. [27] K. Da, M. Dalmau, and P. Roose, ”Kalimucho: Middleware
for mobile applications,“ in Proceedings of the 29th Annual
[11] P. Lalanda, C. Hamon, T. Leveque, and others, “iCasa, a ACM Symposium on Applied Computing, 2014, pp. 413-419.
development and simulation environment for pervasive home
applications”, in 2014 IEEE 11th Consumer Communications [28] R. Karchoud, P. Roose, M. Dalmau, I. de Courchelle, and
and Networking Conference (CCNC), 2014. P. Dibon, ”Kalimucho for smart-: One step towards eternal
applications,“ in Industrial Technology (ICIT), 2015 IEEE
[12] Osg. Alliance, “OSGi Alliance: OSGi Service Platform, Core International Conference on, 2015, pp. 2426-2432.
Specification, Release 4, Version 4.2,” OSGi Alliance, 2009.
[29] T. Lemlouma, S. Laborie, and P. Roose, ”Toward a context-
[13] C. Escoffier, R. S. Hall, and P. Lalanda, “iPOJO: An extensi- aware and automatic evaluation of elderly dependency in smart
ble service-oriented component framework,” in IEEE Interna- homes and cities,“ in World of Wireless, Mobile and Multi-
tional Conference on Services Computing (SCC 2007), 2007, media Networks (WoWMoM), 2013 IEEE 14th International
pp. 474-481. Symposium and Workshops on a, 2013, pp. 1-6.

You might also like