4 CASE STUDY
To evaluate the feasibility of the proposed approach,
the architecture was tested by developing an appPerv
that uses the concepts presented so far. This applica-
tion has the main goal to manage agitation moments
of patients with lightweight dementias.
4.1 Case Study Scenario
For the case study, the following fictitious scenario
was considered. Imagine ‘John’, a 78 years old citi-
zen without need for hospitalization, but has light-
weight dementias and needs continued treatment. In
addition, John has some memory problems. His
doctor identified he is presenting agitation behav-
iors. This situation causes problems for his health.
The residence of John is an AAL with enough tech-
nology to assist his health management and improve
his life quality as well as to adapt to his needs. To
assist with John´s implications, his daughter
Michelle purchased a software solution that interacts
with John’s residence in the case agitation situations
are detected.
Thus, there is an embedded infrastructure in
John’s residence that provides automated electronic
resource consumption. These resources are provided
in terms of services that each residential object with
some kind of communication skills can provide. To
manage this environment, there is an automated
system (SIaaS) who has knowledge of John´s needs
(i.e., a conceptual model), as well as knowledge of
what the environment can provide to assist those
needs. This system provides residential resources for
other applications can interact with the environment.
This is the scenario we have designed for a first
partial validation of our approach. In this context, an
appPerv, called appPervAgitation, was developed
and it manages agitation situations in patients with
Alzheimer disease based on the process illustrated in
Figure 5. This workflow has as objective to show
which action may be performed when a patient with
Alzheimer disease is agitated. For designing the
proposed solution, we defined relevant situations of
interest within their respective context of interest
and the proactivity actions, all described hereafter.
4.2 Situation of Interest
To identify the level of agitation of a given patient,
appPervAgitation registers three situations for agi-
tated patient, namely high, medium and low, corre-
sponding to the formalization proposed in (2), sec-
tion 2.1. The situation of interest is:
S: (appPervAgitation,{Ra,Rb},{S1,S2,S3});
where:
app = Pervasive Applications for Manage Situa-
tions of Agitation (appPervAgitation)
Ra=(hasSensor(John,Sensor_Heartbeat1);
Rb=(hasValue(Sensor_Heartbeat1,CollectValue)
L = High Agitated (S1):
Patient (John) ∧ SensorHeartbeat (Sen
sor_Heartbeat1) ∧ hasValue (Sen-
sor_Heartbeat1, CollectValue) ∧
swrlb:greaterThan(CollectValue,200) →
isSituationOf (John, Emergency_Situation)
L = Medium Agitated (S2):
Patient (John) ∧ SensorHeartbeat (Sen-
sor_Heartbeat1) ∧ hasValue (Sen-
sor_Heartbeat1, CollectValue) ∧
swrlb:greaterThanOrEqual(CollectValue,90)
∧swrlb:lessThanOrEqual (CollectValue,200)→
isSituationOf (John, Emergency_Situation)
L = Low Agitated (S3):
Patient (John) ∧ SensorHeartbeat (Sen-
sor_Heartbeat1) ∧ hasValue (Sen-
sor_Heartbeat1, CollectValue) ∧
swrlb:greaterThanOrEqual(CollectValue,50)
∧swrlb:lessThanOrEqual (CollectValue,89) →
isSituationOf (John, Emergency_Situation)
4.3 Context of Interest
To identify which proactive action must be trig-
gered, the context of interest was based on the for-
malization presented in (1), section 2.1, the context
of interest is:
C:(appPervAgitation,
{R1,R2,R3,R4,R5,R6,R7,R8});
where:
Entity Person/Patient and Caregiver: the ap-
pPerv needs to know the location of patient John and
of his caregiver (Michelle) to trigger actions when
situation of interest is detected. For example, play
music (steps “n” and “h” of Figure 5).
R1 = (hasLocation(John,Location_X);
R2 = (hasCaregiver(John,Michelle);
R3 = (hasLocation(Michelle,Location_Y);
Entity Music Services: should contain a list of
appliances (with their respective locations) that
provide such service; so, the appPerv can identify if
the patient is in a location close to some of these
devices to execute steps “n” and “h” of Figure 5
(play music);
R4 = (hasMusicService(Radio_X,Serv_1);
R5 = (hasMusicService(TV_X,Serv_2);
R6 = (hasMusicService(Smartphone_X,Serv_3);
Entity Messaging Services: should contain a list
of devices that provide this service, so that the appli-
cation can perform step “i” of Figure 5.
R7 = (hasSMSService(Smartphone_X,Serv_4);
Situation-awarenessasaKeyforProactiveActionsinAmbientAssistedLiving
423