Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS, VOL. 7, NO.

4, NOVEMBER 2011 731

Semantic-Based Enhancement of ISO/IEC 14543-3


EIB/KNX Standard for Building Automation
Michele Ruta, Floriano Scioscia, Eugenio Di Sciascio, and Giuseppe Loseto

Abstract—Current technologies for Home and Building Au- still require explicit interaction with the user and are basically
tomation (HBA) basically require an explicit interaction with tied to static operational scenarios set during implementation.
the user and allow a static set of operational scenarios defined In order to enable novel and intelligent HBA infrastructures,
during system implementation. On the contrary, novel HBA
solutions should enable so-called ambient intelligence, deriving able to adapt and autonomously control building appliances,
from a flexible and automatic control of appliances and sub- smart environments have to be conceived according to results
systems dipped into an environment. To this aim, this paper coming from pervasive and mobile computing, artificial intelli-
proposes backward-compatible enhancements to one of the most gence theory and agent-based software design [3]. A dynamic
widespread domotic standards, i.e., EIB/KNX ISO/IEC 14543-3, management of information about users, devices and services
able to support advanced, knowledge-based and context-aware
functionalities, grounded on the semantic annotation of both user in a given context is needed. Consequently, AmI research is
profiles and device capabilities. Such an approach enables novel closely related to studies for effective discovery and coordi-
resource discovery, matchmaking, and decision support features nation in volatile and resource-constrained scenarios. This
in HBA. Main benefits are in: (i) determining the most suitable paper proposes to overcome restrictions of common domotic
services/functionalities according to implicit and explicit user appliances through the exploitation of Knowledge Represen-
needs and (ii) allowing device-driven interaction for autonomous
adaptation of the environment to context modification. A case tation (KR) technologies and automated reasoning techniques,
study is presented to better clarify the proposed framework also originally conceived for the Semantic Web. An enhancement to
highlighting main characteristics, while performance evaluation ISO/IEC 14543-3 EIB/KNX standard [4] has been devised in
is provided to assess its effectiveness. a knowledge-based and context-aware computing framework
Index Terms—Ambient intelligence, building automation, EIB/ for building automation, supporting semantic annotation of
KNX, semantic web, service/resource discovery. both user profiles (i.e., needs, moods, features) and device
capabilities (i.e., services/resources home appliances offer).
The integration of a semantic microlayer within KNX protocol
I. INTRODUCTION
stack enables novel resource discovery and decision support

I N the latest years, advances in information and commu-


