0% found this document useful (0 votes)
10 views45 pages

Chapter 3 Artificial Intelligent: Industry 4.0 in Mechanical Engineering

The document discusses the role of Artificial Intelligence (AI) in the context of Industry 4.0 within mechanical engineering, focusing on machine learning and its various types, including supervised, unsupervised, and reinforcement learning. It outlines key concepts such as decision trees, neural networks, and support vector machines, along with their applications in real-world scenarios. Additionally, it highlights the advantages and challenges of different machine learning approaches.

Uploaded by

Kaiser Hòa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views45 pages

Chapter 3 Artificial Intelligent: Industry 4.0 in Mechanical Engineering

The document discusses the role of Artificial Intelligence (AI) in the context of Industry 4.0 within mechanical engineering, focusing on machine learning and its various types, including supervised, unsupervised, and reinforcement learning. It outlines key concepts such as decision trees, neural networks, and support vector machines, along with their applications in real-world scenarios. Additionally, it highlights the advantages and challenges of different machine learning approaches.

Uploaded by

Kaiser Hòa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 45

Industry 4.

0 in Mechanical Engineering

Chapter 3 Artificial Intelligent


Prof. Lưu Thanh Tùng
Industry 4.0 in Mechanical Engineering

Content
1. Machine learning.

2. Applications.

Introduction to Industrial Internet of Tings and Industry 4.0


Industry 4.0 in Mechanical Engineering

Artificial Intelligent https://www.youtube.com/watch?v=JcXKbUIebrU

Artificial Intelligence (AI) refers to the development of computer systems


that can perform tasks that typically require human intelligence, such as
visual perception, speech recognition, decision-making, and language
translation. AI technology relies on algorithms and statistical models that
enable computers to learn from data, recognize patterns, and make
predictions or decisions based on that data.

Machine learning
Industry 4.0 in Mechanical Engineering

Artificial Intelligent https://www.youtube.com/watch?v=gPQVeZgeTFo

There are several subfields of AI, including machine learning, natural


language processing, computer vision, robotics, and expert systems.
Machine learning, in particular, has seen tremendous progress in
recent years, thanks to the availability of large amounts of data and
advances in computing power.

Machine learning
Industry 4.0 in Mechanical Engineering

Artificial Intelligent https://www.youtube.com/watch?v=1FZ0A1QCMWc

There are three main types of machine learning:


Supervised Learning: This involves training a machine learning model
on labeled data, where each data point has a corresponding label or
output.
Unsupervised Learning: In this type of machine learning, the model is
trained on unlabeled data, and it learns to find patterns and structure in
the data. Unsupervised learning is often used for clustering or
dimensionality reduction.
Reinforcement Learning: This involves training a model to interact with
an environment and learn to make decisions based on feedback in the
form of rewards or penalties.
Machine learning
Industry 4.0 in Mechanical Engineering

Artificial Intelligent
Supervised learning is a type of machine learning in which an
algorithm is trained on a labeled dataset to learn a mapping function
that can predict an output value given an input.
The labeled dataset used for supervised learning consists of input-
output pairs, where each input has an associated correct output.
During training, the algorithm receives the inputs and tries to predict
the corresponding outputs.

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Learning Associations
In the case of retail—for example, a supermarket Chain—one
application of machine learning is basket analysis, which is finding
associations between Products bought by customers: If people who
buy X typically also buy Y, and if there is a customer who buys X and
does not buy Y, he or she is a potential Y customer. Once we find such
customers, we can target them for cross-selling.

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Learning Associations
In finding an association rule, we are interested in learning a
conditional probability of the form P(Y\X) where Y is the product we
would like to condition on X, which is the product or the set of Products
which we know that the customer has already purchased.
Let us say, going over our data, we calculate that P(chips\beer) = 0.7.
Then, we can define the rule: 70 percent of customers who buy beer
also buy chips.

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Classification
In credit scoring (Hand 1998), the bank
calculates the risk given the amount of credit
and the information about the customer.
This is an example of a classification
problem where there are two classes: low-
risk and high-risk customers. The information
about a customer makes up the input to the
classifier whose task is to assign the input to
one of the two classes.
https://www.youtube.com/watch?v=OahkL4e3hlo
Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning https://www.youtube.com/watch?v=Pu1DOlk9rUQ

