P015 < s e r v i c e l i s t />
By storing all the events for all of the tracked objects of interest in the smart building application scenario, we create a semantically enriched repository. B. The UbiQuSE Repository The repository component comprises two main subcomponents: the data warehouse and the metadata (or context) database. In the Smart Building scenario, a Space is divided into one or more Zones and these zones have associated services or products. In our current implementation, the context database is implemented as a relational database. What is important to observe is that context information is exposed and de-coupled from the system implementation: modifying the context does not require any changes to the system, which simplifies the task of the Space administrators as they can limit their attention to the space partition and product or service allocation. The data warehouse stores information as processed from the Enrichment component. It contains the historical data of tracking entities in their interaction with the sensing environment, enriched with the semantic information from the context. Such semantically enriched information enables data warehouse users to ask sophisticated queries. C. UbiQuSE Interface The Query-Interface component is responsible for accessing data. As illustrated in Fig. 1, it has three sub-components, one for each category of queries. The live query interface component is responsible for processing queries relevant to the live data only, queries of type L in our classification. This is managed by processing live data as it comes out of the XML wrapping process. The context query interface processes 1 Business
partner’s data has been replaced for privacy reasons.
1079
queries that “mix” live and context data, queries of type C in our classification. The context describes the configuration of the smart building application scenario. Examples are: “What is the largest zone?” “What services are available in the current area?” While queries on the (static) environment configuration retrieve information only from the context database (plain SQL), queries that involve live data need to retrieve data from the context and mix it with the current live information. This is realised by combining on-the-fly the information from the live data with the information stored in the repository. From the live data the parameter of interest is extracted by means of an XQuery expression; such parameters feed into an SQL query that is then run on the context database. Ideally, the SQL query is predefined so that the process can be automated. The mining query interface is responsible for retrieving data from the data warehouse. Historical data in the data warehouse contains data enriched with context and sensor related information. The user has to decide which dimension to explore from those introduced by the data enrichment. IV. C ASE S TUDY In our experimental setup, it was necessary to model the requirements of our industry collaborator in the laboratory. The discussion remains abstract for reasons of intellectual property but there is sufficient detail to understand the capabilities of the framework and relative performance. The laboratory Space is divided into Zones, each of which is delimited by coordinates. The laboratory is equipped with four Ubisense Cells installed at each corner, part of the Ubisense Platform [3] deployment which is in charge of tracking the objects in the space and providing access to the streams of live data. In our implementation, the Ubisense platform is paired with: a 2.66GHz Intel(R) Core(TM) 2 Duo server with 3.25GB RAM running PostgreSQL on Windows XP; a 2.40GHz Intel(R) Core(TM) 2 Duo server with 4.86GB RAM running MonetDB on Ubuntu 9.04. A. Tracking Accuracy We tested the UbiQuSE accuracy and the result is that Ubisense has a critical area of up to 20cm where an accuracy varies and has a margin of uncertainty. Above 20cm we definitively have absolute measurement precision, which suite our application scenario. B. Query Performance The first query we report on simply retrieves (tracks) the location of an object in the space (the first query in Tab. I). This query is straightforward (it just returns the location of an Ubi-tag) and demonstrates if there is any significant overhead introduced by the XML wrapping mechanism of our architecture. In general, the overall response time for tracking queries was less 205ms, which is in the same order as the standard Ubisense response time [3]. The second query we examine, a context query, is an extension of the third query in Tab. I. It tracks the movements of a Ubi-tag while returning the products and services available
978-1-4244-7755-5/10/$26.00 ©2010 IEEE
in the zone and surrounding zones of the Ubi-tag’s location. An extract of the execution for such a query is shown in the following listing. As soon as the person wearing the tag moves (enters a zone), the system seeks to verify their location and potential paths, and also executes a context query to determine what is available at that location. In example, 16ms were required to deliver this information to the user. Tag 20000007106 i n Zone 2−2. C o n t e n t s a r e P r o d u c t P027 . ========================================= R i g h t z o n e c o n t e x t i s Wall . R i g h t z o n e C o n t e n t s a r e None ========================================= L e f t z o n e c o n t e x t i s Zone 3−2. L e f t z o n e C o n t e n t s a r e P r o d u c t P015 ========================================= F r o n t z o n e c o n t e x t i s Zone 2−3. F r o n t z o n e C o n t e n t s a r e P r o d u c t P022 ========================================= Back z o n e c o n t e x t i s 2−1. Back z o n e C o n t e n t s a r e None ∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗ q u e r i e s p r o c e s s e d i n : 1 6 . 0 ms .
V. C ONCLUSIONS In this paper, we described our framework for real-time tracking and service provision based on smart spaces of variable size and layout. Our metadata approach ensures that we can deploy our system in any of the scenarios we have currently encountered and our hybrid query mechanism does not place any significant overhead as demonstrated by our experimental results. Future work will address and examine the effects of scaling on our system, as we employed only a limited number of tracking tags in our experiments. R EFERENCES [1] Aberer K. Swiss Experiment: From Wireless Sensor Networks to EScience. Proceedings of the 6th Workshop on Data Management for Sensor Networks, 2009. [2] KeBler, C., Raubal, M., and Wosniok, C. In: Semantic Rules for ContextAware Geographical Information Retrieval. In: 4th European Conference on Smart Sensing and Context, pp. 77-92, LNCS 5741, Springer, 2009. [3] Ubisense English Site. http://www.ubisense.net/ [4] Wei, W., and Barnaghi, P. Semantic Annotation and Reasoning for Sensor Data. In: 4th European Conference on Smart Sensing and Context, pp. 66-76, LNCS 5741, Springer, 2009. [5] Zhang, J., Zhu, M., Papadias, D., Tao, Y., and Lee, D. L. 2003. Locationbased spatial queries. In Proceedings of International Conference on Management of Data, SIGMOD, 2003. [6] Intanagonwiwat, C., Govindan, R. and Estrin D. Directed diffusion: a scalable and robust communication paradigm for sensor networks. In Proceedings of MOBICOM, 2000. [7] Yao, Y. and Gehrke, J. The Cougar Approach to In-Network Query Processing in Sensor Networks. In Proceedings of International Conference on Management of Data, SIGMOD, 2002. [8] Madden, S., Franklin, M.J., Hellerstein, J.M. and Hong, W. TinyDB: an acquisitional query processing system for sensor networks. ACM Trans. Database Syst., 2005 [9] Deshpande, A., Guestrin, C., Madden, S., Hellerstein, J.M., and Hong, W. Model-Driven Data Acquisition in Sensor Networks. Proceedings of the Thirtieth International Conference on Very Large Data Bases, 2004. [10] Dai, H., Neufeld, M., and Han,R. ELF: an efficient log-structured flash file system for micro sensor nodes, Proceedings of the 2nd International Conference on Embedded Networked Sensor Systems, 2004 [11] Li, M., Ganesan, D., and Shenoy, P.J. PRESTO: feedback-driven data management in sensor networks. IEEE/ACM Trans. Netw. 2009 [12] Lewis, M., Cameron, D., Xie, S., Arpinar, B. ES3N: A Semantic Approach to Data Management in Sensor Networks. Semantic Sensor network workshop, 5th International Semantic Web Conference, 2006.
1080