SlideShare a Scribd company logo
Recipe	
  search
Recipe	
  search
BakeSearch
Make	
  sense	
  of	
  recipes	
  and	
  bake	
  like	
  a	
  pro
Disambigua=ng	
  searches

Classic	
  Chocolate	
  chip	
  cookies
Pa6y’s	
  best	
  chocolate	
  cookies       Bigrams	
  
Peanut	
  bu6er	
  cookies                      	
  +	
  
Sugar	
  cookies	
  with	
  fros=ng          Trigrams
Gooey	
  bu6er	
  cookies
Banana	
  pumpkin	
  cookies
Black	
  and	
  white	
  cookies
Halloween	
  cookies
                                          Candidate	
  labels
Domain-­‐specific	
  data	
  munging
•  Ingredients:	
  nltk	
  dic=onary	
  
•  Domain	
  knowledge	
  
•  Unit	
  parsing	
  
Defining	
  distance	
  measure
           Recipe	
  1                  Recipe	
  2
               Ingr1	
  
                                           Ingr4	
  
               Ingr2	
  
                                           Ingr9	
  
               Ingr3	
  
                                          Ingr12	
  
               Ingr4




                       Ingredients	
  in	
  both	
  recipes
Jaccard	
  =
                      Ingredients	
  in	
  either	
  recipe
Challenges	
  of	
  big	
  data
•  Most	
  clustering	
  algorithms	
  (k-­‐means,	
  
   hierarchical,	
  graph-­‐based)	
  take	
  >30	
  seconds	
  
Challenges	
  of	
  big	
  data
                   •  Most	
  clustering	
  algorithms	
  (k-­‐means,	
  
                      hierarchical,	
  graph-­‐based)	
  take	
  >30	
  seconds	
  
                   •  40k	
  baking	
  recipes,	
  4k	
  ingredients	
  

            4000


            3000
# Recipes




            2000


            1000


               0
                   0    10       20         30     40
                         # Ingredients in recipe
Challenges	
  of	
  big	
  data
                   •  Most	
  clustering	
  algorithms	
  (k-­‐means,	
  
                      hierarchical,	
  graph-­‐based)	
  take	
  >30	
  seconds	
  
                   •  40k	
  baking	
  recipes,	
  4k	
  ingredients	
  

            4000


            3000
# Recipes




            2000

                                                                   900

            1000
                                                   # ingredients




                                                                   600
               0
                   0    10       20         30                     40
                         # Ingredients in recipe                   300




                                                                     0

                                                                         1   2   5   10    50     100              500      1000   5000   10000
                                                                                          # recipes containing ingredient
Challenges	
  of	
  big	
  data
•  Most	
  clustering	
  algorithms	
  (k-­‐means,	
  
   hierarchical,	
  graph-­‐based)	
  take	
  >30	
  seconds	
  
•  40k	
  baking	
  recipes,	
  4k	
  ingredients	
  
•  Pre-­‐calculate	
  jaccard	
  distances	
  between	
  every	
  
   pair	
  of	
  recipes	
  (40k	
  =mes	
  40k	
  =	
  1.6	
  billion	
  
   pairs!)	
  
Challenges	
  of	
  big	
  data
•  Most	
  clustering	
  algorithms	
  (k-­‐means,	
  
   hierarchical,	
  graph-­‐based)	
  take	
  >30	
  seconds	
  
•  40k	
  baking	
  recipes,	
  4k	
  ingredients	
  
•  Pre-­‐calculate	
  jaccard	
  distances	
  between	
  every	
  
   pair	
  of	
  recipes	
  (40k	
  =mes	
  40k	
  =	
  1.6	
  billion	
  
   pairs!)	
  
•  MapReduce	
  on	
  Amazon	
  EMR	
  
•  Preload	
  into	
  networkx	
  graph
Cluster	
  recipes	
  based	
  on	
  ingredient
Cluster	
  recipes	
  based	
  on	
  ingredient
Find	
  enriched/depleted	
  ingredients




                            abs(Log-­‐2	
  ra=o)	
  >2
Tools
     Back	
  end                  Analysis                Front	
  end
•  Yummly	
  API	
           •  Numpy,	
  Scipy	
     •  HTML/CSS/
