A Bilingual AI-Based Chatbot for Nutrition Education in a Food Is Medicine Intervention for High-Risk Pregnant Women: Design and Development Study.
Lorena Macias-Navarro, Nalini Ranjit, Gregory W Bounds, Brendon A Providence, Yesmeena Shmaitelly, Naomi M Tice +1 more
JMIR formative research
Abstract
Conversational agents (artificial intelligence [AI]-based chatbots) offer a novel approach to health interventions by providing personalized, adaptive interactions that improve over time based on user engagement. In nutrition education, given the wide variation in knowledge, skills, and abilities across participants, AI-based chatbots have the potential to enhance accessibility, engagement, and behavior change. Food is Medicine (FIM) interventions, which aim to improve food security and diet quality among multicultural, at-risk populations, often face challenges related to sustained engagement and use. This paper describes the design, development, and iterative refinement of a bilingual AI-driven nutrition chatbot integrated into an FIM intervention for high-risk pregnant women receiving care at obstetric clinics in Houston, Texas. The chatbot was developed using an iterative process informed by behavioral theory, human-centered design (HCD), and plan-do-study-act (PDSA) quality improvement cycles. The conversational agent was embedded within an ongoing 2-arm randomized controlled trial (N=200) comparing standard FIM nutrition education to FIM plus AI-driven nutrition chatbot support. HCD activities took place prior to deployment and involved community advisory group members and implementation stakeholders. Postdeployment refinements were guided by 2 PDSA cycles and informal question-and-answer sessions conducted with intervention arm participants. Qualitative feedback was collected using structured scripts to identify facilitators of and barriers to chatbot engagement. The chatbot was developed using the GPT-3.5 Turbo application programming interface. An initial prototype built in Python using Gradio enabled rapid testing but lacked flexibility for modifications. To improve scalability and logging capabilities, the system was rebuilt using PHP, HTML, JavaScript, and SQL. To further understand usage patterns, participants who interacted with the chatbot at least on