58
Recipe Recommendation Reasoning on Features: Ensemble Topic Modeling Based Approach Mansura A. Khan, Ellen Rushe, Barry Smyth and David Coyle University College Dublin

Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Recipe Recommendation Reasoning on Features: Ensemble Topic Modeling Based

Approach

Mansura A. Khan, Ellen Rushe, Barry Smyth and David Coyle University College Dublin

Page 2: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Whyfoodrecommendationisinteresting?

Foodchoiceismultifaceted,multilevel,contextual,dynamic,integratedand

diverse-JefferySobal

Page 3: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

• Capturing user’s preference on food related aspects.

• Identifying coherent content and context information.

• Getting access to standardized food and nutrition data.

• Representation of Food Data

• Mapping health on recommendations.• Measuring healthiness of food item. • Measure user’s nutrient requirement.

• Diversity

• Coverage

• Pursue user to choose healthier options.

• Achieve continuous and regular user engagement.

CoreChallengesinFood/RecipeRecommendationDomain

Page 4: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Whatisarecipe?

Page 5: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

RecipeisaStory:Document

Title:YummymashedpotatoesIngredients:butter,cream,potatoes,saltandpepper

Instruction:cookpotatoesinbowlingwateruntiltenderbutstillfirm,Inasmallsaucepanheatbutterandcreamatlowheat.Usingapotatomasherslowlyblendcreammixtureintopotatoes.Seasonwithsaltandpeppertotaste.

Page 6: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

FrequencyCount:

Occurrenceoftermsineachdocument

Terms Frequency

Potatoes 4

saucepan 1

heat 2

title 1

…..

in 2

salt 2

tender 1

a 2

HowRSreadsarecipe?

Page 7: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Bagofwordrepresentation

Title:YummymashedpotatoesIngredients:potatoes,butter,cream,saltandpepper

Instruction:cookpotatoesinbowlingwateruntiltenderbutstillfirm,Inasmallsaucepanheatbutterandcreamatlowheat.Usingapotatomasherslowlyblendcreammixtureinto

potatoes.Seasonwithsaltandpeppertotaste.

a in potatoes salt low Saucepane but masher blend

2 2 4 2 1 1 1 1 1

Recipe 1

Page 8: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

HundredsofthousandsofDocuments:RecipeCorpus

Title:IrishstewIngredients:chucklambstewmeat,parsnips,broth,russetpotatoesInstruction

:cookpotatoesinbowlingwateruntiltenderbutstillfirm,Inaccsmallsaucepanheatbutterandcreamatlowheat.Usingapotatomasher

slowlyblendcreammixtureintopotatoes.Seasonwithsaltandpeppertotaste.Title:Gunniesbeefpie

Ingredients:flour,beef,gunnies,butter,salt,celery,beefstock,carrotInstruction:cookpotatoesinbowlingwateruntiltenderbutstillfirm,Ina

choppmall saucepanheatbutterandcreamatlowheat.Usingapotatomasherslowlyblendcreammixtureintopotatoes.Seasonwithsaltandpeppertotaste.

Title:YummymashedpotatoesIngredients:butter,cream,potatoessaltandpepper

Instruction:cookpotatoesinbowlingwateruntiltenderbutstillfirm,Inasmallsaucepanheatbutterandcreamatlowheat.Usingapotatomasherslowlyblendcreammixtureintopotatoes.Seasonwithsaltandpeppertotaste.

Page 9: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Recipe1,2,3

Bagofwordrepresentation

a in potatoes salt low saucepan but beef lamb

R1 2 2 4 2 1 1 1 0 0

R2 9 5 0 4 0 4 0 2 0

R3 6 4 3 3 0 2 0 0 3

Page 10: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Recommendingrecipes

a in potatoes salt low saucepan but beef lamb

R1 2 2 4 2 1 1 1 0 0

R2 9 5 0 4 0 4 0 2 0

R3 6 4 3 3 0 2 0 0 3

Page 11: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Understandingtherelevanceweight

a in potatoes salt low saucepan but beef lamb

R1 2 2 4 2 1 1 1 0 0

R2 9 5 0 4 0 4 0 2 0

R3 6 4 3 3 0 2 0 0 3

Page 12: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

DocumentFrequency:Occurrenceoftermsoverentirecorpus

Terms Frequency

Potatoes 7

saucepan 7

heat 9

Title 3

…..

in 11

salt 9

tender 1

a 17

Page 13: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

a in potatoes salt low saucepan but beef lamb

R10.493 0.871 2.296 1.045 1.477 0.632 1.477 0 0 0 0 0 0

R22.220 2.178 0.574 2.091 0 2.528 0 0 0 2.352 0 0 0

R31.480 1.742 1.722 1.568 0 1.264 0 0 0 0 0 0 3

a in potatoes salt low saucepan but beef lamb

R1 2 2 4 2 1 1 1 0 0

R2 9 5 0 4 0 4 0 2 0

R3 6 4 3 3 0 2 0 0 3

Tf-Idf Matrix

FrequencyMatrix

Page 14: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

• 10,661 ingredients• 230,872 recipes

Page 15: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

ItFeelsLikeEverythinghasbeenFiguredOut!Butjustnotyet!

Considering only highly frequent ingredients ?

Page 16: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

CorecontentsaroundFoodWhatinformationarerelevanttoFoodRecommender?

Page 17: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

TopicModeling

Topicmodelsaimtodiscoverthelatentsemanticstructureorthemeswithinacorpusofdocuments,whichcanbederived