nication technology have opened the possibility to create
smart home/building environments, aimed at increasing com-
features in HBA making them autonomous and decentralized,
while preserving full backward compatibility. Machine-un-
derstandable metadata characterize both home environment
fort and security, making management easier, reducing energy and user profiles and preferences. Thanks to the integration of
consumption, and minimizing environmental impact [1]. The semantics at the application layer, each object/subject joining
so-called Ambient Intelligence (AmI) [2] aims at a research a KNX network can describe itself and advertise managed ser-
vision where people are surrounded by intelligent and unobtru- vices/resources. By means of a matchmaking process—based
sive microcomponents dipped in the environment, capable of on inference procedures in [5]—the most suitable available ser-
being sensitive and responsive, recognizing user profiles, and vices/functionalities for adapting the ambient to a given request
self-adapting behavior accordingly. Devices should communi- or event can be easily detected. Annotations are expressed
cate and interact autonomously, without the need for direct user in ontological formalisms derived from Description Logics
intervention, also making decisions based on multiple factors, (DLs) [6]: DIG [7], a more compact equivalent of OWL-DL
including user presence and preferences. They should be co- (OWL Web Ontology Language, W3C Recommendation,
ordinated by intelligent systems acting as supervisors. Current February 10th 2004, http://www.w3.org/TR/owlfeatures/), has
systems and standard technologies developed for Home and been adopted in particular. Furthermore, user-transparent and
Building Automation (HBA) are far from that vision, being un- device-driven interaction is enabled as opposed to current static
suitable for granting such an autonomicity and flexibility. They configuration approaches. At network layer, KNX support for
IP communication through KNXnet/IP is leveraged to extend
Manuscript received April 11, 2011; revised June 17, 2011; accepted July the management of building control beyond the local bus,
31, 2011. Date of publication September 06, 2011; date of current version while IEEE 802.11 and Bluetooth are exploited for wireless
November 09, 2011. This work was supported in part by the Strategic Regional
Projects PS_025 and PS_121. Paper no. TII-11-213.
communication with the user.
The authors are with SisInfLab (Information Systems Lab), Dipartimento di The remainder of this paper is organized as follows. In
Elettrotecnica ed Elettronica, Politecnico di Bari, 70125, Bari, Italy (e-mail: Section II, relevant related work is briefly surveyed, while
m.ruta@poliba.it). Section III outlines the proposed enhancements to KNX.
Color versions of one or more of the figures in this paper are available online
at http://ieeexplore.ieee.org. Section IV describes the system prototype w.r.t. frame-
Digital Object Identifier 10.1109/TII.2011.2166792 work architecture (in Section IV-A), implemented testbed
1551-3203/$26.00 © 2011 IEEE
732 IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS, VOL. 7, NO. 4, NOVEMBER 2011

(Section IV-B) and experiments carried out (Section IV-C), also a theoretical ontology-based framework for the integration of
reporting on performance evaluation. Final remarks and future different HBA protocols at application level. In [20], Bonino
work are in Section V. et al. presented the first self-contained prototype which in-
cludes a reasoning module able to manage and coordinate
heterogeneous devices by means of logic rules processing.
II. RELATED WORK In [21], the use of intelligent agents, designed according to
Although several technological issues related to the imple- the Belief-Desire-Intention (BDI) model, was proposed to
mentation of ad-hoc networks with a large number of sensors automate service composition tasks, so providing transparency
and actuators have been solved (many of them exploiting IEEE from the user’s standpoint. Nevertheless, a very basic ontology
802.15.4/ZigBee standard protocol [8], [9]), open questions was derived from attribute-based service descriptions in UPnP
still remain about high-level discovery and coordination as and Bluetooth service discovery protocols. As a consequence,
well as user interaction. Many proposals can be found in the approach lacks adequate expressiveness of user, device and
literature for improving flexibility of HBA systems. Some ap- service profiles; furthermore, the proposed case study is quite
proaches (see, for example, [9] and [10]) allow more advanced simplistic and experimental evidences are absent.
and user-friendly device management w.r.t. current standard An open issue of the above approaches is that classical
technologies. Nevertheless, they still rely only on direct com- rule-based inferences are not enough in heterogeneous and
mand-based user interaction, through local or network-based dynamic AmI contexts. In order to execute a rule, conditions
interfaces. Intelligent multiagent paradigms [11], wherein each it imposes must be fully matched by the current system state.
software agent is able to interact with peers to achieve its Unfortunately, experience shows that full matches are quite
goals, have been exploited for designing and modeling smarter unlikely—and different descriptions can even be partially in
environments. In fact, Multi-Agent Systems (MAS), are lever- conflict—in real-life scenarios. Semantic-based matchmaking
aged in AmI to represent meaningful entities such as rooms, frameworks as the one in [22], which exploits standard and
devices or people. In early approaches [12], machine learning nonstandard inference services and allows to match requests
techniques were exploited for smart building automation in a and resources based on the meaning of their descriptions (also
simulated campus dorm environment. Agents were located on providing classification and logic-based ranking), are more
small embedded computers and adopted simple fuzzy logic effective. Beyond obviously good matches, such as exact or full
rules, learned through observation of inhabitants’ behavior. ones, they enable so-called potential or intersection matches
Improvements in agent learning capability were achieved in (i.e., those matches where requests and supplied resources
industrial automation settings by supporting the temporal have something in common and no conflicting characteristics)
evolution of critical model parameters [13]. and partial or disjoint matches (i.e., cases where requests and
In order to achieve greater interoperability, a major goal is to supplies have some conflicting features) which can also be
provide a unified view of the home environment and a flexible considered useful in scenarios when nothing better exists.
application model. Traditionally, limited integration of domotic
subnetworks based on different technologies was achieved by III. SEMANTIC ENHANCEMENTS TO EIB/KNX STANDARD
means of custom gateways. Several proposals [14]–[16] adopt
Web Service technologies as unified abstraction layer to inte- In order to grant feasibility and leverage industry support, the
grate various communication protocols and mobile service dis- proposed approach is based on one of the most widespread HBA
covery in automation contexts. Standard Web Service descrip- standards, introducing a semantic enhancement for advanced
tion and orchestration languages based on XML are adopted, management of user profiles and device properties/services. A
only allowing syntactic match between users’ needs and ser- self-adapting framework has been devised exploiting KR tech-
vice/resource attributes, lacking semantic characterization. As niques and reasoning. In particular, KNX was chosen as refer-
a consequence, the improvement in service discovery and com- ence protocol, but the application of the above enhancements to
position capabilities w.r.t. basic HBA protocols is not so rele- other widespread domotic protocols is also under investigation,
vant to justify the increased architectural complexity. Similarly, for possible semantic-based cross-protocol interactions. KNX
proposals for service composition targeted to distributed sys- is an open international standard deriving from the convergence
tems take into account real-time requirements and fault toler- of existing European Installation Bus (EIB), European Home
ance [17], but they are based on merit figures and utility func- Systems (EHS) and BatiBus protocols into the specification of
tions, which must be modeled case-by-case. KNX Association [4]. Basically, KNX is a backward compat-
Knowledge representation technologies allow greater gen- ible evolution of EIB, hence the name EIB/KNX. Several phys-
erality and more flexible reuse of models, because ontologies ical communication media are supported: from twisted pair (TP)
provide a conceptual framework to express and share formal wiring to power line (PL), radio frequency (RF), and Ethernet,
and structured descriptions of services and appliances, while complying with KNXnet/IP protocol. KNX networks have a hi-
general-purpose reasoning procedures can be used for se- erarchical topology and an addressing structure used to unam-
mantic-based service composition in different HBA scenarios. biguously identify and access domains and devices. In the pro-
DomoML [18] was the first specific proposal of a building au- posed approach, all devices share the same domain address be-
tomation ontology suite. Reinisch et al. [19] acknowledged the cause they are supposed to belong to the same installation. KNX
relevance of semantic-enhanced approaches upon current HBA also supports an additional multicast address space available for
standards, for cost and efficiency motivations; they introduced groups. Multiple devices, or multiple functionalities of different
RUTA et al.: SEMANTIC-BASED ENHANCEMENT OF ISO/IEC 14543-3 EIB/KNX STANDARD FOR BUILDING AUTOMATION 733

devices, can be grouped and featured by a single group address


in the form main.middle.littleGroup.
KNX 2.0 specification evidenced several limits in managing
metadata referred to devices. Hence, a new semantic micro-
layer has been introduced on the top of the protocol stack, while Fig. 1. Semantic-enabled application-layer protocol data unit.
keeping a full legacy compatibility with current applications.
Two new Interface Objects have been defined to store struc-
tured and semantically annotated descriptions of both devices • PID_SEMANTIC_BODY: body of encoded semantic de-
and functionalities (i.e., machine understandable DIG fragments scription. Also this property is a string.
referred to a given ontology). In order to maintain the confor- Standard modification also include the definition of a new
mity to the standard, such new objects have been developed ac- Property Data Type (PDT) for OUUIDs, labeled with 7.1000
cording to the structural specification in [4]. Recall that Inter- code. Main number 7 indicates a 16-bit unsigned value, while
face Objects are data structures exposing device features. They 1000 is the first available value in the range reserved by KNX
simply consist of Object Properties, each composed by a prop- standard for future uses. The definition of two specific appli-
erty description and a property value. Property descriptions in- cation-layer service primitives has been further required by the
clude: (i) a Property IDentifier (PID) code; (ii) a Property Data goal of supporting user-independent device interaction.
Type (PDT) code; (iii) a (max_no_of_elem) value indicating the • A_SEMANTIC_SUBMISSION.req, used to send a se-
maximum number of contained elements; and (iv) a field related mantic description generated by a device agent and based
to property access rights. The property value is an array con- on events detected in the environment.
taining elements: the element at index 0 • A_SEMANTIC_SUBMISSION.res, containing the reply to
contains the current valid elements. At least one Object Prop- the above semantic request.
erty is mandatory for all Interface Objects, the Object Type: it is Each primitive is identified by a code included into the
a 16-bit unique identifier. KNX standard defines different value Application-layer Protocol Control Information (APCI) field
ranges for this code according to object purposes. and selected among unused APCIs reserved by KNX specifi-
In order to reduce the size of semantic annotations referred to cation. Such services allow devices to autonomously exchange
both device features and user profiles, an encoding algorithm semantic metadata via an Application-layer Protocol Data Unit
devised in earlier work [23] is exploited for efficiently com- (APDU) of a generic KNX frame, as shown in Fig. 1.
pacting XML-based ontological languages, generating a header Even though semantically annotated descriptions are com-
and a body for each encoded document. Furthermore, an Inter- pressed, they might often exceed the 14 bytes available in the
face Object named Generic Profile of the Device (GPD) has been APDU data field. Consequently, the extended KNX frame is ex-
introduced to describe general device features, e.g., type, manu- ploited, as supported by the standard. Its length is 255 bytes, 249
facturer or model. A single GPD is associated to a given device. of which for data. A new PDT, named PDT_GENERIC_EXT,
A Specific Profile of the Device (SPD) object has been also de- has been introduced to define a variable-length string with that
fined to describe individual functionalities and operating modes maximum size. If the compressed semantic annotation is still
of a device. Multiple SPDs can be associated to the same device, longer than the extended APDU payload, it is split in more
one for each different service/function it exposes. Both new ob- chunks inserted in different frames. In that case, the total packets
jects have similar structure, reported in what follows. will be specified into the “number_of_elements” field of the re-
• PID_OBJ_TYPE: a 16-bit field indicating the object type. lated interface object. Chunks will be retrieved by accessing se-
GPD and SPD are identified by 1200 and 1205 codes, quentially the elements of the property value array. Standard
respectively. They belong to standardized application in- KNX transmission control techniques are exploited for error
terface object types range. control.
• PID_OUUID: 16-bit Ontology Universally Unique IDen-
tifier (OUUID), marking the reference ontology the device IV. SYSTEM PROTOTYPE
semantic annotation refers to [24]; it allows to perform a
preliminary selection of the knowledge domain the system A. Reference Architecture
is going to operate on, in each matchmaking session. Be- The proposed architecture, shown in Fig. 2, exploits an IP
fore starting any discovery phase, user and home agent network as a fast backbone. In a common building configu-
have to agree about the reference ontology, which provides ration, KNX devices are connected to one or more KNX/IP
a common conceptualization of the particular knowledge routers through the bus so forming several sub-networks; each
domain. Due to space constraints, the interested reader is router on turn is connected to the backbone. Both standard and
referred to [24] for further details. smart devices are included in the system. The former are con-
• PID_OUUIDs: OUUID group. This field only refers to form to ISO/IEC 14543-3, the latter can be assimilated to vir-
GPD and contains the list of OUUIDs of SPDs associated tual KNX/EIB devices [25], endowed with additional hardware
to the device. interface and able to directly communicate on the IP link. Such
• PID_SEMANTIC_HEADER: header of encoded device an- devices are compliant with semantic enhancements to the pro-
notation. It is stored on the object as a variable-length tocol reported in Section III. To coordinate, manage and control
string. the building environment, the system also includes a lightweight
734 IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS, VOL. 7, NO. 4, NOVEMBER 2011

Association for designing and configuring installations) in


