Abstract
As the global population ages, the demand for Ambient-Assisted Living (AAL) technologies has grown. However, developing mobile applications that integrate diverse IoT sensors with interoperable data standards remains a significant challenge. This paper presents Punya, an extension of the MIT App Inventor that simplifies the creation of Semantic Web of Things (SWoT) applications. By providing a visual, block-based programming environment that supports Linked Data (LD) and the lightweight LDP-CoAP protocol, Punya enables researchers and domain experts to rapidly prototype sophisticated health-monitoring systems without deep expertise in mobile development or semantic technologies.
Introduction: The "Triple Threat" of IoT Complexity
Developing effective AAL systems requires overcoming three major hurdles:
- Mobile Development Complexity: Traditional app development is time-intensive and requires specialized coding skills.
- IoT Heterogeneity: Interfacing with a wide variety of sensors and wearable devices involves managing numerous incompatible protocols.
- Data Interoperability: Making data from different sources mutually intelligible requires "Semantic Web" technologies (like RDF), which are often too computationally heavy for mobile devices.
Punya addresses these challenges by providing a low-code framework that abstracts semantic data management and network communication into intuitive visual components.
The Punya Framework and Methodology
Built upon the MIT App Inventor platform, Punya introduces several key technical innovations designed for the mobile IoT ecosystem:
Semantic Components and Ontology Mapping
Punya includes specialized blocks that allow users to read, write, and reason with Linked Data (RDF) directly. A core feature is the Linked Data panel, which allows developers to map UI elements—such as a text box displaying an "Activity Level"—directly to specific properties within an ontology, such as the Smart Applications REFerence (SAREF) ontology.
LDP-CoAP Integration
While the Linked Data Platform (LDP) is the standard for web-based data management, its reliance on HTTP is often too resource-intensive for constrained IoT devices. Punya implements LDP over the Constrained Application Protocol (CoAP), a leaner protocol designed for low-power, machine-to-machine communication. This allows mobile devices to act as efficient "edge gateways," collecting raw sensor data via Bluetooth, processing it locally, and pushing refined semantic data to the cloud.
Implementation and Key Results
The researchers demonstrated Punya's utility through a functional AAL application designed to monitor elderly activity. The application uses a built-in ActivityProbeSensor to calculate activity levels based on accelerometer variance.
As shown in the logic blocks above, the framework automatically generates valid RDF code in Turtle format, linking timestamped motion events to measurement values. The entire network operation—including setting the base URI and posting data to a remote server—is reduced to a few visual blocks, significantly lowering the barrier to entry for developers.
Key Insights
- Democratizing the Semantic Web: By hiding the complexities of RDF and SPARQL behind a visual interface, Punya enables healthcare researchers and other domain experts to build their own tools.
- Standardization via SAREF: The use of the SAREF ontology ensures that data produced by Punya apps is immediately interoperable with global medical and smart-home systems.
- Edge Computing: The framework positions the smartphone as a "cluster head" that transforms messy raw data into structured, actionable semantic information before it ever reaches the cloud.
Limitations and Future Work
While the current iteration of Punya excels at data collection and transmission, future work will focus on on-device reasoning, allowing apps to trigger local alerts (e.g., detecting a fall) without cloud dependency. Additionally, the authors plan to implement LDP-CoAP resource discovery to allow apps to automatically connect to new sensors in their environment. Finally, further research is needed to improve the graphical interface customization to ensure these apps meet the specific usability needs of elderly end-users.
Summary updated