Introduction
The aging global population has created an urgent need for advanced home-based care solutions. While smart home technologies offer potential, current implementations often suffer from being "service-oriented." In such systems, users must manage individual devices and applications to achieve high-level goals, creating a significant cognitive burden. To address this, we present CDTOM (Context-driven Task-oriented Middleware), a framework that bridges the semantic gap between raw sensor data and user intentions by focusing on high-level tasks rather than low-level services.
System Architecture
CDTOM is organized into a four-layer architecture designed to decouple task logic from physical device management. This modularity ensures that the system remains robust even as hardware configurations change.
- Context Provider: Aggregates data from various sensors (RFID, UWB, environmental sensors).
- Context Server: Manages the storage and querying of context information through a Context Knowledge Base.
- Task Processor: The core reasoning engine, utilizing Case-Based Reasoning (CBR) and a Task Scheduler to infer user intent.
- Service Manager: Executes the appropriate application services based on inferred tasks using an Event-Condition-Action (ECA) rule engine.
The Context-Driven Task Model (CDTM)
At the heart of CDTOM is the Context-Driven Task Model (CDTM), implemented using the Web Ontology Language (OWL). This model organizes tasks into a hierarchical structure, allowing for complex goals to be decomposed into manageable atomic actions.
A key feature of this model is context inheritance. Tasks lower in the hierarchy automatically inherit the context of their parent tasks, reducing data redundancy and simplifying the reasoning process. For instance, if a parent task is scoped to the "Living Room," all its sub-tasks are implicitly understood to occur in that location.
Reasoning and Execution
CDTOM employs a hybrid reasoning approach. Case-Based Reasoning (CBR) is used to match current environmental context tuples against a library of historical cases. This allows the system to handle the inherent ambiguity of human behavior more flexibly than rigid rule-based systems. Once a task is identified with sufficient probability, the ECA Rule Engine triggers the necessary services. This separation of "what" (the task) from "how" (the service) allows the system to adapt to different hardware environments without changing the underlying task logic.
Implementation and Evaluation
The system was evaluated using a Task Supporting System (TSS) prototype in a laboratory setting. The hardware setup included multiple servers, wireless sensors, and smart appliances.
Experimental results demonstrated the efficiency of the middleware, with inference times ranging from 78ms for a single case to 415ms for a library of 20 cases, making it suitable for real-time applications. In a "noon break" scenario, the system achieved a 76% probability of correct task inference by weighting context factors such as location (via mattress pressure sensors) and time.
Conclusion
CDTOM provides a scalable, task-oriented framework for smart homecare. By abstracting user goals from device-specific services and utilizing hierarchical context modeling, it offers a more intuitive environment for elderly inhabitants. Future work will focus on incorporating unsupervised learning to automate case discovery and extending the middleware to support "open smart spaces" beyond the home environment.
Summary updated