Foodbot: A Goal-Oriented Just-in-Time Healthy Eating Interventions Chatbot

Philips Kokoh Prasetyo, Palakorn Achananuparp, Ee-Peng Lim · DOI

TL;DR

This paper introduces Foodbot, a chatbot designed to address the shortcomings of existing mobile health apps for healthy eating. By leveraging a large food knowledge graph and a natural language interface, Foodbot offers goal-oriented, just-in-time interventions to help users track their food intake and achieve dietary goals more effectively.

What Problem Does This Paper Address?

Many popular mobile health (mHealth) applications for promoting healthy eating, particularly food journaling apps, suffer from significant design flaws. These issues include the tediousness of manual food logging, insufficient coverage of food items in their databases (especially local or restaurant-specific dishes), and a lack of emphasis on setting and tracking healthy dietary goals beyond just calorie or weight targets. These limitations hinder user engagement and the overall effectiveness of these apps in fostering sustainable healthy eating habits.

Methods

Foodbot is a chatbot-based mHealth application built on an open-source framework. Its core components include:

  • Natural-Language User Interface: Foodbot utilizes automatic speech recognition and a mobile messaging interface (accessible via Google Assistant) to allow users to log food intake through simple voice commands or text inputs, reducing the burden of manual entry.
  • Large-Scale Food Knowledge Graph: A key innovation is the use of a data-driven, open-source food knowledge graph. This graph is constructed by aggregating data from online food delivery services, restaurant review sites, and online grocery platforms, aiming for comprehensive coverage of local food items. It contains approximately 177,700 unique entities.
  • Goal-Setting and Just-in-Time (JIT) Interventions: Users can set personalized dietary goals (e.g., weekly fish intake, daily water intake). Foodbot monitors progress towards these goals and provides JIT notification prompts, interactive dialogues, and personalized recommendations to guide user behavior. This includes nudges before meal times and end-of-day progress reports.

The system architecture involves a conversation engine (Dialogflow for intent detection, entity recognition, and dialog state management, bridged by a webhook), core services (for food logging, recommendation, and goal setting), and a data store (MySQL for user data and Elasticsearch for the food knowledge graph).

Datasets

The paper does not explicitly detail datasets used for training machine learning models beyond mentioning that Dialogflow models were trained with 20-30 examples per intent. The primary data source for Foodbot's functionality is the constructed food knowledge graph, which contains approximately 177,700 unique entities. This graph is built from scraped data from online food delivery services (Deliveroo, Foodpanda), restaurant review sites (Burpple), and online grocery sites (NTUC FairPrice). Generic food items are also included from a food taxonomy ([16]).

Key Insights and Ideas

  • The Power of JIT Interventions: The paper highlights that timely, context-aware nudges (Just-in-Time) are crucial for behavior change, especially in areas like healthy eating where motivation can fluctuate.
  • Knowledge Graphs as a Foundation: A large-scale, open-source food knowledge graph is essential for overcoming the data coverage limitations of traditional food journaling apps, making dietary tracking more accurate and comprehensive.
  • Simplifying User Input: Replacing tedious manual logging with natural language interfaces (voice and text) significantly lowers the barrier to entry for users, potentially increasing engagement and adherence.
  • Goal-Oriented vs. Calorie-Focused: The emphasis on broader dietary goals (e.g., intake of specific food categories like fish) rather than solely calorie or weight targets is a more holistic approach to promoting healthy eating.

Key Results

The paper focuses on the system's design and functionality rather than presenting quantitative evaluation results. The key "results" are the successful integration of its components to provide:

  • A natural-language interface for food logging.
  • A comprehensive food knowledge graph with extensive local food item coverage.
  • A goal-setting mechanism with JIT interventions for personalized feedback and reminders.

The dialogue examples in Figure 1 illustrate the system's ability to log food, track progress towards goals (e.g., fish intake), and respond to user queries.

Limitations and Future Work

Limitations:

  • The current personalized recommendation module uses a simple rule-based algorithm, which, while accurate, may lack novelty.
  • The current approach to tracking servings for goals is based on keyword frequency and food categories, not precise nutritional values (e.g., calories).
  • The paper acknowledges that user studies are needed to evaluate the usability and effectiveness of Foodbot.

Future Work:

  • Conduct user studies to evaluate Foodbot's usability and effectiveness in promoting healthy lifestyles.
  • Enrich the food knowledge graph with ingredients and nutritional information to improve recommendation quality and expand goal-setting capabilities.
  • Utilize natural-language generation (NLG) models to enhance response generation, enabling more personalized and persuasive interactions.
  • Integrate more sophisticated recommendation algorithms and contextual information.

Summary updated

Abstract

Recent research has identified a few design flaws in popular mobile health (mHealth) applications for promoting healthy eating lifestyle, such as mobile food journals. These include tediousness of manual food logging, inadequate food database coverage, and a lack of healthy dietary goal setting. To address these issues, we present Foodbot, a chatbot-based mHealth application for goal-oriented just-in-time (JIT) healthy eating interventions. Powered by a large-scale food knowledge graph, Foodbot utilizes automatic speech recognition and mobile messaging interface to record food intake. Moreover, Foodbot allows users to set goals and guides their behavior toward the goals via JIT notification prompts, interactive dialogues, and personalized recommendation. Altogether, the Foodbot framework demonstrates the use of open-source data, tools, and platforms to build a practical mHealth solution for supporting healthy eating lifestyle in the general population.
BibTeX
@inproceedings{prasetyo2020foodbot,
  author = {Philips Kokoh Prasetyo and Palakorn Achananuparp and Ee-Peng Lim},
  title = {{Foodbot: A Goal-Oriented Just-in-Time Healthy Eating Interventions Chatbot}},
  booktitle = {PervasiveHealth},
  year = {2020},
  url = {https://openreview.net/forum?id=L230vaUftW},
}
Figure