order to detect the home configuration as well as the imple-
mented network topology. It should be noted that ETS3, by
itself, cannot manage the semantic enhancements to KNX
standard introduced here. Consequently, typical configuration
files produced by ETS3 have to be enriched with the support to
semantic-based extensions, so that they can be imported by the
DB Manager. In particular, a new XML line is added for each
service provided by a device:

“ ” ”
“ ”
Fig. 2. Framework architecture.
The type attribute describes the device class: “A” for actu-
ators, “S” for sensors and “I” (as “intelligent”) for smart de-
vices. Description is a label which references the SPD inter-
face object containing the semantic annotation of the service,
so that it can be accessed from the device. Each service is asso-
ciated to a standard KNX data point via the value field, which
is sent to the device when the service must be enabled. The
proposed structure permits the high-level user-oriented repre-
sentation of each service/resource to be anyway triggered by
low-level device-oriented parameters for service/resource ex-
ecution. Parsed data referred to network topology (including
group address, data types and provided functionalities for each
device) are then stored into a database, acting as simple device
cache. SQLite (http://www.sqlite.org), a lightweight embedded
SQL database engine, was adopted for this purpose. During
Fig. 3. Central unit modules. startup phase, the semantic description of each available ser-
vice/resource is also retrieved from its provider and cached into
the DB, in order to reduce network congestions and response
software component, namely, Central Unit (CU), which per- latency. Nevertheless, it is useful to point out that the exploita-
forms network configuration and monitoring, service/resource tion of both configuration file and device database is a mean to
discovery and device remote control. The CU could be hosted by improve system performance: the addition/removal of devices
any home device able to provide minimum computational capa- and services to/from the network is performed through standard
bilities and memory availability. It is composed by seven mod- KNX protocol primitives, and cached information is updated
ules, organized in three architectural layers, as depicted in Fig. 3. accordingly.
Purpose and function of each of them is analyzed hereafter. DomoLogic: This module implements the automated rea-
Graphical User Interface (GUI): A simple touchscreen inter- soning functions of the CU by means of an embedded semantic
face (not shown here due to lack of space) is provided allowing matchmaker, leveraging algorithm and approach in [26]. Stan-
users to interact with the system. A virtual button panel enables dard and nonstandard inference procedures in Descrip-
basic building profiles described through semantic annotations, tion Logics (Attributive Language with unqualified Number re-
view devices status and show the content of received requests strictions) are used to carry out a matchmaking process between
along with corresponding replies. a semantic request and a set of resource/service annotations. An
Client Manager: This module interconnects users to the CU algorithm based on the solution of Concept Covering Problem
by means of a mobile client, e.g., a smartphone, for checking (CCoP) [27] has been also implemented to cover (i.e., satisfy)
the status of the building environment and to submit profiles. features expressed in a request as much as possible, through the
Basically, a profile consists of a semantically annotated descrip- conjunction of services available in the environment (seen as el-
tion—w.r.t. a reference ontology—that may include user fea- ementary building blocks). A request from a user or device starts
tures such as age, gender, physical status, mood as well as re- the interaction sequence shown in Fig. 5. Performed steps are:
quests for specific service categories or home resources. Com- 1) Query the DB, retrieve all services coming from available
munication between clients and the CU occurs via either IEEE devices and associate to them a device address (cache is pop-
802.11 or Bluetooth wireless technologies. A basic client was ulated at boot time and exploited to reduce latency). 2) Read
developed for Android smartphones to test the module (not de- the status of each service, through a specific function of KNX
scribed here as outside the scope of the paper). Manager module (described afterwards). Such status can be rep-
DB Manager: At CU startup, this module parses the XML resented by a string, a numerical or a boolean value according to
document generated by ETS3 (Engineering Tools Software, the associated data type. 3) Extract semantic annotations from
a manufacturer-independent software tool provided by KNX the DB, using the pair as a key, and separate
RUTA et al.: SEMANTIC-BASED ENHANCEMENT OF ISO/IEC 14543-3 EIB/KNX STANDARD FOR BUILDING AUTOMATION 735

Fig. 4. Semantic enhanced communication exploiting device agent.

services into activated and deactivated sets. 4) Check active ser-


vices to discover incompatibilities w.r.t. the request, by means
of the Concept Contraction algorithm [22]. Mark incompatible
services for deactivation. 5) Exploiting the Concept Abduction
algorithm [22], check whether the request is already completely Fig. 5. Agent interaction sequence.
covered by active services or not. 6) In the latter case, solve the
CCoP to select one or more services that should be activated,
whose combination covers the missing features (a preliminary quests to the central unit for requiring home services (generated
check is performed to skip out services in contrast with currently after a sensor data gathering phase or when their internal status
active ones). The algorithm returns two groups of services, re- changes). To this purpose, devices embed a Smart Agent that
spectively marked for activation and deactivation, along with the will take care to communicate and negotiate an environmental
semantic expression of the request part that could not be covered profile with the CU. Particularly, modification in the user profile
(if present). are managed by the agent triggering home status modifications
KNX Manager: This module acts as interface toward the through new matchmaking processes. As shown in Fig. 2, smart
physical network. It exploits the Calimero NG Java library devices are able to directly send KNX frames over the LAN. In
[28] to control KNX devices, e.g., activate/deactivate services the current system prototype, smart agents are not implemented
according to outcomes of DomoLogic module. Calimero NG in physical devices, but simulated as separate processes running
also includes several tools and features that simplify network in the computer hosting the CU. However, this constraint does
management. It was extended to access standard and semantic not change the operating logic, because in any case the CU sees
properties on devices. KNX Manager includes the Message agent messages as frames stream coming from network inter-
Manager (MM), which performs the following basic tasks: (i) face. Anyway a smart media center with embedded semantic
to analyze and extract fields of a KNXnet/IP frame for control- processing and communication capabilities is under develop-
ling the communication between CU and devices and (ii) to ment at the moment, and several commercial home equipments
identify semantic frames and manage their content. Notice that could be able to host smart agents.
the CU manages plain KNX data and semantic annotations in
a uniform way, so maintaining the compliance with protocol B. Testbed
specification. Based on the above theoretical framework, the prototypical
Device Agent: As said above, semantic annotations are not testbed depicted in Fig. 6(a) was developed to prove its feasi-
currently stored into the embedded memory of devices. More- bility also evaluating provided capabilities. A subset of home
over, legacy or very elementary devices—also widespread in areas, i.e., a hall door, a living room, a kitchen, and a small out-
existing households—have no storage/processing capabilities. door space were simulated. Currently, it integrates 13 devices/
It is needed, therefore, to integrate semantic-based capabilities appliances, including both traditional (legacy) electrical equip-
into a software agent associated to each device or set of devices ments and KNX-compliant ones, as summarized in Table I. De-
and equivalent for each user. A Device Agent will be so able to vices are connected through a twisted pair bus in a hierarchical
provide support for semantic enhancements also for simplistic network structure. They expose 42 different services/function-
components according to the proposed protocol variant. In such alities as a whole, each one associated to a KNX group address.
cases, if the CU requires standard device properties, the request Since KNX specification does not mandate fixed schemes for
will be commonly forwarded on the network, through the KNX address assignment, the following criteria have been adopted:
router, to the given device. Conversely, in case semantic anno- Main Group specifies the area; Middle Group denotes the ser-
tations are needed, the request will be replied by the agent, as vice type, with “0” used for input-only, “1” for output-only
shown in Fig. 4. and “2” for I/O services; Little Group identifies the service/re-
Smart Agent: The semantic extension of KNX standard aims source within a given area. Main panel, shown in Fig. 6(b),
to develop smart devices able to either declare their semanti- stores the electrical components, including a KNX Router. It
cally annotated status and function or send semantic-based re- converts the KNX/EIB telegrams into IP frames and vice versa,
736 IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS, VOL. 7, NO. 4, NOVEMBER 2011