•  Python	
                  •  Nltk,	
                  JavaScript	
  
    –  Pycurl	
                 networkx	
            •  Twi6er	
  
    –  Nltk	
  wordnet	
                                 Bootstrap	
  
                             •  Python,	
  R	
  
•  MySQL	
                                            •  Flask	
  
                             •  Amazon	
  EMR	
  
                                                      •  Amazon	
  AWS	
  
Diane	
  Wu
•  PhD	
  Gene=cs,	
  Stanford	
  University,	
  CA	
  
•  BSc	
  Compu=ng	
  Science,	
  Simon	
  Fraser,	
  Canada	
  
Diane	
  Wu
•  PhD	
  Gene=cs,	
  Stanford	
  University,	
  CA	
  
•  BSc	
  Compu=ng	
  Science,	
  Simon	
  Fraser,	
  Canada	
  
Diane	
  Wu
•  PhD	
  Gene=cs,	
  Stanford	
  University,	
  CA	
  
•  BSc	
  Compu=ng	
  Science,	
  Simon	
  Fraser,	
  Canada	
  

More Related Content

Viewers also liked

Bio heroes final report
Bio heroes  final reportBio heroes  final report
Bio heroes final reportDiane Wu
 
රියාලුස් සාලිහීන්-සුබාරංචි පැවසීමත්,ප්‍රාර්ථනා කිරීමත්
රියාලුස් සාලිහීන්-සුබාරංචි පැවසීමත්,ප්‍රාර්ථනා කිරීමත්රියාලුස් සාලිහීන්-සුබාරංචි පැවසීමත්,ප්‍රාර්ථනා කිරීමත්
රියාලුස් සාලිහීන්-සුබාරංචි පැවසීමත්,ප්‍රාර්ථනා කිරීමත්
riyalussaaliheen
 
Powrtron corporation 11
Powrtron corporation 11Powrtron corporation 11
Powrtron corporation 11
Mior Azwan
 
Proliferative phase
Proliferative phaseProliferative phase
Proliferative phaseLalit Karki
 
Jc synthetic biology 6-15-2012
Jc synthetic biology   6-15-2012Jc synthetic biology   6-15-2012
Jc synthetic biology 6-15-2012Diane Wu
 
2013 SDSSA Photo of the Year Final Fifteen
2013 SDSSA Photo of the Year Final Fifteen2013 SDSSA Photo of the Year Final Fifteen
2013 SDSSA Photo of the Year Final Fifteen
Carol McFarland McKee
 
Reproductive system
Reproductive systemReproductive system
Reproductive systemGian Gonzaga
 
Affin Bank Berhad BSC and Business Intelligence tools
Affin Bank Berhad BSC and Business Intelligence toolsAffin Bank Berhad BSC and Business Intelligence tools
Affin Bank Berhad BSC and Business Intelligence tools
Mior Azwan
 
Affin Bank Berhad Analysis
Affin Bank Berhad AnalysisAffin Bank Berhad Analysis
Affin Bank Berhad Analysis
Mior Azwan
 

Viewers also liked (9)

Bio heroes final report
Bio heroes  final reportBio heroes  final report
Bio heroes final report
 
රියාලුස් සාලිහීන්-සුබාරංචි පැවසීමත්,ප්‍රාර්ථනා කිරීමත්
රියාලුස් සාලිහීන්-සුබාරංචි පැවසීමත්,ප්‍රාර්ථනා කිරීමත්රියාලුස් සාලිහීන්-සුබාරංචි පැවසීමත්,ප්‍රාර්ථනා කිරීමත්
රියාලුස් සාලිහීන්-සුබාරංචි පැවසීමත්,ප්‍රාර්ථනා කිරීමත්
 
Powrtron corporation 11
Powrtron corporation 11Powrtron corporation 11
Powrtron corporation 11
 
Proliferative phase
Proliferative phaseProliferative phase
Proliferative phase
 
Jc synthetic biology 6-15-2012
Jc synthetic biology   6-15-2012Jc synthetic biology   6-15-2012
Jc synthetic biology 6-15-2012
 
2013 SDSSA Photo of the Year Final Fifteen
2013 SDSSA Photo of the Year Final Fifteen2013 SDSSA Photo of the Year Final Fifteen
2013 SDSSA Photo of the Year Final Fifteen
 