Classification
Example of a training dataset where each
circle corresponds to one data instance with
input values in the corresponding axes and
its sign indicates the class. For simplicity,
only two customer attributes, income and
savings, are taken as input and the two
classes are low-risk (V) and high-risk. An
example discriminant that separates the
two types of examples is also shown
Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Regression https://www.youtube.com/watch?v=CtsRRUddV2s

Let us say we want to have a system that can predict the price of a used
car. Inputs are the car attributes—brand, year, engine capacity, milage,
and other information—that we believe affect a car’s worth. The output is
the price of the car. Such problems where the output is a number are
regression problems.

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Regression
Let X denote the car attributes and Y be the price of the car. Again
surveying the past transactions, we can collect a training data and the
machine learning program fits a function to this data to learn Y as a
function of X.

In cases where the linear model is too restrictive, One can use for
example a quadratic

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Regression
The minimum of the sum of squares is found by setting the gradient to zero
and since the gradient equations
become
form y = mx + b, where y and x are variables, m is the slope, and b is the y-
intercept

fit a second-order polynomial or quadratic

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Regression
A training dataset of used cars and the
function fitted. For simplicity, milage is
taken as the only input attribute and a
linear model is used.

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Decision Trees
A decision tree is a flowchart-like model that contains conditional control
statements, comprising decisions and their probable consequences. The
output relates to the labelling of unforeseen data.
In the tree representation, the leaf nodes correspond to class labels, and
the internal nodes represent the attributes. A decision tree can be used to
solve problems with discrete attributes as well as Boolean functions.
Some of the notable decision tree algorithms are ID3 and CART.

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Decision Trees
A decision tree is a flowchart-like model that contains conditional control
statements, comprising decisions and their probable consequences. The
output relates to the labelling of unforeseen data.
In the tree representation, the leaf nodes correspond to class labels, and
the internal nodes represent the attributes. A decision tree can be used to
solve problems with discrete attributes as well as Boolean functions.
Some of the notable decision tree algorithms are ID3 and CART.

https://www.youtube.com/watch?v=ZVR2Way4nwQ

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Decision Trees

 S represents the data set that entropy is calculated


 c represents the classes in set, S
 p(c) represents the proportion of data points that
belong to class c to the number of total data points in
set, S
Entropy values can fall between 0 and 1. If all samples
in data set, S, belong to one class, then entropy will
equal zero. If half of the samples are classified as one
class and the other half are in another class, entropy
will be at its highest at 1.
Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Decision Trees

1. a represents a specific attribute or class label


2. Entropy(S) is the entropy of dataset, S
3. |Sv|/ |S| represents the proportion of the values in Sv to
the number of values in dataset, S
4. Entropy(Sv) is the entropy of dataset, Sv

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Decision Trees
For this dataset, the entropy is 0.94.
This can be calculated by finding the
proportion of days where “Play Tennis” is
“Yes”, which is 9/14, and the proportion
of days where “Play Tennis” is “No”,
which is 5/14.

Entropy (Tennis) = -(9/14) log2(9/14) – (5/14) log2 (5/14) = 0.94

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Decision Trees
Entropy of outlook is smallest

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Random forest
Random forest is a commonly-used machine learning algorithm
trademarked by Leo Breiman and Adele Cutler, which combines the
output of multiple decision trees to reach a single result. Its ease of use
and flexibility have fueled its adoption, as it handles both classification
and regression problems.

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Random forest

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Neural Networks
Neural networks, also known as artificial neural networks (ANNs) or
simulated neural networks (SNNs), are a subset of machine learning and
are at the heart of deep learning algorithms. Their name and structure
are inspired by the human brain, mimicking the way that biological
neurons signal to one another.

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Neural Networks

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Neural Networks

https://www.youtube.com/watch?v=giid0-Oj_FY

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Neural Networks

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Neural Networks
Hàm ReLU

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Neural Networks

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Support Vector Machines
The algorithm of supervised learning in ML, SVM is highly popular
amongst the supervised learning models as it can be used for
classification or regression. Implementation of the model works well with
high-dimensional spaces, but it can also be used effectively with small
data sets. SVM can also classify new observations efficiently when the
algorithm is trained on a data set. SVM performs this by creating singular
or multiple hyperplanes to separate the data set between the two classes.

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
Support Vector Machines

https://www.youtube.com/watch?v=RnapcMi9lqA

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
K-nearest neighbors

Machine learning
Industry 4.0 in Mechanical Engineering

