Sunteți pe pagina 1din 6

2015 International Conference on Healthcare Informatics

A Smartwatch Software Architecture for


Health Hazard Handling for Elderly People

Rainer Lutze Klemens Waldhör


Dr.-Ing. Rainer Lutze Consulting FOM University of Applied Sciences
Langenzenn, Germany Essen / Nuremberg, Germany
Rainer.lutze@lustcon.eu Klemens.Waldhoer@fom.de

Abstract —A software architecture for smartwatches support- The latter is of special importance for elderly suffering
ing and securing the everyday life for the elderly is presented. from mild cognitive impairment (MCI) or beginning dementia.
The approach starts from the insight that the usage of smart- An inconspicuous glance to a smartwatch can deliver the ne-
watches for care-giving and handling personal health hazards is a cessary orientation information in order to compensate the
best practice driven, empirical discipline, requiring a declarative, social implications of the characteristic obliviousness accom-
easy to maintain software description for the smartwatch devices. panying these diseases.
The second rationale for the approach presented is the decompo-
sition of the complex interrelations of “health hazards” into de- The special potential of smartwatches for supporting elder-
finable modules of manageable size, each addressing the handling ly is also boosted by the fact that they dissolute the so far ex-
an individual health hazard. The proposed, hierarchical architec- isting social stigmatization of specialized “senior wristlets” or
ture builds on the automatic detection of the activities and events wireless remote buttons of home emergency call devices [1].
of daily life (ADLs, EDLs) by the sensors of the smartwatch.
Handling of health hazards will be modeled by UML state ma- For our solution we have selected the Samsung Gear™ S
chines, which utilize the detected ADL/EDLs for their state tran- smartwatch, which features an easy to read 2’’ OLED display
sitions. The architecture has to take account for a plenitude of with 360x480 pixel resolution, and in addition to the usual
relevant hazards, managed by a multitude of simultaneously op- movement and pulse rate sensors also a barometer, WLAN and
erating state machines, via a central synchronizing control me- GPS. The device can operate autonomously from a smartphone
chanism. via an integrated 3G mobile radio. The smartwatch will be
tailored to the specific ambient assisted living (AAL) task by
Keywords — wearables, smartwatches, ambient assisted living deploying a specifically programmed app to the device, run-
(AAL), assistance systems, health hazards, problem decomposition, ning under the platform operating system Tizen™. The AAL
declarative and easy to maintain solution description, automatic app permanently runs also in the background and does not
detection of activities and events of daily live (ADLs, EDLs), UML infer with the standard apps delivered with the watch for dis-
state machines, 3 layer hierarchical software architecture
playing the current time, incoming messages and the wearer’s
fitness status, e.g. indicating performed steps, the current pulse
rate.
I. INTRODUCTION
The present smartwatch characteristics have two important
Smartwatches are about to extend the scope of support for engineering implications for a smartwatch based AAL assis-
elderly people, who want to stay in their familiar home in a safe tance system:
and self-determined way, as long as this can be justified by
medical reasons. In addition to usual diseases, the health of • The display size is relatively small, the user will invest not
elderly people is threatened in multiple ways: e.g. by tumbles, more than a few seconds to look at it. Thus, the message to
getting lost during an absence from home, dehydration due to the smartwatch wearer has to be presented in a cognitive
insufficient liquid ingestion, accidents requiring immediate very efficient way and must be comprehensible at once.
external consultation , … . In these situations, suitable smart- • Battery capacity is extremely limited. The AAL app can at
watches attached to the wrist of the wearer can provide effec- most provide assistance between rising in the morning and
tive assistance in the home and on the go. Smartwatches will do retiring to bed at nighttime; during the night the current
so by analyzing the pulse rate, movements and location of their smartwatches mostly need to be recharged and thus cannot
wearer directly via their rich sensorial instrumentation or estab- be actively used.
lishing a speech connection to a home emergency call center
II. PREVIOUS WORK
(HECC) or distant, but available family members. And they can
communicate their findings and advices to the wearer directly The principle approach of (AAL) support systems is to detect
and in a discreet way via their integrated display. This facili- the activities and events of daily life (ADLs like sleeping, liq-
tates not only the detection of health hazards as for stationary uid ingestion, …, EDLs like tumbles, leaving or reentering
assistance systems, but also allows for support by providing home, … ) from the sensorial information acquired (e.g. [6], [7]
orientation information in everyday life. for smartwatches, [8] for smartphones).

