You are on page 1of 6

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/312484107

Smart home environment — Agent-based models with scenarios


implementation support

Conference Paper · October 2016


DOI: 10.1109/GIIS.2016.7814949

CITATION READS

1 200

4 authors:

Petr Blecha Peter Mikulecky


University of Hradec Králové University of Hradec Králové
6 PUBLICATIONS 39 CITATIONS 70 PUBLICATIONS 292 CITATIONS

SEE PROFILE SEE PROFILE

Petr Tucnik Jan Matyska


University of Hradec Králové University of Hradec Králové
62 PUBLICATIONS 188 CITATIONS 15 PUBLICATIONS 97 CITATIONS

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Informační, kognitivní a interdisciplinární podpora výzkumu View project

Knowledge-based support of water reservoir dispatchers View project

All content following this page was uploaded by Peter Mikulecky on 13 February 2018.

The user has requested enhancement of the downloaded file.


Smart Home Environment –Agent-Based Models
with Scenarios Implementation Support

Petr Blecha, Peter Mikulecky, Petr Tucnik, Jan Matyska


Department of Information Technologies
University of Hradec Kralove
Czech Republic
{petr.blecha, petr.tucnik, peter.mikulecky, jan.matyska}@uhk.cz

Abstract—The agent-based frameworks could be used either incorporation of the model layer as an integral
for modeling or real control of the smart home environments and component/layer in our AmIE framework.
stand as a useful tool allowing deployment of digital layer
overlaying hardware/network infrastructure which is then used One of the fundamental problems with such virtual
for data input processing, decision making, and action execution. representation is difficult modelling of user’s behaviour which
Since adaptability and efficient control of such system is is generally expected to be reasonably reliable even if the real-
expected, parallel goals pursue must be used to meet the needs of world data are unavailable. This issue is sensitive since
all subjects in it. However, it is not always clear which goals have unreliable model could compromise other stages of the AmIE
priority over others and for this reason, various scenarios are development. In order to avoid excessively demanding
executed (with limited variability) in a virtual model of such development of the simulation of the user`s behaviour,
environment in order to clarify normal functioning of such scenarios are used to capture standard situations, with a
system on the everyday basis. This paper is focused on various limited variability if it is desirable. Set of scenarios might be
issues related to the implementation of scenarios in the agent- diversified and consulted continuously as needed. This is
based model(s) representing the smart interior environment of a important since the hardware used in the system is often
small flat. customized/adjusted to serve the user`s needs and real-world
implementation and its virtual representation might be
Keywords—smart homes; multi-agent based models; scenarios;
developed in parallel. This shortens the time for
ambient intelligence
implementation of such system and improves the involvement
of environment`s future user in the process of its development.
I. INTRODUCTION Our research is primarily focused on the smart solutions for
This paper is focused on utilization of pre-designed offices and other workplaces, homes, and domain of Ambient
scenarios for the creation of more precise virtual models of the Assisted Living (AAL). Therefore, only scenarios from these
intelligent (ambient) environment (AmIE). The scenarios are areas will be mentioned within the scope of this paper.
used to describe typical interactions of the environment and its
inhabitants, and point out important functionalities that are II. RELATED RESEARCH AND STATE OF THE ART
expected (or intended) to be implemented. The advantage of
The first and essential usage of scenarios in the area of
such approach is that scenarios might be scalable, with a
intelligent environments was undoubtedly the ISTAG report
customizable level of abstraction according to designer needs,
[1]. The scenarios presented there are up to now quite often
and could serve in design stages of design of AmIE in a
used as starting point for many further researches in the area
similar way as UML use-case scenarios. Since an
of intelligent environments. Scenarios, as descriptions of
understanding of scenarios does not require any special
typical interactions of users with the respective environment,
technical knowledge or background, it can be used by
seem to be a usable tool for initial steps in any contemplation
potential customers/users to clarify their expectations and
about functionalities of an intelligent environment. Let us
needs. The output of such processes might be a list of
mention a couple of recent publications devoted to this area.
functional and non-functional requirements of such system.
A recent paper [2] can be understood as in a sense new
The use of scenarios in ambient intelligence is not novel,
ISTAG report [1]. It outlines a set of visionary scenarios on
as a well-known representative example might be mentioned
how the European society could develop by 2030 by using
the famous ISTAG report [1]. In spite of this fact, scenarios
advanced ICT tools and modelling techniques and integrating
might still prove to be a useful tool for calibration of virtual
them into governance processes and policy making
representation (model) of the smart environment. However,
mechanisms. The four scenarios proposed here are oriented
according to modern trends in wireless networks (e.g. Internet
much broader as the original ones from [1]. Namely, they are
of Things or concept of Industry 4.0), there seems to be a
focused on ICT for governance and policy making to support
strengthening trend leading to the establishment of the “virtual
the building of an open, innovative and inclusive Digital
layer” (which is considered a model, in this context) over real-
Europe in 2030.
world infrastructure. This is one of the reasons for
As it is stressed in [3], there are many ways of modelling A special importance for the area of scenario – based
the dynamic behaviour of reactive systems. The most popular prototyping for ubiquitous computing and intelligent
approaches are scenario-based and state-based modelling. environments has the work [9] by Coroama. His doctoral
There is a plenty of notations for scenario-based as well as thesis, although eight years old now, introduced new and
model-based modelling. Among the scenario-based notations usable scenario – based prototyping method, which could be
is probably the best known the UML Sequence Diagrams, still used for efficient prototyping of ubiquitous environments
among the model-based notations the Petri Nets achieved a and other ubiquitous applications, especially from the area of
notable popularity. Scenarios are useful not only for the assistive technologies.
requirement phase, but also for the design and implementation
phases of various kinds of systems, conclude the authors of III. STANDARD FUNCTIONALITIES OF THE ENVIRONMENT
[3].
Following the list of functionalities in the system might be
An approach to plan and produce scenario traces as used for a scenario development. These features are fully
examples for the usage of intelligent environments is implementable in the environment, depending on the user`s
presented by Buchholz and Forbrig [4]. The implemented preferences. The features, listed below, are divided into
application allowed an efficient and intuitive way of preparing several groups according to the area of interest they belong to.
and describing a sequence of actions that form a scenario The list serves as a set of examples, it is not complete or
further on. This scenario could be than used then as a basis for exhausting all possible options, but still gives the basic idea
an intelligent environment under development. This approach what are fundamental building blocks of the AmIE system’s
enables to record user behaviour without the need of real users functionality.
performing in the real environment.
Security – electronic security system, central security
According to Sutcliffe, scenarios are instances of actual console connection, biometric access, camera surveillance and
experience with a system captured from users [5]. For the recording system, infrared lighting, simulated presence, fire
purposes of his research, Sutcliffe defined scenarios as facts alarm system, flooding detection system, detection of exterior
describing an existing system and its environment including movement, detection of door/windows opening, infrared/laser
the behaviour of agents and sufficient context information to barriers, tremor detection, assistive technologies for elderly
allow discovery and validation of system requirements. This (AAL technologies).
definition can be considered as a bit overcome now, as the role
of scenarios and scenario – based development seem to be Economic functioning – heating control (floor heating,
much stronger in development of future systems, especially radiator heating control, fan coil control, recuperation control),
future complex intelligent environments. humidity conditioning, air conditioning, energy consumption
monitoring, temperature monitoring and control, integrated
A very interesting and useful analysis of a number of meteorological station, heating of eaves and drains, access
existing scenarios used in Ambient Intelligence for design and areas heating, swimming pool temperature control, whirlpool
development of intelligent system was performed by control, sauna & steam control, backup generator, GSM
Friedewald and his colleagues [6, 7]. Both papers address communication, IP communication, HDO signal integration.
issues of privacy and security of intelligent environments by
analysing scenarios for ambient intelligence applications that Ecology and power saving – heat pump integration,
have been developed over the years up to 2006, but the results garden pond/water facilities integration, solar panels
could be considered as valid also in the present time. The main integration, photovoltaic integration, wind power plant
message from the published research was, that ambient integration, water treatment integration.
intelligence technology frequently goes beyond most of Comfort –touch panels, iPad, iPhone, tablet, smart phone
currently existing privacy-protecting borders, and that changes control, intercom, home intercom, door control, layout plan
in people’s expectations of privacy will happen more slowly navigation, lighting control, light scenes, shading control, plug
than technology capabilities grow. Therefore the scenarios control, gate control, centralized time and alarm, water level
used for requirements analysis for design and development of monitoring, central vacuum cleaner integration, wine cellar
new intelligent environments should reflect these findings integration, motor control of doors and windows, white
without any doubts. electronics control, bathtub control, irrigation system, mailbox
Le Guilly with colleagues in a recent paper [8] proposed a signalization, customizable user interface, system diagnostics,
system that enables specification of constraints restricting the SMS notification, remote access.
control commands that can be used inside user-defined Entertainment – TV, satellite receiver, game console, Hi-
scenarios. A formal framework is proposed, based on timed fi stereo, and Blu-Ray disc integration, home cinema, multi-
automata for modelling smart home environments and room audio, projector and screen control, multimedia storage,
scenarios that can be formally verified against formal digital HDMI matrix, video, photos, and audio sharing, TV
requirements representing constraints on possible control adjustment, and retractable TV/projector control.
commands sent to the system. Among other features, the
system proposed and implemented by Le Guilly and his Communication – wireless connection, internet
colleagues enables automatic extraction of device models, connection, an optical connection, structured cabling, VoIP
automated verification of scenarios as well as their execution technology, WPN, WI-FI.
[8].
Although the list could be longer and could include more persons react every day in standard (easier case), or unusual
items, this provides the general idea about the system’s situations (more difficult issue), is very individual.
functionalities. The user can decide which are to be
included/excluded based upon his/her individual preferences. Within the research project focused on smart flat which is
This will constraint set of actions the AmIE would be capable currently under development (using Java based platform
of as well as number of sensors that are to be incorporated in Anylogic v7.x, see flat illustration on the Fig. 1), the scenario
the environment, both on the real (hardware infrastructure) describing everyday usage of the flat was used.
and virtual model layers. As it is illustrated in the Fig. 1, the model contains 3D
graphics for better representation of the environment itself,
IV. BEHAVIOUR MODELLING and – maybe even more importantly – its behaviour. The two
agents represent residents of the smart flat and are situated in
As was already mentioned in the introductory sub-section the virtual model. These residents use flat for ordinary
of this paper, one of the fundamental problems with virtual activities like cooking, sleeping or relaxing, etc. The
representation layer is that it is quite difficult to create behaviour of flat environment is represented by sensors
plausible model of user’s behaviour (with primarily humans or (humidity, motion, temperature…) and data obtained are
animals in mind, at this point). From the development processed by the control unit. Control unit evaluates data and
perspective, this issue is one of the most difficult to address decides what actuators (window opener, alarms, electrical
but also very important. We can determine how the sensors or switches…) should be used at the given moment.
actuators would react in the environment to different
situations. The behaviour is already defined in the system, it is Data evaluation/analysis is necessary for the practical
a matter of how it was designed and constructed. But how will usage of any sensors or actuators. The event could occur when