fromco-occurrencesofwordsacrossthedocuments.-MarkBelford

Page 18: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Atopicmodeltypicallyconsistsofktopics,eachrepresentedbyarankedlistofstrongly-associatedterms(oftenreferredto

asa“topicdescriptor”).

TopicModel

Page 19: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

potatoes saucepan coco beef lambTopic1 6 .07 0 7 0

Topic2 6 1 0 0 4

Topic3 0 1 2 0 0

Topic1 Topic2 Topic3R1 .5 0 0

R2 0 0 0

R3 .7 0 0.002

R4 0 0 0

R5 0 0.3 0.9

R6 0 0 0

TopicModeling

Topic-TermMatrix

Recipe-TopicMatrix

Page 20: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Eachdocument/recipeinthecorpuscanbeassociatedwithoneormoretopics.

Page 21: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

WHV

Non- negativematrixfactorization

𝑛×𝑚 𝑛×𝑟 r×𝑚

Page 22: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Wa 𝑏

𝑉 ≈ 𝑊×𝐻

Itcanberewrittencolumnbycolumnas,

a~𝑊×𝑏

Page 23: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

potatoes saucepan coco beef lambTopic1 6 .07 0 7 0

Topic2 6 1 0 0 4

Topic3 0 1 2 0 0

Topic1 Topic2 Topic3R1 .5 0 0

R2 0 0 0

R3 .7 0 0.002

R4 0 0 0

R5 0 0.3 0.9

R6 0 0 0

TopicModeling

Topic-TermMatrix

Recipe-TopicMatrix

Page 24: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Outcomeofdifferenttopicmodelingsessionisonlyapproximatelyequal

Page 25: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Ensemble procedures seek to encourage diversity with a view to improving the quality of the information available in the integration phase

- AlexanderTopchy

EnsembleTopicModeling

Page 26: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Recipe Recommendation Reasoning on Features : Ensemble Topic Modeling Based Approach

Extracting significant Features(words) using Ensemble Topic modeling

l Tokenize , Lemmatize, Stem , customWordl Domain and corpus specific Stopwords generation l Ensemble Topic modelingl Selecting first 15 words from top 30 topics l Calculating the weight for the Unique 288 words from the previous step

Page 27: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Exampleofidentifiedtopics

Page 28: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

The final 288 Food Features

Which we later considered the basis of new data representation format and thereby recommendation algorithms

low-calorie

Page 29: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

ItFeelsLikeEverythinghasbeenFiguredOut!Butjustnotyet!

The final 288 Food Features

Page 30: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

The final 288 Food Features

Page 31: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Our proposed n-by-288 data representation format

Page 32: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Recommendation approaches

l ua is an userl rn is a new recipe l i is each feature in rn i=0,1,2....ml fi,ua is ua’s rating on i

Food Features based Recommendation (FFbR)

Page 33: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Recommendation approaches

l ua is an userl rn is a new recipe l i is each ingredient in rn i=0,1,2....ml fi,ua is ua’s rating on il wi is significance score of each

feature

Weighted Food Features based Recommendation (WFFbR)

Page 34: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Recommendation approaches

l ua is an userl i is each neighbor of ua i=0,1,2....nl fb,i is neighbor i’s rating on a feature fbl We calculate fr,ua using FFbR after learning ua’s rating on all unknown feature

fb using FFbCF

Food Features based Collaborative Filtering (FFbCF)

Page 35: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Recommendation approaches

Content Based(CB)

l ua is an userl rn is a new recipe l i is each ingredient in rn i=0,1,2....ml Ingi,ua is ua’s rating on i

Page 36: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

User modeling and testing the recommendation algorithms

Page 37: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

UserStudy:4recommendersand48user

Users’spreadovergendercategory

FemaleMaleOther

Users’spreadoveractivitycategory

Page 38: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

UserStudy:4recommendersand48user

Users’spreadoveragerange

Participantnumber

Age

Page 39: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

UserStudy:4recommendersand48user

Page 40: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

UserStudy:4recommendersand48user

Page 41: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

UserStudy:4recommendersand48user

Page 42: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

UserStudy:4recommendersand48user

Page 43: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

UserStudy:4recommendersand48user

Page 44: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

UserStudy:4recommendersand48user

Page 45: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

UserStudy:4recommendersand48user

Page 46: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

UserStudy:

UserStudy:4recommendersand48user

Page 47: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

UserStudy:UserStudy:4recommendersand48user

https://www.youtube.com/watch?v=ujaB0FiqRwk

D

Demoonourdevelopedsystemcouldbefoundon

Page 48: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Results

Coverage User preference

Page 49: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Identifying user’s food requirement and restriction

Results

Page 50: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

RecommendingHealthyRecipe??

Page 51: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

RecommendingHealthyRecipe??

Page 52: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Lookingforusergroupwithhealthierlifestyle??

Page 53: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Users’spreadoverdifferentHealthinessscale

Lookingforusergroupwithhealthierlifestyle??

Page 54: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Positivelycorrelatedfeaturestohealthierusergroups

Page 55: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Negativelycorrelatedfeaturestohealthierusergroups

Page 56: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Limitation

Page 57: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Featurework

Page 58: Recipe Recommendation Reasoning on Features: Ensemble ... · Core Challenges in Food/Recipe Recommendation Domain. What is a recipe? Recipe is a Story : Document Title: Yummy mashed

Thank You