Abstract
유비쿼터스 컴퓨팅 환경에서 상황 인식 기반의 서비스를 제공하기 위해선 동적인 상황 관리 기술과 상황 추론 기술, 그리고 상황 모델링 기술이 필요하다. 기존 연구에서 상황 인식 서비스는 상황 인식 미들웨어에서 사용하는 상황 온톨로지를 이용해서 설계되기 때문에 서비스의 실행도중 상황 온톨로지를 동적으로 변경하기 어렵다. 본 논문에서는 유비쿼터스 컴퓨팅 환경에서 상황 변화에 대한 사용자의 요구사항을 능동적으로 반영하고, 동적인 응용 적응성을 지원하는 계층적 온톨로지 기반 상황 관리 모델을 제안하고 이를 기반으로 상황 인식 미들웨어를 설계한다. 또한, 상황 인식 서비스 구현을 위해 다양한 컨텍스트 발견, 획득, 해석, 추론을 효과적으로 지원하며 사용자의 서비스 실행 시 발생할 수 있는 상황 충돌을 해결하기 위한 방법을 제시한다. 설계하는 미들웨어는 OSGi 프레임워크 위에서 구현함으로써 다양한 유비쿼터스 환경에 필요한 상황 인식 서비스의 개발 및 운용을 효과적으로 지원을 할 수 있다.
To support context-aware services in ubiquitous computing environments, dynamic context managing, context reasoning, and context modeling technologies are required. In previous research, context services were designed using static context ontologies within middleware, making it difficult to modify them during runtime. This paper proposes a hierarchical ontology-based context management model and designs a context-aware middleware to support active application adaptability and dynamic user requirements. The middleware provides efficient support for discovering, acquiring, interpreting, and inferencing various contexts while resolving service conflicts. Implemented on the OSGi framework, it ensures interoperability across diverse devices and supports the effective development of context-aware services.
Introduction
In the paradigm of ubiquitous computing, context-awareness is the primary objective—the ability for systems to perceive user location, activity, and needs to provide proactive services. However, traditional middleware solutions often suffer from rigidity due to static ontologies and struggle with the inherent uncertainty of real-world sensor data. This paper introduces a modular middleware architecture built on the Open Services Gateway Initiative (OSGi) framework, utilizing a hierarchical ontology model to enable dynamic adaptability and robust conflict resolution.
Hierarchical Context Modeling
To overcome the limitations of static configurations, we propose a hierarchical context management model. Instead of a monolithic schema, the knowledge base is bifurcated into a Common Ontology and Domain-Specific Ontologies. The Common Ontology defines high-level, reusable concepts such as Person, Location, and Activity. Domain-Specific Ontologies extend these concepts for particular environments like homes or offices, allowing for granular updates without disrupting the entire system.
OSGi-Based Middleware Architecture
The proposed middleware leverages the OSGi framework to treat every sensor and service as a hot-swappable "bundle." This modularity ensures that the system remains hardware-agnostic and highly scalable. The architecture consists of several key managers: the Context Manager handles data acquisition and registration, the Inferencing Manager processes logic, and the Service Conflict Manager ensures that competing service requests are resolved based on priority.
Probabilistic Reasoning and Conflict Resolution
Real-world sensor data is frequently imprecise. To bridge the gap between raw hardware signals and human-readable logic, we utilize Fuzzy Membership Functions to convert continuous data (e.g., temperature) into discrete logical states. Furthermore, we extend the Web Ontology Language (OWL) with probabilistic tags (Prob, dependOn) to represent the likelihood of a specific context being true.
When multiple services attempt to control the same actuator—such as one service requesting lights off for a movie while another requests them on for reading—the Conflict Manager intervenes. It utilizes a priority-based system that evaluates the user's role, the ownership of the space, and the relative importance of the tasks to reach a resolution.
Implementation and Evaluation
The middleware was evaluated using a custom-built Smart Home testbed. The hardware setup included an Intel P4 gateway running Linux, integrated with RFID, light, and noise sensors, and various actuators for doors and appliances. The software stack utilized Java, the Jena2 semantic web toolkit, and the JESS rule engine.
Experimental results demonstrated that the system could successfully infer high-level activities with high probability. For instance, by combining low light levels, a person's presence in the bedroom, and the TV being active, the system correctly inferred the "Watching TV" context and adjusted environmental factors accordingly. Users were able to monitor and control these states in real-time via mobile interfaces.
Conclusion
By combining a hierarchical ontology with the modular OSGi framework, this research provides a flexible foundation for context-aware services. The integration of probabilistic reasoning allows the system to handle sensor uncertainty effectively, while the conflict management layer ensures reliable service delivery in complex multi-user environments. Future work will focus on improving scalability for larger environments like smart cities and implementing machine learning to automate the acquisition of user preferences.
Summary updated