Reproductive system
Reproductive systemReproductive system
Reproductive system
 
Affin Bank Berhad BSC and Business Intelligence tools
Affin Bank Berhad BSC and Business Intelligence toolsAffin Bank Berhad BSC and Business Intelligence tools
Affin Bank Berhad BSC and Business Intelligence tools
 
Affin Bank Berhad Analysis
Affin Bank Berhad AnalysisAffin Bank Berhad Analysis
Affin Bank Berhad Analysis
 

Recently uploaded

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 

Recently uploaded (20)

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 

Diane wu insight demo

  • 1.
  • 4. BakeSearch Make  sense  of  recipes  and  bake  like  a  pro
  • 5. Disambigua=ng  searches Classic  Chocolate  chip  cookies Pa6y’s  best  chocolate  cookies Bigrams   Peanut  bu6er  cookies  +   Sugar  cookies  with  fros=ng Trigrams Gooey  bu6er  cookies Banana  pumpkin  cookies Black  and  white  cookies Halloween  cookies Candidate  labels
  • 6. Domain-­‐specific  data  munging •  Ingredients:  nltk  dic=onary   •  Domain  knowledge   •  Unit  parsing  
  • 7. Defining  distance  measure Recipe  1 Recipe  2 Ingr1   Ingr4   Ingr2   Ingr9   Ingr3   Ingr12   Ingr4 Ingredients  in  both  recipes Jaccard  = Ingredients  in  either  recipe
  • 8. Challenges  of  big  data •  Most  clustering  algorithms  (k-­‐means,   hierarchical,  graph-­‐based)  take  >30  seconds  
  • 9. Challenges  of  big  data •  Most  clustering  algorithms  (k-­‐means,   hierarchical,  graph-­‐based)  take  >30  seconds   •  40k  baking  recipes,  4k  ingredients   4000 3000 # Recipes 2000 1000 0 0 10 20 30 40 # Ingredients in recipe
  • 10. Challenges  of  big  data •  Most  clustering  algorithms  (k-­‐means,   hierarchical,  graph-­‐based)  take  >30  seconds   •  40k  baking  recipes,  4k  ingredients   4000 3000 # Recipes 2000 900 1000 # ingredients 600 0 0 10 20 30 40 # Ingredients in recipe 300 0 1 2 5 10 50 100 500 1000 5000 10000 # recipes containing ingredient
  • 11. Challenges  of  big  data •  Most  clustering  algorithms  (k-­‐means,   hierarchical,  graph-­‐based)  take  >30  seconds   •  40k  baking  recipes,  4k  ingredients   •  Pre-­‐calculate  jaccard  distances  between  every   pair  of  recipes  (40k  =mes  40k  =  1.6  billion   pairs!)  
  • 12. Challenges  of  big  data •  Most  clustering  algorithms  (k-­‐means,   hierarchical,  graph-­‐based)  take  >30  seconds   •  40k  baking  recipes,  4k  ingredients   •  Pre-­‐calculate  jaccard  distances  between  every   pair  of  recipes  (40k  =mes  40k  =  1.6  billion   pairs!)   •  MapReduce  on  Amazon  EMR   •  Preload  into  networkx  graph
  • 13. Cluster  recipes  based  on  ingredient
  • 14. Cluster  recipes  based  on  ingredient
  • 15. Find  enriched/depleted  ingredients abs(Log-­‐2  ra=o)  >2
  • 16. Tools Back  end Analysis Front  end •  Yummly  API   •  Numpy,  Scipy   •  HTML/CSS/ •  Python   •  Nltk,   JavaScript   –  Pycurl   networkx   •  Twi6er   –  Nltk  wordnet   Bootstrap   •  Python,  R   •  MySQL   •  Flask   •  Amazon  EMR   •  Amazon  AWS  
  • 17. Diane  Wu •  PhD  Gene=cs,  Stanford  University,  CA   •  BSc  Compu=ng  Science,  Simon  Fraser,  Canada  
  • 18. Diane  Wu •  PhD  Gene=cs,  Stanford  University,  CA   •  BSc  Compu=ng  Science,  Simon  Fraser,  Canada  
  • 19. Diane  Wu •  PhD  Gene=cs,  Stanford  University,  CA   •  BSc  Compu=ng  Science,  Simon  Fraser,  Canada