Fig. 6. Prototypical testbed. (a) Testbed. (b) Main panel. (c) Alarm. (d) Camera.
(e) Weather station.

TABLE I
DEVICES LIST

Fig. 7. Relevant axioms in the case study ontology.

devices store their semantically annotated service descriptions


in programmable stable memory (e.g., EEPROM or solid state
disks). In the perspective of productization of the proposed
technology, service profiles should be set at the factory and
according to KNXnet/IP standard. Besides, it can buffer tele- will be easily updated by smart devices themselves if endowed
grams to keep the bus load low. The panel also includes four cir- with Internet connection, while semantic requests are produced
cuit breakers for overload protection. Common types of digital through data gathering, analysis and annotation algorithms
(on/off) and analog switches have been integrated. In particular, embedded in the devices. On the other hand, for “legacy”
panels simulating living room and kitchen contain both tradi- devices default profile annotations should be extracted from
tional and dimmer lights. Moreover, a testbed face is equipped the ETS database and customized by KNX installer; then,
with an analog actuator to simulate window electric blinds. The during normal system operation, they will be managed by the
prototypical house finally includes an alarm system, composed associated Device Agent (profiles update from the Internet is
by an outer alarm, with sensors positioned around the building not implemented now, but it can be done trivially). A software
perimeter, and an internal alarm. It is managed by the control agent was developed to let the weather station act as smart
unit in Fig. 6(c). Internal alarm comprises a camera [Fig. 6(d)] device. Based on data coming from weather sensors, a change
and infrared sensors properly placed within the environment. In in context is detected and a request to adapt the environment is
order to assume the presence of an outdoor area, a weather sta- issued to the decision-making facilitator, which adjusts home
tion, shown in Fig. 6(e), has been also added to measure wind subsystem/appliance configuration, taking user profiles into
speed, environmental brightness, rain and temperature. account.
The CU is devoted to testbed management and control. It was It is a sunny morning with mild weather. The home environ-
implemented using Java language and a modified version of Cal- ment is set to a typical profile with air conditioning turned on
imero NG library and runs on a laptop PC interconnected via the and all blinds open. During the day, it clouds over and looks like
IP backbone. In the next section, carried out experiments on the it is about to rain. The smart weather station senses both temper-
above testbed are reported. ature and brightness decrease, as well as wind speed growing
and humidity. After a data gathering phase, weather station pro-
C. Experiments
cesses information, so detecting the bad turn in the weather, and
The presented case study comprises several scenarios, generates a semantically annotated event description.
allowing to highlight benefits induced by the proposed archi- Fig. 7 reports on an excerpt of the main class taxonomy of
tecture w.r.t. standard HBA solutions. Let us suppose a smart the domotics ontology developed for the case study. It con-
weather station interacts with several domotic devices, given tains further class axioms and property definitions, not reported
the presence of two different users at home. The prototypical here for the sake of brevity. First-level classes broadly divide
testbed was built as a full-functioning KNX installation. Smart the ontology in subdomains: devices, services, user status, and
RUTA et al.: SEMANTIC-BASED ENHANCEMENT OF ISO/IEC 14543-3 EIB/KNX STANDARD FOR BUILDING AUTOMATION 737

