id string | image_0 image | image_1 image | image_2 image | image_3 image | image_4 image |
|---|---|---|---|---|---|
00038ab9 | |||||
0003fe3c | |||||
0004dfc1 | |||||
0005d3ec | |||||
000ad5dd | |||||
000d7489 | |||||
000f37b4 | |||||
000f7b92 | |||||
0016472a | |||||
001b0ee6 | |||||
001b9800 | |||||
00211c8f | |||||
0022b386 | |||||
0025eefa | |||||
0028cde9 | |||||
0033a3f2 | |||||
0034a9bd | |||||
00371fd9 | |||||
00375b6c | |||||
003b17f1 | |||||
003caf82 | |||||
003e8ac1 | |||||
003f82e1 | |||||
003fdd94 | |||||
004331b1 | |||||
00465a98 | |||||
004695e4 | |||||
004a4264 | |||||
004af04b | |||||
004bb71c | |||||
004f1d16 | |||||
0051e5bb | |||||
00527fcf | |||||
0053b7ff | |||||
0057e1f8 | |||||
005e6492 | |||||
0063998a | |||||
006709ee | |||||
0068c32c | |||||
006b3ec6 | |||||
006b9db2 | |||||
006cd8a8 | |||||
006d52e4 | |||||
006fed13 | |||||
007494cd | |||||
007f8da5 | |||||
00858893 | |||||
00896a06 | |||||
009b1bed | |||||
009efc00 | |||||
00a22525 | |||||
00a50782 | |||||
00a5cd30 | |||||
00b6105a | |||||
00b8a8b4 | |||||
00ba6d88 | |||||
00ba7c51 | |||||
00bec267 | |||||
00bf6655 | |||||
00c269b0 | |||||
00c54eaa | |||||
00c83695 | |||||
00c960d8 | |||||
00ca70cf | |||||
00cdd9ce | |||||
00d12f38 | |||||
00d229b1 | |||||
00d3f456 | |||||
00d47203 | |||||
00d58387 | |||||
00d67c9b | |||||
00d6b861 | |||||
00da4df9 | |||||
00dec49c | |||||
00e15adb | |||||
00ec1470 | |||||
00f21d9c | |||||
00f6c50f | |||||
00faa22c | |||||
00fc597a | |||||
00fd1afe | |||||
00fd6a09 | |||||
01029b37 | |||||
010af80f | |||||
010e5ecf | |||||
0112d325 | |||||
01135344 | |||||
01135ca6 | |||||
0113db2b | |||||
0115a56c | |||||
01173a88 | |||||
01175191 | |||||
0118263b | |||||
011c62d3 | |||||
012085f4 | |||||
0127c50f | |||||
012ddfc6 | |||||
013225b8 | |||||
01322a46 | |||||
013b6879 |
(For transparency, this markdown content is directly taken from original MISKG github page - https://github.com/kanak8278/MISKG/blob/main/README.md)
Multimodal Ingredient Substitution Knowledge Graph for Personalized Dietary Recommendations (MISKG)
Abstract
Ingredient substitution is essential in adapting recipes to meet individual dietary needs, preferences, and ingredient availability. We introduce a Multimodal Ingredient Substitution Knowledge Grap[...]
File Descriptions and Purposes
competition/original_ingredients_with_id.csv
- Purpose: Provides a list of original, unprocessed ingredient names.
- Columns: id (original_id), original
- Example: 59e6c716,ababai
competition/processed_ingredients_with_id.csv
- Purpose: Offers a cleaned, standardized list of ingredient names.
- Columns: id (processed_id), processed
- Example: d5a8268e,ababai
competition/original_to_processed_mapping.csv
- Purpose: Maps original ingredients to their processed counterparts.
- Columns: original_id, processed_id, original, processed
- Example: 59e6c716,d5a8268e,ababai,ababai
- Note: Some original ingredients may map to an empty string in processed form.
competition/edamam.json
Purpose: Provides nutritional information for ingredients.
Key: processed_id
Example fields: ingredient_name, food_id, category, nutrients, label, weight, uri
Example:
"b8b2e121": { "ingredient_name": "fish sauce", "food_id": "food_ahlu6u3ab8bu1wap7cbqua3s1quk", "category": "Generic foods", "nutrients": { "ENERC_KCAL": 35.0, "PROCNT": 5.06, "FAT": 0.01, "CHOCDF": 3.64, "FIBTG": 0.0 }, "label": "Serving", "weight": "5.0", "uri": "http://www.edamam.com/ontologies/edamam.owl#Measure_serving" }
competition/ingredient_to_flavordb.json
Purpose: Maps ingredients to flavor profiles from FlavorDB.
Key: processed_id
Example fields: ingredient, flavordb_id, flavordb, cosine_similarity
Example:
"a5bd8077": { "ingredient": "abalone", "flavordb_id": 38, "flavordb": "abalone", "cosine_similarity": 1.0 }
competition/processed_id_recipe1m_map.json
Purpose: Links ingredients to recipes in the Recipe1M dataset.
Key: processed_id
Example fields: name, original_id, recipe_ids (list of recipe IDs using this ingredient)
Example:
"76b8b630": { "name": "penne", "original_id": "558b7f02", "recipe_ids": ["000018c8a5", "006a7c00c4", "00ab15a16a", ...] }
competition/substitution_pairs.json
Purpose: Defines substitution relationships between ingredients.
Fields: ingredient, substitution, ingredient_original_id, substitution_original_id, ingredient_processed_id, substitution_processed_id
Example:
{ "ingredient": "arrowroot", "substitution": "flour", "ingredient_original_id": "7c369462", "substitution_original_id": "27450ef2", "ingredient_processed_id": "f41030c9", "substitution_processed_id": "4cf0bf0f" }
competition/wikidata_data.json
Purpose: Offers additional encyclopedic information about ingredients.
Key: processed_id
Example fields: type, id, labels, descriptions, claims
Example: (Abbreviated for brevity)
"d5a8268e": { "type": "item", "id": "Q31780235", "labels": { "en": {"language": "en", "value": "AbΔbΔi"} }, "descriptions": { "en": {"language": "en", "value": "mountain in Pakistan"} }, "claims": { ... } }
competition/conceptnet.json
Purpose: Provides semantic relationships and common-sense knowledge about ingredients.
Key: processed_id
Example fields: @context, @id, edges (list of related concepts and relationships)
Example: (Abbreviated for brevity)
"a5bd8077": { "@context": ["http://api.conceptnet.io/ld/conceptnet5.7/context.ld.json"], "@id": "/c/en/abalone", "edges": [ { "@id": "/a/[/r/Synonym/,/c/fr/haliotis/n/wn/animal/,/c/en/abalone/n/wn/animal/]", "rel": {"@id": "/r/Synonym", "label": "Synonym"}, "start": {"@id": "/c/fr/haliotis/n/wn/animal", "label": "Haliotis"}, "end": {"@id": "/c/en/abalone/n/wn/animal", "label": "abalone"} }, ... ] }
competition/images/
Purpose: Contains multiple visual representations for each ingredient from processed_ingredients_with_id.csv
Structure: Organized by processed_id with multiple images per ingredient
Format: JPG/PNG files
Content: Up to 5 different images per ingredient showcasing various views/preparations
competition/images/ βββ a5bd8077/ # Ingredient folder (processed_id) β βββ 0.jpg # First image perspective β βββ 1.jpg # Second image perspective β βββ 2.jpg # Third image perspective β βββ 3.jpg # Fourth image perspective β βββ 4.jpg # Fifth image perspective β βββ b8b2e121/ # Another ingredient folder β βββ 0.jpg β βββ 1.jpg β βββ 2.jpg β βββ 3.jpg β βββ 4.jpg β βββ ... # Additional ingredient foldersSpecifications:
- Each ingredient has its own directory named with its processed_id
- Contains up to 5 images per ingredient (0.jpg to 4.jpg)
- Images showcase different angles, preparations, or variations of the ingredient
- Consistent naming convention: numerical index from 0 to 4
Connecting the Data
To fully utilize this dataset, you'll need to connect information across multiple files. Here's a step-by-step guide:
Start with an ingredient (either original or processed):
- If starting with an original ingredient, use
original_ingredients_with_id.csvto find its original_id. - Use
original_to_processed_mapping.csvto find the corresponding processed_id.
- If starting with an original ingredient, use
With the processed_id, you can now access:
- Nutritional information from
edamam.json - Flavor profiles from
ingredient_to_flavordb.json - Recipe connections from
processed_id_recipe1m_map.json - Encyclopedic information from
wikidata_data.json - Semantic relationships from
conceptnet.json - Visual representations from the images folder:
- Access multiple views:
images/{processed_id}/{index}.jpgwhere index ranges from 0 to 4 - Each ingredient has up to 5 different visual perspectives
- Images can be used for visual similarity comparison and ingredient identification.
- Access multiple views:
- Nutritional information from
For substitutions:
- Use
substitution_pairs.jsonto find potential substitutes for your ingredient. - Each substitute will have its own processed_id, which you can use to gather its information following steps 1-2.
- Use
Complete Data Relationship Diagram
graph TD
A[original_ingredients_with_id.csv] -->|original_id| B[original_to_processed_mapping.csv]
B -->|processed_id| C[processed_ingredients_with_id.csv]
C -->|processed_id| D[edamam.json]
C -->|processed_id| E[ingredient_to_flavordb.json]
C -->|processed_id| F[processed_id_recipe1m_map.json]
C -->|processed_id| G[wikidata_data.json]
C -->|processed_id| H[conceptnet.json]
C -->|ingredient_processed_id| I[substitution_pairs.json]
C -->|processed_id| N[images/]
I -->|substitution_processed_id| C
F -->|recipe_ids| J[Recipe1M Dataset]
E -->|flavordb_id| K[FlavorDB]
G -->|wikidata_id| L[Wikidata]
H -->|conceptnet_id| M[ConceptNet]
License
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) License - see the LICENSE & TERMS OF USE for details.
Citation
If you use this work, please cite as:
@misc{kanak2023miskg,
author = {Kanak Raj and Revathy Venkataramanan and Deeptansh Sharma and Hyunwook Kim and Amit Sheth},
title = {Multimodal Ingredient Substitution Knowledge Graph},
year = {2023},
howpublished = {\url{https://github.com/kanak8278/MISKG}},
}
- Downloads last month
- 86