Week01 Intro AI
Week01 Intro AI
edureka.co
How to think about ML models
• One can think of a machine learning model as a mapping
between input and output
• Our goal is to find the model that best maps the input to our
desired output
Machine Learning
Machine Learning
Machine Learning
interval [0, 1]
• A higher probability for a class
suggests a stronger confidence that
cat
the input belongs to that class. For 0.06
example, a 0.9 probability for 'Cat'
means the model is quite confident
that the input image is of a cat chicken
0.02
cat
0.02
chicken
0.51
ML Outputs – Real Numbers
• In many ML models, the outputs can be
real numbers rather than probabilities
• Unlike classification, where the output is
a label or category, the output in
regression is a real number that can
range from negative to positive infinity.
• Useful in regression problems:
• Predicting housing prices
• Predicting temperature
ML Outputs – Integer values
• Semantic segmentation involves classifying each pixel in an image to a
specific category, essentially "labeling" parts of the image
• Each integer value corresponds to a specific category or class that a
pixel belongs to. For example, in a mask for segmenting a road scene,
pixels corresponding to "road" might be labeled as 1, "car" as 2,
"pedestrian" as 3, and so on.
https://blog.research.google/2020/07/improving-holistic-scene-understanding.html?m=1
ML Outputs – Same as the Input!
• Input is text, output is also text!
• For such simple data, simple statistical analysis can be done to understand
it e.g., the most favorable fruit
Spam Emails
Scenario: Detecting spam emails
Dataset:
You have 100 emails. Out of these, 20 are spam and 80 are not spam.
Complexity:
You know that spam emails can have countless forms and messages
that you haven't seen yet.
...
Sports
Analytics
AI Applications
• AI Mimics Human Tasks: AI is designed to perform tasks that usually
require human intelligence, such as recognizing patterns, making
decisions, and solving problems.
• Key Question: "What human task could AI automate or enhance?"
AI for Design Creativity
• Generative AI models excel at blending diverse concepts,
enabling designers to explore novel and unique ideas.
• They can provide creative solutions that may not be immediately
obvious, acting as a valuable inspiration tool.
+ =
Spam Classification
Source: Hands-on Machine Learning with Scikit-Learn, Keras, and TensorFlow, Second Edition,
Aurélien Géron
Supervised Learning (regression)
• The output of the model is one (or many) real-valued
number(s)
• NOTE: We know the numerical values of the target variable in
our training data
Source: Hands-on Machine Learning with Scikit-Learn, Keras, and TensorFlow, Second Edition, Aurélien Géron
Unsupervised Learning
• Imagine we have collected data from an e-
commerce website but have not attached any
labels to it. The data includes:
• Customer IDs
• Products viewed
• Time spent on each product page
• Frequency of visits
• Cart additions and removals
• This data is considered unlabeled because it Source: Hands-on Machine Learning with Scikit-
doesn't tell us anything specific about the Learn, Keras, and TensorFlow, Second Edition,
Aurélien Géron
quality control
Self-Supervised Learning
• Focus of the next lecture
• A method to train models to “reconstruct” the training data
• ChatGPT is a good example
• Unlike unsupervised learning, self-supervised learning does not
perform the grouping and clustering of data, but focus on the
generation of data
Self-Supervised Learning
• Usually involves examining part of a data to figure out (guess) the remaining part
reconstruct
ML model after
being trained on a
lot of car’s images!
BLOCKED
cat
sit mat (93%)
on
a
What’s the next word?
tokens!
Probabilities!
https://poloclub.github.io/transformer-explainer/
Application of AI in
Engineering
GPT Models as a Research Partner
• GPT models assist in brainstorming, generating
creative concepts, simulate your users, and
exploring design variation
Utilizing GPT Models for Customer Insights
• Simulate Customer Personas: Use GPT models
to create diverse customer personas and
gather feedback from various perspectives
• Generate Opinions at Scale: Ask these
simulated personas for their opinions on
products, services, or design decisions to
refine and improve offerings
• Solve Design Challenges: Simulate large
populations to stress-test design solutions and
predict potential user reactions across
demographics
https://arxiv.org/abs/2404.16045
AI for Mechanical Configuration Design
• We will have an invited speaker to discuss AI for configuration design!
AI for Manufacturing – Fault Detection
• Real-time Monitoring: Instant
detection of defects
Faulty sample
https://arxiv.org/pdf/2301.11514
AI for Discovery