Fig. 1: The virtual smart flat representation in the Anylogic platform.


the resident is going to the bathroom and then taking the PARAMETER DESCRIPTION
shower. The humidity sensor reports increasing humidity in BLOOD PRESSURE Blood pressure of the resident
the bathroom and sends data to the central unit. But the central SMOKER Is the resident a smoker
unit detects there is a resident in the bathroom and that HEALTH LEVEL % health level of the resident
probably means the resident taking a shower. In this case, (more the healthier)
central unit will not execute any actuators (alarms or actuator ENERGY % energy level of the resident
used to turn off the water) and decide to “do nothing”. In case CLEAN LEVEL % clean level of the resident
when the resident is out of the bathroom, the central unit could HUNGRY LEVEL % hungry level of the resident
activate a silent alarm (by sending a message to the smart BATHROOM NEED % need of a bathroom
phone or terminal) and inform the resident. If the resident INFARCT RISK Level of infarct risk (0…1)
would not be present in the flat the central unit could also stop
the water by sending signals to actuators in the bathroom. There is a summary of ordinary resident day behaviour and
some principles used in the virtual model of smart flat:
The model uses time units for effective timing of actions.
The Anylogic platform has integrated time system which If the resident is being hungry, she will probably go to the
could be set by user to various levels of precision – simulation kitchen to do something to eat – if there are no more important
could proceed in second, minutes, hours or even years (which needs to be satisfied (need of medical aid for example). The
in this context is only theoretical since it has limited practical same principle is applied with needs of personal hygiene (go
value). This allows observation of the behaviour of the whole to the bathroom) or sleeping (needs energy - go to the
model and adapts behaviour of particular agents to act towards bedroom). Personal hygiene occurs at least in the morning
optimal performance. The model of the smart flat is designed after the resident gets up and in the evening before the resident
to use seconds as default units of measurement in order to goes to sleep.
process ordinary activities in the model timeframe close to The energy parameter is replenished also by eating and if
real-time. The Anylogic could accelerate the timescale of the resident has a very low-level energy during a day he could
simulation runtime with multiplier over 500x, therefore the getting rest to the bedroom and he does not have to wait until
one simulation year could occur during approximately one evening. If the resident is sick he is tired more often.
minute of the real time. It is dependent on the complexity of
behavior or on the number of agents in the model which If the resident is seriously ill, he normally stops going to
setting will be used. work and stays at home. The recovery time in the house
environment is shorter than the option of going to the work
The average resident in the model sleeps every day about with illness.
eight hours and about the same amount of time is spent in the
work. Eight hours in the work is generally regular but sleeping In the case the resident is getting a heart attack, the health
time is to a certain degree random because the resident does level decrease. There is a simulation of the incoming
not go to sleep every day at the same time and random ambulance with doctor and transport resident to the hospital.
generator is used. The first aid arrives in 5 – 15 minutes to the flat. But the
resident may not survive the infarct. There are two
Outdoor environment has its own temperature and air possibilities when this event may occur:
humidity. The house has its own heating, air conditioning and
windows which regulate the house stats according to the needs  In the case of very intensive heart attack, the resident
of its residents. dies immediately
There are certain smart components used in the house. For  Opportunity the first aid will not arrive in the time
example, smart fridge which could remind the upcoming date (but the first aid should be called in time, smart flat
of expiration of products stored within, a system to remind should recognize heart attack by the smart watches)
medication (in the given period) and the system monitoring If all of the residents of the smart flat died there will be no
residents’ health with various indicators (by the smart watches entities to observe and collect data so the simulation should
or motion sensors, or fall detection system). stop.
Residents in the model have some attributes which are If we consider the 8 hours resident spend in the work and
related to whole model behaviour. The non-smoker resident on average 8 hours spend by sleeping there are next 8 hours
with a lower level of cholesterol will probably live for a longer left for a resident on his free time.
time than smoker resident with a higher level of cholesterol.
The main attributes are defined on the Tab. 1. During the spending free time, there are some options
which the resident could make:
 Watch TV
