TL;DR
HealthGenie is an interactive dietary recommendation system that combines the conversational flexibility of Large Language Models (LLMs) with the factual structure of Knowledge Graphs (KGs). By replacing the traditional, tedious linear text chat with a circular, interactive workflow, it allows users to directly manipulate a visualized knowledge graph to quickly discover and refine personalized recipes tailored to their health conditions.
What Problem Does This Paper Address?
When seeking personalized dietary advice, users must navigate a complex web of nutritional science, medical constraints (e.g., high blood sugar, food allergies), and personal taste preferences.
While Large Language Models (LLMs) excel at conversational interfaces, they suffer from two major drawbacks in this domain: they are prone to hallucinations (generating unsafe or inaccurate health advice), and their text-heavy, verbose outputs require multiple rounds of linear chat to refine. Conversely, Knowledge Graphs (KGs) offer structured, accurate, and interpretable data, but they lack an intuitive interface for non-expert users.
The authors address this gap by breaking away from the standard linear chat paradigm, introducing a system that uses a KG not just as a backend database, but as a direct, interactive user interface element.
Methods
HealthGenie introduces a Circular Interactive Workflow consisting of four main components:
- Knowledge Graph Construction: The system builds upon a large-scale recipe repository, mapping recipes, ingredients, nutrients, and health benefits as nodes, and semantic relations (e.g.,
contains,recommendsFor,substitutableBy) as edges. To expand coverage, the authors use a zero-shot LLM extraction approach to ingest millions of tokens of free-text nutritional notes into the graph. - User Query Processing: When a user inputs a natural language query, an LLM-driven classification layer predicts user intent (e.g., new search, constraint override), while a parser extracts key entities and translates them into symbolic constraints (e.g.,
calorieCap=400). - Knowledge Matching and Adaptive Output: A multi-agent pipeline—consisting of a Graph Retrieval Agent (using Breadth-First Search), a Relevance Scoring Agent, and a Language Generation Agent—synchronizes two outputs: a concise textual summary and an interactive, localized subgraph visualization.
- Interactive Feedback and Iteration: Instead of typing out adjustments, users can directly click on graph nodes to "Include" or "Exclude" specific ingredients. The system recalculates the constraints in real-time, dynamically fading out rejected options and updating the recipe recommendations.
Datasets
The system relies on a meticulously constructed dataset to populate its knowledge base:
- Core Repository: Approximately 12,500 unique recipes and 27,500 ingredient mentions.
- Textual Corpus: Around 12 million tokens of free-text nutritional notes used for LLM-based relationship extraction.
- Final Knowledge Graph: Comprises over 100,000 nodes and at least 45 distinct relation types, stored in a hybrid format (CSV-based index for scale, in-memory representation for real-time pathfinding).
Key Insights and Ideas
- The Power of Graph-Driven UI: Moving the knowledge graph from the backend to the frontend fundamentally changes user interaction. Toggling a node is cognitively cheaper and faster than articulating a text constraint (e.g., "please replace the black pepper with crushed tomatoes").
- Progressive Disclosure: Visualizing massive KGs is notoriously overwhelming. HealthGenie solves this by extracting localized subgraphs and providing an adjustable granularity slider ("show more" / "show less"), allowing users to control information density.
- Persistent Context via Symbolic Profiles: While LLMs often forget constraints across long chat histories, HealthGenie merges user graph interactions into a symbolic profile store, ensuring health restrictions are strictly maintained across multi-turn sessions.
Key Results
The authors evaluated HealthGenie via an $N=12$ within-subject user study, comparing it against a baseline condition (GPT-4o chat paired with a standalone, non-interactive KG viewer).
- High Information Perception: HealthGenie's outputs received exceptional ratings for Organization (KG: 4.66/5, LLM: 4.67/5) and Interpretability (4.58/5).
- Improved Efficiency: Participants overwhelmingly agreed that the visual output made revising recipes easy (4.91/5) and helped them select preferred recipes quickly (4.88/5).
- Superior Task Completion: In complex recipe modification and completion tasks, HealthGenie significantly outperformed the baseline (scoring 4.67 vs 3.67 out of 5), proving that the cyclic workflow successfully reduces cognitive load and interaction friction.
Limitations and Future Work
Despite its success, the authors note several challenges:
- Data Bias: The current dataset primarily relies on Western culinary traditions due to the linguistic complexities and translation challenges associated with mapping Eastern cuisines.
- Latency Trade-offs: To ensure high accuracy and robust intent detection, the system runs multiple internal LLM prompts, which introduces noticeable latency during interaction updates.
- Static KG Constraints: The pre-built graph cannot capture every unique user context.
Future Work: The authors propose moving toward Proactive Interaction (where the system anticipates user needs without explicit prompting) and Personalized KG Construction, allowing users to dynamically upload and ingest their own personal health documents, notes, and local recipes into the system.
Summary updated