AI Services Flashcards

1
Q

Rekognition

A
  • Pre-trained deep learning API, where an image is presented to the API for classification. Can also be accessed through a Python script (boto3) or lambda function
    1. Object and scene detection
    2. Image moderation
    3. Facial analysis (detect age, gender, expression etc)
    4. Celebrity recognition
    5. Face comparison
    6. Text in image
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Rekognition: potential use cases

A
  • Create a filter to prevent inappropriate images being sent via a messaging platform. This could include nudity or offensive text
  • Enhance metadata catalogue of an image library to include the number of people in each image
  • Scan an image library to detect instances of famous people
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Rekognition video

A
  • Image and video analysis, pre-trained deep learning API
  • Process stored videos in S3, or analyse streaming videos (i.e. live camera)
  • Could stream video content in through Kinesis Video Stream to Rekognition Video
  • Detect people of interest in a live video stream, or alternatively detect offensive content within videos uploaded to a social media platform
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Polly

A
  • Text to speech service
  • Multiple languages supported, m&f, customer lexicons
  • Speech Synthesis Markup Language. Allows you to further dictate how the polly speech is return (e.g. whispering)
  • Lexicon: create your own specific words/phrases
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Polly: use cases

A
  • Create accessibility tools to “read” web content to blind people
  • Provide automatically generated announcements via a PA system
  • Create automated voice response (AVR) solution for a telephony system (e.g. when you ring a bank and an automatic voice responds)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Translate

A
  • Text translation service
  • Batch or real-time
  • Supports several languages
  • Supports custom terminology
  • Use cases:
    • Enhance online customer chat applications to translate conversations in real-time
    • Batch translate documents within a multilingual company
    • Create a news publishing solution to convert posted stories to multiple languages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Transcribe

A
  • Automatic speech recognition
  • Supports many languages as well as custom vocab
  • Can hook up microphone (real time) or upload pre-recorded file
  • Custom vocab: industry-specific words can be uploaded
  • Use cases:
    • Create a call centre monitoring solution that integrates with other services to analyse caller sentiment
    • Create a solution to enable text search of media with spoken words
    • Provide a closed captioning solution for online video training
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Comprehend

A
  • Text analysis, NLP
  • Keyphrase extraction
  • Sentiment analysis
  • Entity recognition
  • Syntax analysis (verbs, nouns, word types)
  • Medical version
  • Custom entities (product numbers etc)
  • Language detection
  • Custom classification (i.e. feed in pre-classified documents)
  • Topic modelling
  • Multiple language support
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Comprehend use cases

A
  • Perform customer sentiment analysis on inbound messages to support the system
  • Create a system to label unstructured (clinical) data to assist in research and analysis
  • Determine the topics from transcribed audio recordings of company meetings
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Amazon Lex

A
  • Powers Alexa
  • Conversation interface service, chatbot
  • Voice enabled or text
  • Automatic speech recognition
  • Natural language understanding
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Lex use cases

A
  • Create a chatbot that handles customer support requests directly on the product page of a website
  • Create an automated receptionist that directs people as they enter a building
  • Provide an interactive voice interface to […] application
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Service chaining - scenario 1:

  1. Lambda function 1 retrieves text data from S3
  2. Passes to Translate, which passes the translation back to the lambda function 1
  3. Lambda function 1 re-directs results to Comprehend for analysis
  4. Analysis results are sent back to same Lambda function
A

The issue with this service chain is that the same Lambda function is handling too many functions. Best practice is for one Lambda function to handle one function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Service chaining - scenario 2:
- Same architecture as scenario 1, except we have Lambda function 1 between S3 and Translate, and Lambda function 2 taking the output of Lambda function 1 and passing on to Comprehend, then onwards

A

The issue with this service chain is that it is not best practice to have separate Lambda functions that are dependent on each other.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Service chaining - scenario 3:

  1. Lambda function 1 retrieves data from S3 and passes onto AWS Step Function.
  2. Within the Step Function, we have Lambda function 2 which deals with Translate, and Lambda function 3 which deals with Comprehend.
  3. The Step Function facilitates the interaction between Lambda functions 2 and 3, not the functions themselves
A

This architecture is best practice as it the Step Function controls the “state” of the workflow (i.e once one Lambda function finishes, the Step Function then triggers the next Lambda function)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Step Functions with stream data

A

We can make use of wait and decision functions with the Step Function to “check-in” with Transcribe (or another service) to see its status before progressing data onto Comprehend

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Amazon Forecast

A

Fully managed service for time series forecasting (i.e. retail, financial planning, supply chain, healthcare, inventory management)