ResearchJournal of the American Medical Informatics Association · Mar 15, 2026
Exploring approaches to computational representation and classification of user-generated meal logs
Hu G, Anand A, Desai PM, Urteaga I, Mamykina L
Abstract
Objective
This study examined the use of machine learning (ML) and domain-specific enrichment in patient-generated health data, in the form of free-text meal logs, to classify meals on alignment with different nutritional goals. Materials and methods
We used a dataset of over 3000 meal records collected by 114 individuals from a diverse, low-income community in a major US city using a mobile app. Registered dietitians (RDs) provided expert judgment for meal-goal alignment, used as the "gold-standard" for evaluation. Using text embeddings (TF-IDF and BERT) and domain-specific enrichment information (ontologies, ingredient parsers, and macronutrient contents) as inputs, we evaluated the performance of logistic regression and multilayer perceptron classifiers using accuracy, precision, recall, and F1 score against the gold standard and the individual's self-assessment. Results
On average, individuals who logged meals achieved 0.576 accuracy of meal-goal alignment self-assessments. Even without enrichment, ML outperformed individual's self-assessments, with accuracies within 0.726-0.841 for different goals. The best-performing combination of ML classifier with enrichment achieved even higher accuracies (0.814-0.902). In general, ML classifiers with enrichment of parsed ingredients, food entities, and macronutrients information performed well across multiple nutritional goals, but there was variability in the impact of enrichment and classification algorithm on accuracy of classification for different nutritional goals. Conclusion
ML can utilize unstructured free-text meal logs and reliably classify whether meals align with specific nutritional goals, exceeding individuals' self-assessments, especially when incorporating nutrition domain knowledge. Our findings highlight the potential of ML analysis of patient-generated health data to support patient-centered nutrition guidance in precision healthcare.
Topics
Humans; Meals; Classification Algorithms; Machine Learning; Patient Generated Health Data; Mobile Applications; Multilayer Perceptrons; Logistic Models; Self-Assessment
DOI: 10.1093/jamia/ocaf200 · PubMed: 41830956
Spotted a mistake? Suggest a correction
More in Digital Health & AI
ResearchLancet Digit Health · Nov 23, 2026 · Digital Health & AI
ClinicalAge, a framework for modelling ageing trajectories from longitudinal electronic health records in the UK: a model development and validation study
ResearchLancet Digit Health · Nov 23, 2026 · Digital Health & AI
Foundation artificial intelligence models for health recognition by use of face photographs (FAHR-Face): a model development and validation study
ResearchLancet Digit Health · Nov 23, 2026 · Digital Health & AI
A prognostic model for use at labour onset to estimate the risk of severe fetal compromise at birth: a retrospective, model development and validation study
ResearchNPJ Digit Med · Nov 21, 2026 · Digital Health & AI
ECG foundation models for cardiovascular screening in a cohort of young competitive athletes
ResearchJ Med Internet Res · Nov 20, 2026 · Digital Health & AI
Medical Reasoning in Large Language Models: Development and Evaluation of the MedEvalArena Benchmark