one hand, each composite event is determined with
the data from a set of heterogeneous sensing devices,
in the other hand some sensing devices could be
exploited simultaneously for detecting multiple
composite events. Various different types of
composite events are the consumers of sensor data, so
we need easy and feasible mechanisms to access the
large-scale distributed sensor devices in ICPSs.
However, in such environments, due to the device
heterogeneity and differing accompanying protocols,
integrating diverse sensing devices into observation
systems for detecting multiple composite events is not
straightforward (Guinard, 2010). Therefore, it is
crucial to build a coherent infrastructure which treats
sensors in an interoperable, platform-independent
way.
In recent years, several efforts have been invested
in order to handle the challenges related to the
integration of large-scale heterogeneous sensing
devices in an interoperable and uniform way. Sensing
as a service (S
2
aaS) is introduced to provide sensing
services using kinds of sensors via a cloud computing
system (Sheng, 2013). In the S
2
aaS cloud,
heterogeneous sensing devices are abstracted as
services and expose their functionalities with
common accessing interfaces and encodings. Web
Services
(Hoang, 2012) are proposed to provide a
standard and interoperable accessing means for
heterogeneous sensing devices. Because of the
constrained resources in the context of the ICPS, the
RESTful Web Services (Garriga, 2016)
have been
exploited in some studies for many advantages over
arbitrary Web Services (i.e., SOAP), such as less
overhead, less parsing complexity, statelessness, and
tighter integration with HTTP. Therefore, with the
architecture of S
2
aaS and RESTful Web Services, it
is able to provide high-level abstraction for the
development of detecting multiple composite events
in ICPSs.
There are some related researches on building
lightweight REST framework for wireless sensor
networks. In the study of environmental sensor
monitoring (Lee, 2014), Restful Web Service is used
for communication with the Arduino-based sensors.
To address the constrained resources in sensor nodes,
Rouached et al. (Rouached, 2012) propose a
lightweight RESTful approach based on Restful SWE
services for interacting with the constrained WSNs.
Taherkordi et al.
(Taherkordi, 2011) apply REST
concepts to develop Web services for WSNs and
smartphones as two representative resource-
constrained platform. The above studies have
provided a framework for developing Restful web
services for sensor nodes, however, there are also few
researches on how to efficiently combine kinds of
Restful sensing services for detecting various
composite events.
In this paper, by exploiting REST framework and
expanding the basic architecture of S
2
aaS, we study
to present a service-oriented and lightweight
collaborative sensing framework with more specific
implementation details for detecting multiple
composite events in ICPSs. Each sensing device
register its service in the sensing cloud platform.
When a user initiates a request of detecting a
composite event, the proposed framework will
automatically resolve the request into a set of sensing
tasks and then push it to a subset of sensing devices
that happen to be in the area of interest. Based on our
proposed collaborative sensing framework with
Restful sensing services, it is very convenient to
provide a sensor web services for various
requirements of composite event detection, enable
users to connect and share the heterogeneous sensor
resources more efficiently.
The rest of this paper is organized as follows. The
Restful sensing services and composite event model
are described in Section 2. In Section 3, we present
the service-oriented collaborative sensing framework.
In Section 4, an automatic sensing service
composition process for detecting a composite events
is introduced. We provide the experimental results in
Section 5 and conclude the paper in Section 6.
2 RESTFUL SENSING SERVICES
2.1 Restful Web Service for Sensing
Nodes
Representational State Transfer (REST) is an
architectural model for building distributed
applications flexibly (Pautasso, 2008). It exploits the
natural structure of the Web and is efficiently
implemented with the Hypertext Transfer Protocol
(HTTP). Considering the constrained resources of
sensing nodes in ICPS, RESTful web service is
suitable to be used in ICPS due to its lightweightness
and its resource-oriented conception. In RESTful
architecture, every sensing sources can be uniquely
identified as a URI, for example, a URI for a vibration
sensor on a sensing node which monitors the status of
the equipment m located in workshop n is shown as
follows:
/{Location}/sensingnode/{n_id}/sensor/vibration,
here, location= /workshop_n/equipment_m.
Based on the unique identification through URIs,
a node is able to provide a RESTful Web service with