Supervised learning
K-nearest neighbors

Step 1: Selecting the optimal value of K.


Step 2: Calculating distance
Step 3: Finding Nearest Neighbors.
Step 4: Voting for Classification or
Taking Average for Regression

https://www.youtube.com/watch?v=0p0o5cmgLdE
Machine learning
Industry 4.0 in Mechanical Engineering

Un-Supervised learning
Unsupervised learning is a machine learning technique in which models
are not supervised using training dataset. Instead, models itself find the
hidden patterns and insights from the given data. It can be compared to
learning which takes place in the human brain while learning new things.

Machine learning
Industry 4.0 in Mechanical Engineering

Un-Supervised learning
Unsupervised learning is a machine learning technique in which models
are not supervised using training dataset. Instead, models itself find the
hidden patterns and insights from the given data. It can be compared to
learning which takes place in the human brain while learning new things.

Machine learning
Industry 4.0 in Mechanical Engineering

Un-Supervised learning
Advantages of Unsupervised Learning
Unsupervised learning is used for more complex tasks as compared to supervised learning because,
in unsupervised learning, we don't have labeled input data.
Unsupervised learning is preferable as it is easy to get unlabeled data in comparison to labeled data.

Disadvantages of Unsupervised Learning


Unsupervised learning is intrinsically more difficult than supervised learning as it does not have
corresponding output.
The result of the unsupervised learning algorithm might be less accurate as input data is not labeled,
and algorithms do not know the exact output in advance.

Machine learning
Industry 4.0 in Mechanical Engineering

Un-Supervised learning
K-means clustering
K-means clustering is a method of vector quantization, originally from
signal processing, that aims to partition n observations into k clusters in
which each observation belongs to the cluster with the nearest mean
(cluster centers or cluster centroid), serving as a prototype of the cluster.

Machine learning
Industry 4.0 in Mechanical Engineering

Un-Supervised learning
https://www.youtube.com/watch?v=R2e3Ls9H_fc
K-means clustering

Machine learning
Industry 4.0 in Mechanical Engineering

Un-Supervised learning
K-means clustering
In statistics, the k-nearest neighbors algorithm (k-NN) is a non-
parametric supervised learning method first developed by Evelyn Fix and
Joseph Hodges in 1951 and later expanded by Thomas Cover. It is used
for classification and regression. In both cases, the input consists of the k
closest training examples in a data set. The output depends on whether
k-NN is used for classification or regression

Machine learning
Industry 4.0 in Mechanical Engineering

Un-Supervised learning
K-means clustering
Example of k-NN classification. The test
sample (green dot) should be classified
either to blue squares or to red triangles. If k
= 3 (solid line circle) it is assigned to the red
triangles because there are 2 triangles and
only 1 square inside the inner circle. If k = 5
(dashed line circle) it is assigned to the blue
squares (3 squares vs. 2 triangles inside the
outer circle).

Machine learning
Industry 4.0 in Mechanical Engineering

Reinforcement learning
Reinforcement Learning is a feedback-based Machine learning technique
in which an agent learns to behave in an environment by performing the
actions and seeing the results of actions.
In Reinforcement Learning, the agent learns automatically using
feedbacks without any labeled data.
Since there is no labeled data, so the agent is bound to learn by its
experience only

Machine learning
Industry 4.0 in Mechanical Engineering

Reinforcement learning
Reinforcement learning is a type of machine learning method where an
intelligent agent (computer program) interacts with the environment and
learns to act within that.

https://www.simplilearn.com/tutorials/machine-learning-tutorial/reinforcement-learning

Machine learning
Industry 4.0 in Mechanical Engineering

Reinforcement learning
S = the State or Observation
A = the Action the agent takes
R = the Reward from taking an Action
t = the time step
= the Learning Rate
ƛ = the discount factor which causes rewards to lose their value over time
so more immediate rewards are valued more highly

Machine learning
Industry 4.0 in Mechanical Engineering

Reinforcement learning

Below is the reward system for this


environment:
•-1 point at each step. This is to
encourage the agent to reach the goal
in the shortest path.
•-100 for stepping on a mind and the
game ends
•+1 for landing on a
•+100 for reaching the End
Machine learning
Industry 4.0 in Mechanical Engineering

Reinforcement learning

Machine learning
Industry 4.0 in Mechanical Engineering

Reinforcement learning

Machine learning

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy