Code Monkey home page Code Monkey logo

healthy-food-subs's Introduction

Automated Identification of Food Substitutions Using Knowledge Graph Embeddings

This study presents an approach to find alternative food products with comparable or more favourable nutritional profiles that fall within a similar product category using knowledge graph embeddings to build a recommender system that suggests healthier substitutes for the ingredients and food products to its user. The knowledge graph of food is based on two open data sets, namely OpenFoodFacts, which is a food products database, and USDA, which provides nutritional information of food products. Furthermore, due to the low quality and unavailability of the existing ground truths, we curated an expert-verified data set for the evaluation of food substitution recommendations.

Methodology

The first step was to construct knowledge graph data in RDF format and create semantically interlinked food knowledge by linking OpenFoodFacts and USDA. We used Limes to create relations between the food ingredients of USDA and OpenFoodFacts. Moreover, the KG was enriched by tagging the ingredients based on the nutritional content we calculated according to the U.S. FDA's Recommended Dietary Allowances (RDAs). The tags that indicate the presence of rich mineral or vitamin content were added to the knowledge graph. Each food was tagged as high in a nutrient if the level of that nutrient contained in the food per serving is more than 30% of its respective RDA.

In the second step, food substitution recommendations were extracted using the knowledge graph by applying different graph embedding approaches, namely, TransE, Complex and RDF2Vec. We applied TransE, Complex, and RDF2Vec models on 3 different subsets of the knowledge graph.

Finally, the quality of the KGEs were assessed against a newly created ground truth, which was verified by two domain experts and we evaluated the performance of the models by using Mean Reciprocal Rank (MRR), Mean Average Precision (MPA), and Recall Rate at k (RR@k).

healthy-food-subs's People

Contributors

rcelebi avatar jloe2911 avatar

Stargazers

Jialiang Shi avatar  avatar Yvan Satyawan avatar Ensar Emir EROL avatar Nicolas Hubert avatar

Watchers

James Cloos avatar Vincent Emonet avatar  avatar  avatar Pedro V avatar Kody Moodley avatar

Forkers

pasicdino

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.