TABLE II Let us consider the following available services:


CASE STUDY CHARACTERIZATION

weather conditions. Second-level classes represent main con-


cepts HBA applications need to model and reason upon; they are
further specialized to provide a more fine-grained characteriza-
tion. Properties are mostly used to relate user profiles and device
requests to such concepts. For instance, the above description
from the weather station can be expressed as follows (classical
logic notation is adopted here for the sake of readability).

It can be pointed out that, according to AmI paradigm, user


intervention is not needed to request a specific service in this
case; instead, the updated weather conditions—detected by the
station—trigger the agents which adapt the environment conse-
quently, with the CU acting as a mediator and semantic-based
facilitator.
The annotation, expressed in DIG language w.r.t. ontology
and compressed, is stored by the agent into one or more
KNX frames and sent, along with , in a A_SE-
MANTIC_SUBMISSION.req, as explained in Section III. The
CU reassembles the message and retrieves environmental infor-
mation (particularly, currently enabled services) and profiles of
users in the house (cached from recent user requests) referred to
the same ontology. Finally, semantic matchmaking is executed
by DomoLogic module. In what follows, the system behavior
is reported for two different home occupants (whose profiles
were previously sent by their mobile clients to the Client Man- In the first case, the air conditioner is deactivated and the
ager), summarized in Table II: (a) an adult man with an intense blinds are closed, due to weather condition. Moreover, the
headache producing a tiredness status; (b) an old man having a brightness decrease causes the activation of room lights. Nev-
fever with strong cold feeling. Their profiles are expressed as: ertheless, as user profile indicates headache, the CU turns off
the music player and selects a soft lighting level to satisfy
both environmental and user constraints. Blinds are closed
also in the second scenario. In that case, however, temperature
reduction causes a stronger cold feeling to the user, inducing
the system to activate heating instead of simply switching off
cooling. Furthermore, a bright light level is selected due to low
external brightness, considering that no user characteristic is
in contrast with this functionality. Finally, the outer alarm is
activated for users who cannot move due to fever or injury,
while the music player is not disabled because the user does
not specify anything in contrast with it.
738 IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS, VOL. 7, NO. 4, NOVEMBER 2011

V. CONCLUSION AND FUTURE WORK