978-1-4673-9548-9/15 $31.00 © 2015 IEEE 357


356
DOI 10.1109/ICHI.2015.50
From these captured sensor data, the wellness of the wearer of
the smartwatch can be estimated by comparing the actual tim-
ing and duration of ADLs as well as the inactivity between
ADLs against the individual average nominal values learned
from the past [2]. Initially, these nominal values will be ac-
quired from at least a one week training phase of the assistance
system and will be different for the respective days of the week:
workdays, weekends, holidays [3]. Later on, the nominal values
will be adapted by time series analysis with the actual values
measured in subsequent weeks [2].
Specifically, the excess duration of ADLs, excessive inactivity
periods between ADLs and substantial deviations of the circa-
dian rhythm (measured against the nominal values) can be tak-
en as symptoms of decreased wellness of the smartwatch wear-
er. If defined thresholds are passed, and presented questions or
advices, prealerts, to the smartwatch wearer will not be re-
sponded, finally external help will be automatically alerted; the
same is done for critical EDLs (e.g. tumbles) [4], [5].
Fig. 1: Smartwatch Samsung Gear S with app displaying communication and
III. SYSTEM DESIGN CONSIDERATIONS orientation information

A. Software Engineering Requirements • Localization. Absence from home as well as the leav-
For detected ADLs and EDL, the handling of the potential ing of a previously vicinity around the home needs to
health hazards originating from these activities resp. events be handled. When leaving home, it shall be possible to
involves a lot of empirical, best-practice knowledge, with is automatically issue a command to a home automation
highly susceptible for changes and improvements over time. system to power down still active loads (e.g. electric
This requests for an easy to maintain, declarative way of for- stoves). When the wearer leaves an agreed vicinity
mal describing and representing of this processing know-how, around his home, a situation not infrequent in the pres-
from which the smartwatch code finally can be automatically ence of dementia, the wearer shall be tracked and get
derived or executed. In addition, the task of dealing with rele- increasingly obtrusive advice to return to his home.
vant health hazards demands a crisp decomposition of these • Detection of health hazards. The following hazards
complex interrelations into small, definable module of mana- shall be managed based on detected ADLs/EDLs: i) the
geable size for each individual hazard and its specific han- excess duration of ADLs, ii) excessive inactivity be-
dling, which can be considered separately and computationally tween ADLs as well as iii) substantial deviations of the
tracked. The simultaneous interference for all these hazards in used circadian rhythm. The app continuously iv) looks
reality must be dealt with in an automatic way. for tumbles and v) monitors the regular fluid intake by
B. Different Target Groups and Their Specific Interests the smartwatch wearer.
The AAL app targets younger seniors as well as best age D. Interaction Design Principles
seniors and those at very high age. Younger elderly people
With respect to the described target group, and the characteris-
typically search protection by the app against sudden accidents
tics of the smartwatch hardware, the app GUI has been de-
or fateful health blows during activities practiced alone – for
signed around the following four principles:
job and leisure, sports or fitness activities. For best age elderly
people, the main interest is support in coping with age specific 1. All and any information presented to the user in a spe-
diseases (e.g. adult-onset diabetes). Elderly people at very high cific dialogue situation is comprised in a single display
age, or their children and/or care-giving relatives, are much screen: no swiping, scrolling of lists or navigation be-
interested in continuous support for the increasing infirmity tween different screens.
and obliviousness.
2. Input to the app is exclusively done by i) pressing an
C. Smartwatch Functionality affirmative button for a presented issue or by ii) a yes
Even for this divergent target group, a common core of / no decision in favor or against a presented question.
support functionality for the app has been identified: For an affirmative or yes/no button displayed, taking no
action by not pressing a button is always interpreted as
• Communication. Manual calls for external help have not agreeing, objecting to the presented issue or ques-
to be placed very easily and at any time. tion. Presented issues and questions typically follow a
• Orientation. Information regarding the current time, clear two sentence structure: the first (short) sentence
day of the week, date, month and year as well as holi- explains the current situation, the second contains the
days, birthdays of the smartwatch wearer and his rela- proper question or proposed action for the user.
tives shall be provided.

