NutriRAG: unleashing the power of large language models for food identification and classification through retrieval methods
Top Cited Papers
- 31 January 2026
- journal article
- Published by Oxford University Press (OUP) in Journal of the American Medical Informatics Association
- Vol. 33 (4) , 802-811
Abstract
Objectives: This study explores the use of advanced natural language processing (NLP) techniques to enhance food classification and dietary analysis using raw text input from a diet tracking app. Materials and Methods: The study was conducted in 3 stages: data collection, framework development, and application. Data were collected from a 12-week randomized controlled trial (RCT: NCT04259632), in which participants recorded their meals in free-text format using the myCircadianClock app. Only de-identified data were used. We developed nutrition-focused retrieval-augmented generation (NutriRAG), an NLP framework that uses a retrieval-augmented generation approach to enhance food classification from free-text inputs. The framework retrieves relevant examples from a curated database and then leverages large language models, such as GPT-4, to classify user-recorded food items into predefined categories without fine-tuning. NutriRAG was then applied to data from the RCT, which included 77 adults with obesity recruited from the Twin Cities metro area and randomized into 3 intervention groups: time-restricted eating (TRE, 8-hs eating window), caloric restriction (CR, 15% reduction), and unrestricted eating. Results: NutriRAG significantly enhanced classification accuracy and helped to analyze dietary habits, as noted by the retrieval-augmented GPT-4 model achieving a micro-F1 score of 82.24. Both interventions showed dietary alterations: CR participants ate fewer snacks and sugary foods, while TRE participants reduced nighttime eating. Conclusion: By using artificial intelligence, NutriRAG marks a substantial advancement in food classification and dietary analysis of nutritional assessments. The findings highlight NLP’s potential to personalize nutrition and manage diet-related health issues, suggesting further research to expand these models for wider use.Keywords
Funding Information
- National Center for Complementary and Integrative Health (R01AT009457)
- National Center for Complementary and Integrative Health (U01AT012871)
- National Institute on Aging (R01AG078154)
- National Cancer Institute (R01CA287413)
- National Institute of Diabetes and Digestive and Kidney Diseases (R01DK115629)
- National Institute of Diabetes and Digestive and Kidney Diseases (R01DK124484)
- UMN Institute for Diabetes, Obesity and Metabolism Pilot and Feasibility
- National Institutes of Health
This publication has 36 references indexed in Scilit:
- Time‐restricted eating, caloric reduction, and unrestricted eating effects on weight and metabolism: a randomized trialObesity, 2025
- Deep neural network for food image classification and nutrient identification: A systematic reviewReviews in Endocrine and Metabolic Disorders, 2023
- Natural language processing and machine learning approaches for food categorization and nutrition quality prediction compared with traditional methodsThe American Journal of Clinical Nutrition, 2022
- Behavioral Counseling Interventions to Promote a Healthy Diet and Physical Activity for Cardiovascular Disease Prevention in Adults Without Known Cardiovascular Disease Risk FactorsJAMA, 2022
- Deep learning accurately predicts food categories and nutrients based on ingredient statementsFood Chemistry, 2022
- Dietary Assessment and Nutritional Analysis Using Deep Learning2022
- Phytotherapy and combined nanoformulations as a promising disease management in aquaculture: a reviewAquaculture International, 2022
- Time‐Restricted Eating Effects on Body Composition and Metabolic Measures in Humans who are Overweight: A Feasibility StudyObesity, 2020
- A partnership for public health: USDA branded food products databaseJournal of Food Composition and Analysis, 2017
- A Smartphone App Reveals Erratic Diurnal Eating Patterns in Humans that Can Be Modulated for Health BenefitsCell Metabolism, 2015