Estimating Nutrient Composition of Packaged Foods Using Natural Language Processing and Optimization Modeling
Mélina Côté1,2, Wiam Hamadi3, Catherine Laramée1
1Centre Nutrition, santé et société (NUTRISS), Institut sur la nutrition et les aliments fonctionnels (INAF), Université Laval, Québec, QC, Canada.
This study developed a novel method using natural language processing (NLP) and optimization modeling to estimate the nutrient content of packaged foods. The approach reliably generates complete nutrient profiles, enhancing dietary assessment accuracy.
Area of Science:
- Nutritional Science
- Computational Biology
- Food Science
Background:
- Food composition databases are crucial for dietary assessment but often lack detailed information on specific packaged foods.
- Generic food data limits the accuracy of nutritional analysis and dietary intake studies.
Purpose of the Study:
- To develop and validate a method for estimating the complete nutrient composition of packaged foods.
- To leverage natural language processing (NLP) and optimization modeling for enhanced food data generation.
Main Methods:
- Utilized Nutrition Facts tables (NFTs) and ingredient lists from 5371 packaged foods.
- Employed an NLP algorithm to match ingredients to the Canadian Nutrient File, assessing match quality via cosine similarity.
- Applied an optimization model to estimate ingredient proportions and reverse-engineer nutrient data from NFTs.
Main Results:
- Achieved high-quality ingredient matches (≥0.9 cosine similarity) for over 55% of items.
- Estimated nutrient values showed median relative errors below 20% across most food categories, aligning with Health Canada's acceptable variance.
- Demonstrated reliable nutrient profile generation for a wide array of packaged foods.
Conclusions:
- A combined NLP and optimization modeling approach reliably estimates ingredient proportions in packaged foods.
- This method enables the creation of comprehensive nutrient profiles, improving dietary assessment tools.
- The findings support the use of computational methods for expanding food composition databases.
Related Concept Videos
Key Elements for Plant Nutrition
Optimal Foraging
Methods of Medium Optimization
Predicting Products: Substitution vs. Elimination
The following factors can influence the mechanisms competing against each other:
Estimation of the Physical Quantities
Model-Independent Approaches for Pharmacokinetic Data: Noncompartmental Analysis
One important characteristic of noncompartmental analyses is that drug exposure increases proportionally with increasing doses. This relationship...