This paper presented a semantic enhancement to EIB/KNX
HBA standard allowing the integration of knowledge repre-
sentation and reasoning technologies with current protocol. A
distributed knowledge-based agent framework has been im-
plemented to support advanced, fine-grained resource/service
discovery grounded on the formal annotation of user character-
istics and device capabilities. The devised framework has been
implemented in a prototypical testbed in order to test both fea-
sibility and effectiveness. An early performance evaluation has
been also carried out. Future extensions will include protocol
Fig. 8. Processing time.
optimization to reduce average response times, while the design
of a structured agent framework running on the user mobile
client is now under investigation, able to automatically build
Performance analysis was carried out using a laptop PC as user profiles crawling phone Personal Information Manager
central unit and a smartphone as mobile client, respectively, (PIM), SMS and call lists. Finally, an explicit exploitation of
equipped with: Intel Core 2 Duo T7700 CPU (2.4 GHz clock fre- the framework for optimizing household energy consumption
quency), 4 GB DDR2 RAM and Ubuntu 10.04 operating system and load scheduling is a further future direction.
with Java Virtual Machine 1.6.0_17; S5PC111 CPU (1 GHz
clock frequency), 512 MB RAM and Android 2.1 operating
system supporting IEEE 802.11 b/g/n and Bluetooth 3.0 stan- REFERENCES
dard. In order to assess the performance impact of the commu- [1] D. Dietrich, D. Bruckner, G. Zucker, and P. Palensky, “Communica-
nication medium, a TP1 cable—a worst-case scenario, though tion and computation in buildings: A short introduction and overview,”
IEEE Trans. Ind. Electron., vol. 57, no. 11, pp. 3577–3584, Nov. 2010.
common in real KNX installations—was simulated, only for [2] N. Shadbolt, “Ambient intelligence,” IEEE Intell. Syst., vol. 18, pp.
semantic-based annotations retrieved from devices connected 2–3, Jul. 2003.
through twisted pair bus. Each frame was delayed on the LAN [3] Handbook of Ambient Intelligence and Smart Environments, H.
Nakashima, H. Aghajan, and J. C. Augusto, Eds. New York:
to force a maximum transmission rate of 9600 bps. It was not Springer, 2010.
needed for virtual KNX devices connected directly to the LAN. [4] KNX Handbook for Home and Building Control, 5th ed. Brussels,
Tests were performed to evaluate CU startup time and request Belgium: Konnex Association, 2006.
[5] S. Colucci, T. Di Noia, A. Pinto, A. Ragone, M. Ruta, and E. Tinelli,
servicing turnaround time. “A non-monotonic approach to semantic matchmaking and request re-
Results are reported in Fig. 8. Startup is by far the finement in e-marketplaces,” Int. J. Electron. Commerce, vol. 12, no.
longest phase with over 130 s, mainly due to constraints 2, pp. 127–154, 2007.
[6] F. Baader, D. Calvanese, D. Mc Guinness, D. Nardi, and P.
of low-throughput field bus. Startup includes several substeps: Patel-Schneider, The Description Logic Handbook. Cambridge,
(i) import the XML settings file; (ii) retrieve all service annota- U.K.: Cambridge Univ. Press, 2002.
tions, which is the longest step; (iii) parse and preprocess the [7] S. Bechhofer, R. Möller, and P. Crowther, “The DIG description logic
interface,” in Proc. 16th Int.Workshop on Description Logics (DL’03),
annotations (executing concept unfolding and normalization, Rome, Italy, Sep. 2003, vol. 81, Ser. CEUR Workshop Proceedings,
as explained in [26], in order to apply the proposed inference pp. 168–175.
services), which takes about 300 ms per service on average; [8] L. Lo Bello and E. Toscano, “Coexistence issues of multiple co-located
IEEE 802.15.4/ZigBee networks running on adjacent radio channels in
(iv) store the annotations into the CU database; and (v) per- industrial environments,” IEEE Trans. Ind. Informat., vol. 5, no. 2, pp.
form an early device scan to find already active services. It 157–167, May 2009.
is useful to point out that CU startup is performed only once [9] K. Gill, S. Yang, F. Yao, and X. Lu, “A ZigBee-based home automation
system,” IEEE Trans. Consumer Electron., vol. 55, no. 2, pp. 422–430,
per working cycle, which may last several hours or days in May 2009.
normal conditions. The subsequent five tasks in the chart are [10] M. E. Pardo, G. E. Strack, and D. C. Martinez, “A domotic system
executed only when the CU receives a request. As described in with remote access based on web services,” J. Comput. Sci. Technol.,
pp. 91–96, Jul. 2008.
Section IV-A and Fig. 5, in the first step a new device scan is [11] S. Theiss, V. Vasyutynskyy, and K. Kabitzsch, “Software agents in in-
performed to get an updated view of active services. Duration dustry: A customized framework in theory and praxis,” IEEE Trans.
depends on the number of devices. In the above case study, this Ind. Informat., vol. 5, no. 2, pp. 147–156, May 2009.
[12] H. Hagras, V. Callaghan, M. Colley, G. Clarke, A. Pounds-Cornish,
step spends about 1250 ms for 13 devices, with an average time and H. Duman, “Creating an ambient-intelligence environment using
of 100 ms per unit. The first reasoning task is compatibility embedded agents,” IEEE Intell. Syst., vol. 19, no. 6, pp. 12–20, Nov.-
check, then the CCoP is solved. Compatibility check is longer Dec. 2004.
[13] D. Filev, R. Chinnam, F. Tseng, and P. Baruah, “An industrial strength
because all service descriptions must be evaluated, while only novelty detection framework for autonomous equipment monitoring
compatible services are processed in the CCoP. Finally, the and diagnostics,” IEEE Trans. Ind. Informat., vol. 6, no. 4, pp. 767–779,
response task includes time needed to send the reply to the Nov. 2010.
[14] V. Miori, L. Tarrini, M. Manca, and G. Tolomei, “An open standard so-
requester agent, and to apply changes to the environment by lution for domotic interoperability,” IEEE Trans. Consumer Electron.,
enabling or disabling services. The overall average turnaround vol. 52, no. 1, pp. 97–103, Feb. 2006.
time for servicing the weather station request in the above case [15] T. Catarci, F. Cincotti, M. Leoni, M. Mecella, and G. Santucci, “Smart
homes for all: Collaborating services in a for-all architecture for
study is 2.68 s, which can be deemed as acceptable for an HBA domotics,” Collaborative Computing: Networking, Applications and
system. Worksharing, pp. 56–69, 2009.
RUTA et al.: SEMANTIC-BASED ENHANCEMENT OF ISO/IEC 14543-3 EIB/KNX STANDARD FOR BUILDING AUTOMATION 739

