Introduction
In clinical research, particularly for chronic conditions like Type 2 Diabetes (T2D), researchers require specialized mobile applications to track patient behavior and deliver real-time interventions. However, two significant barriers often impede progress: a technical gap, where clinical experts lack the software engineering skills to build robust apps, and data silos, where collected information is stored in isolated, non-interoperable formats. To provide meaningful context—such as determining if a specific meal is safe for a vegan patient on a particular insulin regimen—apps must be able to interact with the "Semantic Web," a global network of linked, structured data.
The Punya Framework
To bridge this gap, researchers developed Punya, a low-code extension of the MIT App Inventor. Punya utilizes a block-based programming paradigm, allowing non-programmers to create application logic by assembling visual puzzle pieces. Punya introduces several "semantic superpowers" to this environment:
- Semantic Components: Visual blocks capable of reading and writing Resource Description Framework (RDF) data, the standard for the Semantic Web.
- Visual Rule Engine: A system for authoring clinical logic visually. Researchers can define complex "if-then" rules without writing code.
- Advanced Querying: Integrated support for SPARQL and GraphQL to retrieve data from remote medical databases.
- IoT Integration: Support for LDP-CoAP to connect applications with physical sensors, such as smart pillboxes.
Data Integration and Ontologies
Punya’s utility is demonstrated through its integration with established biomedical datasets and ontologies. By tapping into the FoodOn ontology, the system can classify food types (e.g., identifying "steak" as an item of "Animal Origin"). It also utilizes FoodKG, a semantics-driven knowledge graph, to automatically populate nutritional information like protein and carbohydrate content based on user input. This approach democratizes Semantic Web technologies, hiding the complexity of RDF and ontologies behind a "LEGO-like" interface accessible to healthcare professionals.
Results: A Diabetes Management Use Case
The authors successfully prototyped a T2D management application that leverages these semantic capabilities. The app performs three critical functions:
- Auto-populating logs: When a user enters a food item, the app queries FoodKG and FoodOn to determine its nutritional value and origin.
- Executing Clinical Logic: The app uses visual rules to identify potential contraindications, such as alerting a user if a high-protein meal might interfere with their specific insulin dosage.
- Generating Research-Ready Data: Instead of traditional flat files, the app produces structured RDF data, facilitating immediate scientific analysis.
Discussion and Future Work
Punya addresses the "chicken-and-egg" problem of the Semantic Web by generating high-quality structured data directly from user interactions. This data can be fed back into the Linked Data Cloud, benefiting the broader research community. While this initial work demonstrates the framework's capabilities, future efforts will focus on formal user evaluations with clinical researchers and exploring the performance limits of running complex reasoning engines on mobile hardware. Additionally, the team plans to incorporate pervasive sensors to move from self-reported data toward more objective, sensor-driven clinical observations.
Summary updated