Fundamentals of Artificial Intelligence - Part 1

AI permits us to build wonderful software that may improve health care, change individuals to overcome physical disadvantages, empower smart infrastru

Introduction to AI

AI permits us to build wonderful software that may improve health care, change individuals to overcome physical disadvantages, empower smart infrastructure, produce unbelievable entertainment experiences, and even save the planet!

What is AI?

Simply put, AI is the creation of software that imitates human behaviors and capabilities. Key components include:

  • Machine Learning - This can be often a foundation for an AI system, and is the method we have the tendency to "teach" a computer model to make predictions and draw conclusions from data.
  • Anomaly detection - The aptitude to automatically detect errors or unusual activity in a system.
  • Computer Vision - The aptitude of software to interpret the world visually through cameras, video, and pictures.
  • Natural Language Processing - The aptitude of a computer to interpret written or spoken languages and respond similarly.
  • Conversational AI - The aptitude of a software "agent" to participate in an exceeding conversation.

Understand machine learning

Machine Learning is the foundation for many AI solutions.

Let's start by observing a real-world example of how machine learning is often accustomed to solving a difficult problem.

Sustainable farming techniques are essential to maximizing food production while protecting a fragile environment. The Yield, an agricultural technology company based in Australia, uses sensors, data, and machine learning to help farmers make informed decisions related to weather, soil, and plant conditions.

You can find out more about how the Yield is using machine learning to feed the world without wrecking the planet here.

How machine learning works

So how do machines learn?

The answer is, from data. In today's world, we create huge volumes of data as we go about our everyday lives. From the text messages, emails, and social media posts we send to the photographs and videos we take on our phones, we generate massive amounts of information. More data still is created by millions of sensors in our homes, cars, cities, public transport infrastructure, and factories.

Data scientists can use all of that data to train machine learning models that can make predictions and inferences based on the relationships they find in the data.

For example, suppose an environmental conservation organization wants volunteers to identify and catalog different species of wildflower using a phone app. The following animation shows how machine learning can be used to enable this scenario.



  1. A team of botanists and data scientists collects samples of wildflowers.
  2. The team labels the samples with the correct species.
  3. The labeled data is processed using an algorithm that finds relationships between the features of the samples and the labeled species.
  4. The results of the algorithm are encapsulated in a model.
  5. When new samples are found by volunteers, the model can identify the correct species label.

Machine learning in Microsoft Azure

Microsoft Azure provides the Azure Machine Learning service - a cloud-based platform for creating, managing, and publishing machine learning models. Azure Machine Learning provides the following features and capabilities:

FeatureCapability
Automated machine learningThis feature enables non-experts to quickly create an effective machine learning model from data.
Azure Machine Learning designerA graphical interface enabling no-code development of machine learning solutions.
Data and compute managementCloud-based data storage and compute resources that professional data scientists can use to run data experiment code at scale.
PipelinesData scientists, software engineers, and IT operations professionals can define pipelines to orchestrate model training, deployment, and management tasks.

Understand anomaly detection

Imagine you're creating a software system to monitor credit card transactions and detect unusual usage patterns that might indicate fraud. Or an application that tracks activity in an automated production line and identifies failures. Or a racing car telemetry system that uses sensors to proactively warn engineers about potential mechanical failures before they happen.

These kinds of scenarios can be addressed by using anomaly detection - a machine learning-based technique that analyzes data over time and identifies unusual changes.

Let's explore how anomaly detection might help in the racing car scenario.



  1. Sensors in the car collect telemetry, such as engine revolutions, brake temperature and so on.
  2. An anomaly detection model is trained to understand expected fluctuations in the telemetry measurements over time.
  3. If a measurement occurs outside of the normal expected range, the model reports an anomaly that can be used to alert the race engineer to call the driver in for a pit stop to fix the issue before it forces retirement from the race.

Anomaly detection in Microsoft Azure

In Microsoft Azure, the Anomaly Detector service provides an application programming interface (API) that developers can use to create anomaly detection solutions.
To learn more, view the Anomaly Detector service website.

Understand computer vision

Computer Vision is an area of AI that deals with visual processing. Let's explore some of the possibilities that computer vision brings.

The Seeing AI app is a great example of the power of computer vision. Designed for the blind and low vision community, the Seeing AI app harnesses the power of AI to open up the visual world and describe nearby people, text, and objects.

To find out more, check out the Seeing AI web page.

Computer Vision models and capabilities

Most computer vision solutions are based on machine learning models that can be applied to visual input from cameras, videos, or images. The following table describes common computer vision tasks.

TaskDescription
Image classificationAn image of a taxi with the label "Taxi"
Image classification involves training a machine learning model to classify images based on their contents. For example, in a traffic monitoring solution, you might use an image classification model to classify images based on the type of vehicle they contain, such as taxis, buses, cyclists, and so on.
Object detectionAn image of a street with buses, cars, and cyclists identified and highlighted with a bounding box
Object detection machine learning models are trained to classify individual objects within an image and identify their location with a bounding box. For example, a traffic monitoring solution might use object detection to identify the location of different classes of vehicles.
Semantic segmentationAn image of a street with the pixels belonging to buses, cars, and cyclists identified
Semantic segmentation is an advanced machine learning technique in which individual pixels in the image are classified according to the object to which they belong. For example, a traffic monitoring solution might overlay traffic images with "mask" layers to highlight different vehicles using specific colors.
Image analysisAn image of a person with a dog on a street and the caption "A person with a dog on a street"
You can create solutions that combine machine learning models with advanced image analysis techniques to extract information from images, including "tags" that could help catalog the image or even descriptive captions that summarize the scene shown in the image.
Face detection, analysis, and recognitionAn image of multiple people on a city street with their faces highlighted
Face detection is a specialized form of object detection that locates human faces in an image. This can be combined with classification and facial geometry analysis techniques to infer details such as age and emotional state, and even recognize individuals based on their facial features.
Optical character recognition (OCR)An image of a building with the sign "Toronto Dominion Bank", which is highlighted
Optical character recognition is a technique used to detect and read the text in images. You can use OCR to read the text in photographs (for example, road signs or storefronts) or to extract information from scanned documents such as letters, invoices, or forms.

Computer vision services in Microsoft Azure

Microsoft Azure provides the following cognitive services to help you create computer vision solutions:
ServiceCapabilities
Computer VisionYou can use this service to analyze images and video, and extract descriptions, tags, objects, and text.
Custom VisionUse this service to train custom image classification and object detection models using your own images.
FaceThe Face service enables you to build face detection and facial recognition solutions.
Form RecognizerUse this service to extract information from scanned forms and invoices.

Try this

To see an example of how computer vision is often accustomed to analyzing pictures, follow these steps:
  1. Open another browser tab and visit https://aidemos.microsoft.com/computer-vision.
  2. Use the demo interface to try each of the steps. For each step, you will choose a picture and review the information returned by the Computer Vision services.

for detailed information refer to the official blog from Microsoft.
for further information refer to Fundamentals of Artificial Intelligence-Part 2

Hello! Myself Tejas Mahajan. I am an Android developer, Programmer, UI/UX designer, Student and Navodayan.