[16] T. Cucinotta, A. Mancina, G. Anastasi, G. Lipari, L. Mangeruca, R. Floriano Scioscia received the M.S. degree in infor-
Checcozzo, and F. Rusina, “A real-time service-oriented architecture mation technology engineering and the Ph.D. degree
for industrial automation,” IEEE Trans. Ind. Informat., vol. 5, no. 3, pp. in information engineering from Politecnico di Bari
267–277, Aug. 2009. (Technical University of Bari), Bari, Italy, in 2006
[17] I. Estévez-Ayres, P. Basanta-Val, M. García-Valls, J. Fisteus, and and 2010, respectively. His thesis received the annual
L. Almeida, “QoS-aware real-time composition algorithms for ser- Marco Cadoli Award for the best Ph.D. thesis in ar-
vice-based applications,” IEEE Trans. Ind. Informat., vol. 5, no. 3, pp. tificial intelligence from the Italian Association for
278–288, Aug. 2009. Artificial Intelligence (AI*IA) in 2011.
[18] L. Sommaruga, A. Perri, and F. Furfari, “DomoML-env: An ontology He is currently a Postdoctoral Research Fellow
for human home interaction,” in Proc. 2nd Italian Semantic Web Work- at the Information Systems Laboratory (SisInfLab),
shop, CEUR Workshop , SWAP’05, Trento, Italy, Dec. 14–16, 2005, pp. Technical University of Bari. His research interests
249–255. include pervasive computing and the Internet of Things, knowledge represen-
[19] C. Reinisch, W. Granzer, F. Praus, and W. Kastner, “Integration of tation systems and applications for wireless ad hoc networks and ubiquitous
heterogeneous building automation systems using ontologies,” in Proc. contexts. He coauthored about 30 papers in international edited books, journals.
34th Annu. Conf. Ind. Electron., IECON’08, 2008, pp. 2736–2741. and conferences.
[20] D. Bonino, E. Castellina, and F. Corno, “The DOG gateway: Enabling Dr. Scioscia received the Best Paper Award at the ICEC-2007 Conference
ontology-based intelligent domotic environments,” IEEE Trans. Con- and the SEMAPRO-2010 Conference.
sumer Electron., vol. 54, no. 4, pp. 1656–1664, Nov. 2008.
[21] M. Santofimia, F. Moya, F. Villanueva, D. Villa, and J. Lopez, “Intelli-
gent agents for automatic service composition in ambient intelligence,”
in Web Intelligence and Intelligent Agents, Z. Usmani, Ed. Rijeka, Eugenio Di Sciascio received the M.S. degree
Croatia: InTech, 2010, pp. 411–428. (Hons) from the University of Bari, Bari, Italy,
[22] T. Di Noia, E. Di Sciascio, and F. Donini, “Semantic matchmaking and the Ph.D. from Politecnico di Bari (Technical
as non-monotonic reasoning: A description logic approach,” J. Artif. University of Bari).
Intell. Res., vol. 29, pp. 269–307, 2007. He is currently a Full Professor of Information
[23] R. De Virgilio, E. Di Sciascio, M. Ruta, F. Scioscia, and R. Torlone, Technology Engineering at Technical University of
“Semantic-based RFID data management,” in Unique Radio Innova- Bari, and leads the research group of SisInfLab, the
tion for the 21st Century: Building Scalable and Global RFID Net- Information Systems Laboratory of Technical Uni-
works, D. Ranasinghe, Q. Sheng, and S. Zeadally, Eds. New York: versity of Bari. Formerly, he has been an Assistant
Springer, 2010, pp. 111–142. Professor at the University of Lecce and Associate
[24] T. Di Noia, E. Di Sciascio, F. M. Donini, M. Ruta, F. Scioscia, and Professor at the Technical University of Bari. His
E. Tinelli, “Semantic-based bluetooth-RFID interaction for advanced research interests include multimedia information retrieval, knowledge repre-
resource discovery in pervasive contexts,” Int. J. Semantic Web and sentation, and e-commerce technologies. He is involved in several national and
Inform. Syst., vol. 4, no. 1, pp. 50–74, 2008. European research projects related to his research interests. He
[25] F. Heiny, Y. Kyselytsya, and T. Weinzierl, “Virtual KNX/EIB devices Dr. Di Sciascio has coauthored papers that received awards at the ICEC-2004,
in IP networks,” in Proc. KNX Sci. Conf., FH Deggendorf, Germany, IEEE CEC-EEE-2006, ICEC-2007, ESTC 2008, SEMAPRO-2010, and ICWE
2004. 2010 Conferences.
[26] M. Ruta, F. Scioscia, T. Di Noia, and E. Di Sciascio, “Reasoning in
pervasive environments: An implementation of concept abduction with
mobile OODBMS,” in IEEE/WIC/ACM Int. Conf. Web Intell., 2009, pp.
145–148.
[27] A. Ragone, T. Di Noia, E. Di Sciascio, F. M. Donini, S. Colucci, and Giuseppe Loseto received the M.S. degree in in-
F. Colasuonno, “Fully automated web services discovery and compo- formation technology engineering from Politecnico
sition through concept covering and concept abduction,” Int. J. Web di Bari (Technical University of Bari), Bari, Italy,
Services Res., vol. 4, no. 3, pp. 85–112, 2007. in 2009. Currently, he is working towards the Ph.D.
[28] B. Malinowsky, G. Neugschwandtner, and W. Kastner, “Calimero: degree in information engineering at the Technical
Next generation,” in Proc. KNX Sci. Conf., 2007, pp. 271–284. University of Bari.
His research interests include pervasive computing
and the Internet of Things, knowledge representation
Michele Ruta received the Laurea degree in elec-
tronics engineering and the Ph.D. degree in computer systems and applications for home and building au-
science from the Technical University of Bari, Bari, tomation and ubiquitous smart environments.
Italy, in 2002 and 2007, respectively.
He is currently an Assistant Professor at the
Technical University of Bari. His research interests
include pervasive computing and ubiquitous web,
mobile e-commerce applications, knowledge repre-
sentation systems and applications for wireless ad
hoc contexts. On these topics, he has coauthored
papers in international journals and conferences. He
is involved in various research projects related to his research interests.
Dr. Ruta has coauthored papers that received the Best Paper Award at the
ICEC-2007 Conference and the SEMAPRO-2010 Conference, and has been
Program Committee member of several international conferences and work-
shops in areas related to his research interests.

You might also like