357
358
3. interaction with the app is multi-modal: the app, which predefined threshold, or ii) a short period timer for an ex-
permanently runs in the background, can be put in the pected user response, for displaying a presented hint or
foreground and made visible by gesture in raising and iii) a grace period timer (before a question, advice to the
rotating the wrist, or pressing a button or touching the user will be repeated) has expired.
screen of the smartwatch. Questions, advices and hints Viewed separately, for the USM in figure 2, an initial drinking
presented by the app are announced by vibration and a advice will be displayed, when the actual value for the inac-
message type specific melody, alarm sound to the user. tivity period between two drinking acts exceeds the nominal
They will be automatically placed in front of any other value learned from the past. The user either promises to drink
standard apps running at that moment on the watch, ex- - by pressing the affirmative button -, which starts a grace pe-
cept ongoing telephone calls, which will not be inter- riod, before the advice will be repeated again, if no drinking
rupted. The affirmation or yes/no decision may be also takes place in the meantime. If the user does not respond to the
uttered by speech, if this will be supported by the spe- advice in due time, a hint will be displayed announcing the
cific smartwatch device. upcoming automatic call to the HECC or family (see also sys-
4. Users can always prevent automatic calls to be issued tem architecture in fig. 4). A recognized drinking ADL will
by the app including data transmission of vital, location always bring back the state machine to the »normal« state, at
and movement data, as long as there is evidence that the least after a clarification call has been terminated.
user has taken a deliberate decision. Only in situations,
Figure 3 shows the intertwining between spatial and temporal
where the user does not respond to the app, maybe be-
criteria, which delimits an absence from home and will cause
cause he/she is severely hurt or unconscious, automatic
return advices to be presented. The return advices may either
external communication will take place.
address the situation, that the user has left an agreed vicinity
Especially principle 4 has been a major issue of acceptance by around his home, or the situation, that the absence activity
all involved users and age groups, who insisted “to stay in the lasts longer than the nominal absence learned from the past
driver seat when using the AAL app”. (for the specific day of the week). In both cases, after the ad-
E. Modeling the Handling of Health Hazards vices have been presented, specific grace periods start, before
the corresponding advices will be repeated. Returning to home
For the handling of an individual health hazard we propose in the meantime will of course cancel any further advice. And
the notion of an UML state machine (USM) [9]. Each USM again, if advices are not answered by an affirmative promise to
formally describes the different stages of the handling process return to home, an upcoming automatic call to the HECC or
for an individual hazard (e.g. the monitoring of regular fluid family will be announced and then issued. The hazard man-
ingestion in fig. 2, the monitoring of absence from home in fig. agement in the state machine of figure 3 does also tackle the
3). Each specific stage of the handling process is modeled by a transmission of a power down command to a home automation
state within the specific USM. An USM state is associated system, as soon as the smartwatch wearer has left this home
with a specific state content, which explains the concise situa- continuously for a certain time duration (measured by the loss
tion of hazard handling to the user and might request input of the known home WLAN SSID signal).
from him in order to determine the next handling steps. For the
active state of an USM, the associated state content is the (vir- F. Synchronizing Health Hazards Handlers (USMs)
tual) output of the USM at that time. Because many USMs The necessary simultaneity of USM execution requires at-
will run simultaneously on the smartwatch, it will be the task taching additional priorities [ranging from 0 (lowest) to 9
of a central scheduler to determine, which output of all run- (highest)] to all states of the USMs, which will be used by a
ning USMs shall be actually selected and displayed to the user central scheduler for selecting the output to be actually dis-
on the smartwatch at that time. played. The labeling of priorities to the states of an individual
The distinguished USM state, where no hazard is present, USM – denominated by the circles in the state depictions of
is denominated the »normal« state of the USM. This is the figures 2, 3 – of course has to be done in the awareness of the
initial state of all USMs. Being in this active state, the output priorities assigned in other USMs.
of an USM displayed on the watch is depicted in fig. 1; it will The central scheduler and the USMs utilize as a central
coherently show the combined time and orientation info to- synchronization structure - a blackboard (BB) [10] - which is
gether with the button for manually calling external help. subdivided by the corresponding priority levels. Upon a state
The state transitions of the USMs are triggered by the fol- transition to a new (active) state, an USM pushes this state on
lowing three possible events: the BB, which needs to be handled by the scheduler. If an
USM performs a state transition from a state, it will remove
a) the detection of an ADL, EDL, this state from the BB. The scheduler always selects the output
b) affirmations or yes/no decisions done by the user by press- from an USM to be displayed to the user, which has the state
ing a button or uttering the affirmation resp. decision by with the highest priority on the BB. Two disambiguation rules
spoken language, will be applied, in order to ensure fulfillment of the directive:
c) lapse of time: either i) an actual value for the excess dura- (1) Prefer the specific USM, for which the output has
tion of an activity or inactivity between events exceeds a been already displayed so far.

358
359
(2) Prefer the specific USM, for which its active state has to its “normal” state, the central scheduler enters the “drinking
been finally added to the BB, if (1) isn’t applicable. advice” state of the USM of fig. 2 - still remaining on the BB -
and displays the corresponding advice as output of this USM
The scheduler has also to restrict the possible state transi-
to the user.
tions from active states of those USMs, for which the output is
currently not displayed on the smartwatch. For such active Finally, if state transitions of two different USMs are per-
states of USMs, all transitions depending on a user reaction formed in very quick succession, and the scheduler has to dis-
(affirmative actions or yes/no decisions of the user, response play the output of both USMs following the above directive,
timers dealing with a non appearing answer from the user) the display of the later output will be postponed until the earli-
will be temporarily disabled. Such transitions would be only er one has been displayed to the user for a sufficient amount of
meaningful, if the output of the USM would have been visible time in order to perceive the content.
to the user. All other state transitions from the active state of
an USM, of course, remain possible. The transitions will be IV. SYSTEM DESCRIPTION
enabled again, as soon as the output of the USM will be se- A. System Architecture
lected for display to the user.
The implemented system (figure 4) consists of an AAL app
In figure 2, if the USM turns to the “drinking advice” state and the long-term analysis server (LTAS). The LTAS receives
with priority 1, but which isn’t displayed because a tumble – detected ADLs / EDLs from the smartwatches via asynchron-
with higher prioritized handling states – has been detected ous http and will utilize them for future charged information
before and the output of the corresponding USM is displayed services targeting the user resp. his family members. Another
to the user, the potential state transitions depending on the task of the LTAS is backup and restoring of the app configura-
user’s response to states “info about upcoming call” (left) and tion data on the smartwatch in case of a lost, replaced or defec-
“grace period drinking advice” (down) would be disabled by tive end device.
the central scheduler for the time of the tumble handling. The
The HECC – alternatively available family members or rela-
state transition to the “normal” state of the USM of figure 2 by
tives – receives the incoming 3G manual or automatic help
a detected »drinking ADL« would be always possible for the
calls from the smartwatches. The corresponding HECC soft-
USM, even during handling of the tumble.
ware system will also process and log the incoming SMS, sent
If otherwise no drinking will be detected during tumble out just immediately before the call, with the identity and cur-
handling, after the respective tumble handling USM returned rent localization data of the smartwatch wearer.

Fig. 2: Finite State Machine (USM) for handling the health hazards resulting from regular liquid ingestion, drinking

359
360
model comprising the USMs deescribed by their transition
tables in the medium layer. Thiss allows the presenter, cen-
tral scheduler, to be the only com
mputationally active module
on the smartwatch together with h the ADL, EDL detectors
and the service modules for co ommunication with HECC
and LTAS, the daily computation n of orientation information
and adaption of nominal valuess, in this way reducing the
computational load for the smartwwatch.

Fig. 4: System Architecture: Information flow between sm


martwatch app,
LTAS server and home emergency call center (HEC CC)

B. App Architecture and Implemenntation


