Skip to content

Introduction to AI in Microsoft Azure AI-900

Source: My personal notes and comments from course series Introduction to AI in Azure, Introduction to AI concepts - Training | Microsoft Learn, and training session led by Kristin Deokiesingh

Learning goals of the course are: (1) Understand use cases of artificial intelligence (AI), its concepts, technology implementation and how to use it responsibly. (2) Apply use cases with services in Microsoft Azure.

In general, AI mimics human activity. For example, human thinking, sight, prediction, pattern recognition, hearing, and information extraction. AI is approximating what the brain is doing using computation.

Use cases for AI support these types of activities according to which human capability to mimic:

Machine Learning - like human learning

  • In comparison to programming a computer to do human functions precisely, the idea in machine learning is a computer can be trained/learn using an algorithm to predict the correct human capability given labeled input data.
  • This learning can be applied to any task as long as there is data of the feature like what an orange looks like (features) and whether it is an orange or type of oranges (label).

Generative AI - like human creativity and pattern matching

  • Assist human users like in chat
  • Creating new content like documents that can be improved through iteration by a human or with the AI
  • Creating natural language content, images, code
  • Translation between languages
  • Summarizing or analyzing content like documents, media

Computer Vision - like human sight

  • Captioning, tagging photos
  • Visual search
  • Monitoring inventory and identifying items in retail
  • Monitoring like security videos
  • Facial recognition
  • Robotics and self driving vehicles

Speech - like human voice and hearing

  • Personal assistants with voice interaction
  • Transcription of calls/meetings and language translation
  • Audio description of content

Natural Language Processing (NLP) - like human content analysis

  • Analyzing content to determine key subjects, mentions or things
  • Evaluate sentiment and opinion on content like communications, social media
  • Chatbots that answer common questions and manage predictable conversations

Extract data and insights - like human ability to follow a process and analysis

  • Processing of forms in a business process like an expense claim
  • Make paper forms digital, for example scanning and archiving records
  • Indexing documents for search and insights
  • Find key points and actions in a meeting transcript or recording

Responsible AI - like human ability for audit, monitoring, checking, and inclusion

  • College admissions system the evaluate admissions fairly and according to criteria and must avoid discrimination
  • Checking objects that for a criteria by determining the probability in the object identification and interacting with the object if it is confident
  • Facial identification system and privacy to ensure facial images are only used for security purposes
  • Chatbot that allows speech interaction and also creates captions for accessibility
  • Loan approval application and lets users know it is an AI and explains data used for training and how its outputs are made

Gen AI is creating content like text, image, media. Content is based on a language model which is trained on data like public information

Generative AI models has semantic relationships between language elements like how words related to each other. The relationships allow them to create meaningful sequence of text.

Large language models (LLM) and small language models (SLM) differ in the amount of data and variables in the model. LLMs are more powerful and good for general work, but are costly to train and use. SLMs are better for focused work in a topic and usually cost less.

Computer vision is done by training a model with many images and helps with identifying information in the image.

Image classification is when the model is trained with images that are labelled with subject(s) in the image to allow it to analyze unlabeled images and predict appropriate labels.

Object detection is when a model is trainer to identify the location of specific objects in an image. Semantic segmentation is advanced object detection where in addition to drawing a box around the object’s location, it can identify pixels that belong to the object.

Computer vision and language models can be combined to create a multi-modal model the fit use cases of creating content and image analysis.

Speech recognition is when the AI can hear and understand speech, usually through speech to text (STT) where audio is transcribed to text.

Speech synthesis is where AI can speak words, usually through text to speech (TTS) where text is converted to audio. The technology includes handing background noise, interruptions, and creating more expressive and human voice.

NLP uses models that are trained for text analysis. NLP may also be referred to as natural language understanding (NLU).

While generative AI models can handle most NLP use cases, text analysis tasks like these can be more cost effective using NLP:

  • Entity extraction - finding mentions of people, things, places
  • Text classification - assign content to a category
  • Sentiment analysis - determine if text is positive, negative or neutral and check opinions
  • Language detection - determin the language of the text

Optical character recognition (OCR) and computer vision allow documents to be read and analyzed. The OCR model can identify the location of text in an image and advanced models can interpret values in the document and get specific fields.

Data extraction models can range from getting fields from text forms to models that extract information from other media like audio and video.

There are risks in using technology:

RiskMitigation
BiasFairness
ErrorReliability & Safety
Data exposurePrivacy & Security
Not for everyoneInclusion
Distrust of resultsTransparency
Who is responsible, governanceAccountability

AI must be created with these principles to address the risks:

  • Fairness: includes inclusive data, attention of unconscious bias, and testing for fairness
  • Reliability and safety: probability and when AI is incorrect and lower those risks
  • Privacy and security: training data is protected, sensitive data is not disclosed and is secured
  • Inclusiveness: services should be open to everyone and AI solutions must not exclude some users
  • Transparency: users are aware of how system works and its limits
  • Accountability: people and organizations giving AI solutions are accountable for AI actions and must have a governance framework with responsible AI.

Related concepts in Ethics in the Age of Generative AI - Ethics in the Age of Generative AI - Generative AI and Ethics - the Urgency of Now

  • Machine Learning
  • Language
  • Models
  • Content
  • Search
  • Face
  • Translate
  • Document Intelligence
  • Content Understanding
  • Speech
  • Vision Understanding

Each service has endpoints & keys which allows specific service cost management. There are multi-service accounts allowing access to several services.

Both are consumption based and require selection of an Azure resource group and data centre location like Canada Central.

Mind Map of AI Use cases with Azure AI Services

Section titled “Mind Map of AI Use cases with Azure AI Services”

Note for individual Azure AI Services, there is usually a free pricing tier of the resource.

@startmindmap
+ Azure AI Use Cases
++ Machine Learning
+++ Data preparation, loading, analytics
++++ Azure Databricks
++++ Microsoft Fabric and Power BI reports
++++ Azure AI Services
+++ Model training, data preparation, pipelines
++++ Azure Machine Learning
++++ Azure Machine Learning Studio
+++++[#lightgreen] Example: Setting up a a model for a specific task
+++ Model training, compute allocation and iterative tasks
++++ Automated ML
-- Generative AI
--- Chat
---- Copilot Chat
--- Model catalog and deployment
---- Azure AI Foundry
---- Azure AI Foundry Portal
-----[#lightgreen] Example: Write email for communication
---- Azure AI Foundry Model catalog
--- Conversational AI
---- Copilot Studio
--- Integration with Speech, Language, Vision
---- Azure AI Foundry hubs
-- Speech
--- Translation, recognition and synthesis
---- Azure AI Translator
--- Speech to text (STT)
---- Azure AI Speech
-----[#lightgreen] Example: Transcribing meeting audio
--- Text to Speech (TTS)
---- Azure AI Speech
-----[#lightgreen] Example: Reading aloud a document
++ Natural Language Processing
+++ Entity recognition, entity links, personal info identification, language detection, summarization, key phrase extraction, sentiment
++++ Azure AI Language
++++ Azure Language Studio, try free
+++ Conversational, FAQ
++++ Question Answering
+++++[#lightgreen] Example: Chatbot to answer common user questions
+++ Conversational, understanding commands, intent and entities
++++ Conversational language understanding (CLU)
+++++[#lightgreen] Example: Execute voice commands given to a system
+++ Text, document, custom translation
++++ Azure AI Translator
+++++[#lightgreen] Example: Translate document to another language to increase accessibility
+++ Translation and Language Integration
++++ Azure AI Foundry
+++++ Language resource
+++++ Translator resource
+++++ Azure AI Services resources
++ Computer Vision
+++ Experiments
++++ Vision Studio, try free
+++ Object detection, tagging, captions, OCR
++++ Azure AI Vision Image Analysis
+++++[#lightgreen] Example: Assess medical images for disease conditions
+++ Face detection, feature detection
++++ Azure AI Face service, Azure AI Foundry
+++++ Detecting smiles for taking a photograph
+++ Multiple media with face, translation, image and speech
++++ Azure AI Video Indexer
-- Information Extraction
--- Analyze images
---- Azure AI Vision Image Analysis
--- Extract insights from content
---- Azure AI Content Understanding
-----[#lightgreen] Example: Process and store data from submitted forms
--- Extract fields and data from structured content, custom models
---- Azure AI Document Intelligence
--- Assisted search and indexing of content
---- Azure AI Search
-----[#lightgreen] Example: Search for mentions of a service in a business case
@endmindmap
  1. Azure AI Free / Trial Services

  2. Study and Certification Exam

  3. Recorded Learning

  4. YouTube series with John Savill