leveraging aws and machine learning to power search at
play

Leveraging AWS and Machine Learning to Power Search at Zocdoc - PowerPoint PPT Presentation

Leveraging AWS and Machine Learning to Power Search at Zocdoc Pedro Rubio Head of Search Engineering Brian dAlessandro Head of Data Science This document and its contents are proprietary and confidential of Zocdoc, Inc. and may not be


  1. Leveraging AWS and Machine Learning to Power Search at Zocdoc Pedro Rubio Head of Search Engineering Brian d’Alessandro Head of Data Science This document and its contents are proprietary and confidential of Zocdoc, Inc. and may not be reproduced or shared, in whole or in part, without the express written authorization of Zocdoc, Inc.

  2. Agenda - How we’re built - People and Architecture - How we’re built - the Data - Questions

  3. Problem Statements: 1. Patients need to find and book with a doctor, and, 2. Patients don’t often know what kind of doctor they need. 3

  4. 4

  5. How we’re built And solving “what the patient means”

  6. Core Optimization Problems for ZD Search • Cross team collaboration enabling maximum iteration speed • Deliver recommendations < 200 ms • Patient satisfaction (And our architecture plays a big role here!) 6

  7. The Search Team Product Engineering Data Science Design 7

  8. Zocdoc Tech Stack NodeJS, ES6, Babel, React - AWS - Cloudformation, Docker, ECR, - EC2, ELB Kinesis / Firehose - S3 - reporting to data-lake - Monitoring with Datadog - Routes with Express -

  9. Our Legacy Search

  10. Free Text (Patient Powered) Search

  11. Types of Intent Name of doctor Medical procedure Specialty Symptom 11

  12. Intent Parsing Architecture Design Machine Learning 12

  13. Doctor Name Retrieval Specialty Retrieval Browser Visit Reason Retrieval Phase I - Auto-Suggest NLP Search Semantic Retrieval Service Pipeline Semantic Corpus Building Service Service Handler Auto-Suggest Ranking Results Ranking Models Logging Phase II - Backend Search

  14. Solving for the Long Tail The structured queries comprise a reasonable percent of traffic, but are a minority of total search terms we service. We use Natural Language Processing (NLP) algos to map unstructured terms into our structured search set. Specialties = O(10^2), Procedures = O(10^3), Names = O(10^6), Other = O(10^7) 14

  15. Different Representations of Same Concept Variations Concept Medical Term Interpretation • Heart beats too • Irregular • Atrial fast heartbeat Fibrillation • Heart flutters • Heart • Pulse rate too high palpitations • Irregular pulse • Heart out of rhythm • Irregular heartbeat • Heart palpitations 15

  16. ZocDoc Semantic Service f(“presentation anxiety”) = {[{Specialty =“Psychologist”, Relevance = 0.8}, …,{Specialty =“Psychiatrist”, Relevance = 0.7}]} 16

  17. Early Results (And Why You Need to Always Experiment)

  18. Searches that Lead to “Nephrology” Many patients don’t know what a Nephrologist is. They don’t need to know to find one now. 18

  19. How We’re Built - The Data

  20. Data - Indexing so we can Search

  21. Lesson Learned with Indexing Data Legacy Layer AWS Elastic.co Monolith Live Feed Process S3 ƛ Cache Lambda’s act as a mini ETL layer getting the documents ready for our retrieval stage. - Complex “stateless” ETL process that - Lambda memory max 1500mb transforms this data into the data that - Our data much larger we need in Elasticsearch - Manage state in S3 and - Load piecemeal into Elasticsearch Elasticsearch - At the very end, swap alias to use newly uploaded indexes

  22. New ETL - Spark - Spark - ETL - Get over 1500mb limit - Get over 5 minute runtime limit More complex Processing - Easily add more data-sets 1 - Currently in Databricks - Plan to migrate to EMR (Elastic Map Reduce) 2 3 Mapping from Mapping from 1 -> 2 1 -> 3 Joined Data Set Business Logic Application

  23. Data - Event Data So we can Learn

  24. The Marketplace Goal: Make it as easy as possible to match the user to the right doctor. Considerations: • How to weight distance vs. availability vs. experience vs. reviews? • Does Dr. take this type of patient? • Are we meeting regulatory requirements? 24

  25. Organizational Optimization Optimize: algo iteration speed Subject to: • Org too small to justify full time data scientists within search • Throwing models over the wall to be implemented doesn’t work 25

  26. Agile Machine Learning Production Filtered Model API Results ZocDoc Query Model dB Prod Service Transformations + Scored Ranked Model Scoring Results (Search) Results Research, Analysis, Logs Model Development (S3/Redshift) (Spark/Redshift) Offline Engineering Owned DS Owned 26

  27. Aqueduct: Filling the Data Lake Some Data Lake principles: • Allow producers to easily push data • Allow data format changes • Smart ETL to make consumption very easy 27

  28. Cistern: Making Datalake Drinkable • “Raw” data lake good for exploratory research (we use Spark) • “Clean” data lake better for analytics and quick exploration 28

  29. Data - Insights

  30. 30

  31. We’ve got our fingers on Searches for Therapy/Therapist on Zocdoc the pulse of public health trends. 31

  32. How Much is that Smile Worth? Click Conversion by Search Rank and DrIsSmiling We’re exploring AWS Rekognition to research what drives user interest in Dr. profiles. 32

  33. 34

  34. Thank you and Questions!

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend