Lesson 4 of 5 Choosing Modeling Approaches

Matching AWS AI Services to Business Problems

This lesson explains which pre-trained AWS AI service solves which business problem, and which features of each service matter.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify document and image services.
  • Identify language and speech services.
  • Identify recommendation and health data services.

Document and image services

Amazon Textract extracts printed and handwritten text from documents, together with key-value pairs from forms, tables and layout information. AnalyzeDocument with queries answers natural-language questions about a document, such as "What is the policy number?"; AnalyzeExpense extracts data from invoices and receipts; and AnalyzeID reads identity documents such as passports and driving licences.

Amazon Rekognition detects objects, scenes, text, faces and unsafe content in images and video, and compares faces. With Custom Labels, it learns to detect business-specific objects, such as a company's products or defects on a production line, from a few hundred labelled images, with no machine learning expertise.

Scenario questions

Documents and images

Exam skills 2.1.8

Choose the AWS AI service for each document or image task.

Log in to try this activity Interactive activities are free with an account.

Language and speech services

Amazon Comprehend detects language, entities, key phrases, sentiment, targeted sentiment, PII and toxic content, and trains custom classifiers and entity recognisers. Amazon Comprehend Medical extracts medical conditions, medications, dosages and protected health information. Amazon Transcribe converts speech to text with speaker diarisation, custom vocabulary, PII redaction and call analytics; Transcribe Medical handles clinical speech. Amazon Translate translates text with custom terminology. Amazon Polly converts text to lifelike speech. Amazon Lex builds voice and text chatbots with intents and slots.

The following diagram shows the managed AI services in a call-centre quality programme.

The call-centre quality programme built from managed AI services. Transcribe Call Analytics transcribes each call with speaker separation, per-speaker sentiment and PII redaction; a Comprehend custom classifier tags topics such as cancellation; and results in S3 are analysed in Athena and Quick Sight.
Topic names are illustrative.
Match the pairs

Language and speech

Exam skills 2.1.8

Match each business need with the AWS AI service that meets it.

Log in to try this activity Interactive activities are free with an account.

Recommendation and health data services

Amazon Personalize builds recommendation systems from interaction data, such as views and purchases, together with item and user data. It trains models automatically and serves real-time recommendations, similar items and personalised rankings of a list, which would otherwise require a specialist team to build.

AWS HealthLake stores, transforms and queries health data in the FHIR (Fast Healthcare Interoperability Resources) standard, and extracts medical information, such as conditions and medications, from unstructured clinical notes.

The following table summarises the services.

ServiceSolvesNotable features
TextractText, forms, tables from documentsQueries, AnalyzeExpense, AnalyzeID
RekognitionImage and video analysisContent moderation, Custom Labels, face comparison
ComprehendText analyticsPII and toxicity detection, custom classifiers
Comprehend MedicalMedical textConditions, medications, PHI
TranscribeSpeech to textDiarization, custom vocabulary, PII redaction, call analytics
TranslateTranslationCustom terminology, batch translation
PollyText to speechNeural voices, SSML
LexChatbotsIntents, slots, Lambda fulfilment
PersonalizeRecommendationsReal-time personalisation, similar items
HealthLakeHealth dataFHIR store, medical NLP
True or false

Recommendations and health text

Exam skills 2.1.8

Check what Amazon Personalize and Amazon Comprehend Medical do.

Log in to try this activity Interactive activities are free with an account.
Worked example

A call-centre quality programme

A company wants to analyse every customer call for sentiment and topics, detect when customers mention cancellation and keep card numbers out of stored text.

  • Transcribe Call Analytics transcribes calls with speaker separation, sentiment per speaker and PII redaction.
  • Comprehend custom classification tags each transcript with topics such as billing or cancellation.
  • Results land in S3 and are analysed in Athena and Amazon Quick Sight.

Every component is a managed AI service, so no model needs to be trained from scratch apart from the custom classifier, which Comprehend trains from labelled examples without ML expertise.

Check yourself

How can a model find business-specific objects in images with little training data?

Show answer

With Amazon Rekognition Custom Labels.

Exam Tips

Remember for the exam

  • Questions about a document's contents: Textract QUERIES.
  • Business-specific objects in images with little data: Rekognition Custom Labels.
  • PII or toxic content in text: Comprehend.
  • Speech with sentiment and PII redaction: Transcribe Call Analytics.
  • Recommendations without building models: Personalize.