Tab. 1: Resident’s parameters in the model of Smart Flat.
 Read the book
PARAMETER DESCRIPTION  Using PC
AGE Actual age of the resident  Making meal
SEX Sex of the resident  Using bathroom
PENSION DATE Date when the resident retires  Work on the garden
CHOLESTEROL Cholesterol level of the resident  Relax in the garden (pool, gardening, car washing…)
 Go to the visiting already proven their importance and usefulness. In the scope
of the research project one of its research lines is focused on
During these mentioned activities the resident still has to smart flat which is currently under development. A scenario
follow his needs. There is a possibility that the resident will describing everyday usage of the flat was used and visualized
swim in the pool which makes him tired. After such activity, using Java based simulation platform Anylogic v7.x. The
he has to go to eat or take a rest. But if the need of bathroom usefulness of this simulation tool for verification of various
use will be higher or the same, he will prefer the opportunity scenarios created on the way towards new smart homes, flats,
to go to the bathroom and after that, he will go to the kitchen or offices development seems to be high as our experience
or take a rest. signalized. In the paper it is demonstrated on a couple of first
The model layer is still in the development. As can be seen steps towards a smart flat, as an example of presented
in Fig. 1, the visual model of the smart flat is finished, approach.
consisting of reusable building blocks which allows
redesign/remodelling as needed. The sensors are completely ACKNOWLEDGMENT
prepared and assigned to the flat. Behaviour of the residents of
The financial support of the Czech Scientific Foundation
flat is described in various scenarios and soon will be
scientific project GA15-11724S DEPIES - Decision Processes
implemented to the model. The simple proposal and style of
in Intelligent Environments is gratefully acknowledged.
resident behavior are symbolized at Fig. 2. It is a state
behavior representation of Anylogic platform.
REFERENCES
[1] K. Ducatel, M. Bogdanowicz, F. Scapolo, J. Leijten, and J.C.
Burgelman, Scenarios for ambient intelligence 2010, ISTAG report,
European Commission. Institute for Prospective Technological Studies,
Seville, November 2001, available from: ftp://ftp. cordis.
lu/pub/ist/docs/istagscenarios2010. pdf.
[2] G. Misuraca, D. Broster, and C. Centeno, "Digital Europe 2030:
Designing scenarios for ICT in future governance and policy making,"
Government Information Quarterly 29, 2012, pp. 121-131.
[3] H. Liang, J. Dingel, and Z. Diskin, "A comparative survey of scenario-
based to state-based model synthesis approaches," in Proceedings of the
2006 international workshop on Scenarios and state machines: models,
algorithms, and tools. ACM, 2006, pp. 5-12.
[4] G. Buchholz, and P. Forbrig, “From Collaborative Scenario Recording
Fig. 2: Preliminary simple propose of resident behavior. to Smart Room Assistance Models”, in International Conference on
Distributed, Ambient, and Pervasive Interactions, Springer International
Publishing, August 2015, pp. 262-273.
As it has been described in this sub-section, scenarios
[5] A. Sutcliffe, "Scenario-based requirements analysis", Requirements
consist of smaller behavioural building blocks which together Engineering 3,1, 1998, pp. 48-65.
allow modelling of resident’s behaviour. There is a system of [6] M. Friedewald, E. Vildjiounaite, Y. Punie, and D. Wright, “The brave
preferences used to distinguish between more and less new world of ambient intelligence: An analysis of scenarios regarding
important sets of activities (such as handling life threatening privacy, identity and security issues”, in International Conference on
conditions). Obviously, some of the situations occur less Security in Pervasive Computing, April 2006, Springer Berlin
Heidelberg, pp. 119-133.
frequently in the real life – such as the mentioned heart attack
– but even these critical situations should be handled by the [7] M. Friedewald, E. Vildjiounaite, Y. Punie, and D. Wright, "Privacy,
identity and security in ambient intelligence: A scenario analysis,"
AmIE efficiently. The general goal is to gradually create more Telematics and Informatics 24,1, 2007, pp. 15-29.
plausible model of the residents’ behaviour through [8] T. Le Guilly, M.K. Nielsen, T. Pedersen, A. Skou, J. Kjeldskov, and M.
incorporation of a large number of behavioural building Skov, “User constraints for reliable user-defined smart home scenarios”,
blocks and their customizable sequencing. Journal of Reliable Intelligent Environments, 2016, pp. 1-17.
[9] V. Coroama, “Scenario-driven prototyping for ubiquitous computing”,
Doctoral Dissertation, Eidgenossische Technische Hochschule ETH
V. CONCLUSIONS Zurich, Nr. 17850, 2008.
Scenario – based design and development of intelligent
environments as well as scenario – driven prototyping have

View publication stats

You might also like