The implementation of the smartwatch appp is based on a Fig. 5: Three Layer App Architecture, concep
ptual view
three layer, hierarchical architecture on toop of the smart-
watch hardware / OS (figure 5). V. DISCUSSION
• The lower layer contains the ADL andd EDL detection The app has been tested with younger
y seniors and seniors
based on sensor fusion. For simple ED DLs, like leaving at high age, including persons with progressing dementia, over
a couple of weeks. The functionality y and practical utility of the
resp. reentering an agreed vicinity arround the home
app has been judged collectively po ositive by the test persons,
[4], [5], this detection will be done bby trigonometric
whereas the day in, day out handlingg of the selected smartwatch
math calculations based on the current G GPS sensor data. raised concerns. Attaching the watch h to the wrist and especially
Complex ADL detection, for example for the detection coupling the watch with the charging g tray required fine motoric
of fluid ingestion, drinking [6], [7] uutilizes neuronal skills typically not present any mo ore for elderly at high age.
network or statistic regression methodds for achieving Inductive, wireless charging interffaces for the smartwatch,
the task. The nets resp. statistic param
meters have to be which do not presuppose a precisee positioning of the device
trained before by several hundreds of supervised sam- with respect to the charger, are suppposed to alleviate this han-
ples, in order to achieve the necessary pprecision (see [7] dling substantially and probably – and
a hopefully - will become
for details of this process, which incluudes data condi- a standard for such devices in the nex
xt product cycle(s).
tioning and mining of the sample ddata on standard
With currently five health hazaards actually monitored: i)
PCs).
daily routine at home (including night sleep, midday rest …),
• The medium layer on top of the ADLL/EDL detection ii) absence from home (figure 3), iii)
i drinking (figure 2), iv)
layer comprises the USMs for recogn nition and han- tumbles and v) manual calls the sign
nificance of the concept and
easily maintainability of the USMs could
c be proofed. Although,
dling of health hazards. The USMs arre represented by
more work needs to be done in thee short-term recognition of
their state transition tables including thhe corresponding
health hazards in due time, e.g. suudden physical discomforts
actions to be executed when enteringg the states, the causing a collapse without a tumble. This can be achieved with-
state contents as output of the USM Ms, the attached in the developed conceptual framewwork by simply adding addi-
priorities of states as well as the indicattion of the active tional EDL detectors and hazard specific, additional USMs.
state of the respective USMs.
VI. CONCLUSIONS
• The upper layer contains the central schheduler described
above for synchronizing the simultan neous operations The developed conceptual framewo ork and layered architecture
of the USMs in the medium layer. is well suited for coping with the handling
h of specific health
hazards for elderly people wearing smartwatches.
s In particular,
The conceptual model of the USMs and ccentral scheduler because the care-giving practice in
n utilizing those innovative
can best be implemented by Fowler’s »moddel, passive view wearables is growing on a daily bassis. Therefore the modeling
and presenter« pattern, elaborating from the well-known of these experiences gained indeed requires frequent updating,
MVC pattern [11]. The pattern avoids anny direct relation adjustments and amendments of thee formal description of the
between the passive view on the smartwatcch screen and the processing in the USMs to be done with
w economic effort.

360
361
VII. REFERENCES [6] R. Baldauf, R. Lutze and K.Waldhör, “Dehydration Prevention and
Effective Support of Elderly by the Use of Smartwatches”, in press,
[1] K.Kirkpatrick, “Sensors for Seniors”, ACM Communications, Vol. Proc. IEEE HealthCom Conference Boston/USA, 2015
57(2014), No. 12, pp.17-19
[7] K.Waldhör, R.Baldauf: “Recognizing Trinking ADLs in Real Time
[2] N.K.Suryadevara and S.C.Mukhopadhyvay, “Determining Wellness using Smartwatches and Data Mining”, in press, Proc. Rapid Miner
through an Ambient Assisted Living Environment”, IEEE Intelligent Wisdom / Europe Conference, Ljubljana, Slovenia, 2015
Systems, Vol. 29(2014), No3, pp.30-37
[8] D.Anquita, A.Ghio, L.Oneto, X.Parra, J.Reyes-Ortiz, “Human Activity
[3] E.Nazerfard, P.Rashidi and D.J.Cook, “Discovering Temporal Features Recognition on Smartphones Using a Multiclass Hardware-Friendly
and Relations of Activity Patterns”, Proc. 2010 IEEE Int. Conf. on Data Support Vector Machine”, Proc. 4Int Conf. on Ambient Assisted Living
Mining (ICDM) Workshops, Sydney/Australia, pp.1069-1075 and Home Care (IWAAL’12), Springer Publ., 2012, p. 216-223
[4] R.Lutze and K.Waldhör, “Smartwatches as Next Generation Home [9] S.Bennett, J.Skelton, K.Lunn, “Schaum’s Outline of UML – Second
Emergency Systems, Proc. 8. German AAL Conference 2015, Frank- Edition, Mc Graw Hill ubl., 2004
furt/Germany, Paper A1, VDE Press (in German)
[10] R. Engelmore, “Blackboard Systems”, Addison-Wesley Publ., 1989
[5] Waldhör and R. Lutze, “Effective Support of Care-Giving Relatives by
Smartwatches”, in press, Proc. 8. European Nursing Informatics Conf. [11] M. Fowler, “Patterns of Enterprise Application Architecture”, Addison-
(ENI) 2015, Hall/Austria, (in German) Wesley Publ., 2003

Fig. 3: Finite State Machine (USM) for handling the health hazards resulting from an absence from home

361
362

S-ar putea să vă placă și