SlideShare a Scribd company logo
1 of 25
Download to read offline
2
Machine Learning
AGENDA
- Machine Learning
- Neural Networks
- Types and Tasks
– Practical Example
- Classification
- Tools Used
- Data Preparation
- Training
- Neural Network Architecture
4
MACHINE
LEARNING
Machine learning is not just HYPE.
It is much more, and currently is a technology that is being used more and more
often.
5
MACHINE LEARNING
In its most basic conception, it allows a generic algorithm to solve a problem
where the input information is not exactly as expected.
It gives a program the ability to interpret new information and understand its
meaning.
6
DIFFERENT WAYS TO LEARN
Supervised
The model is built
upon previous
data. This data,
used for learning is
already known.
The computer works
out the relationship
between input -
output.
Task driven.
Unsupervised
There is no previous
information in this
model.
The algorithm must
be able to extract
valid (useful)
information from
the data presented.
Data driven.
Reinforcement
Interaction with a
dynamic
environment
(constantly
changing) provides
information as
feedback to the
Machine Learning
algorithm.
The feedback takes
the form of
“rewards” and
“punishments”.
SUPERVISED LEARNING
APPLICATIONS
• Database Marketing
• Handwriting Recognition
• Object Recognition
• OCR
• Spam Detection
• Pattern Recognition
• Speech Recognition
7
UNSUPERVISED LEARNING
APPLICATIONS
• Cluster Analysis
• Anomaly Detection
• Multivariate Analysis
8
REINFORCEMENT LEARNING
APPLICATIONS
• Game Theory and Multi-Agent Interaction
• Robotics
• Computer Networking
• Vehicular Navigation
• Industrial Logistic
9
10
NEURAL
NETWORKS
NEURAL NETWORKS
What is a Neural Network?
A neural network is a set of connected nodes (grouped in one or more layers).
Each node can take a set of inputs, applies weight to them and calculate an
output value.
These output values are the input for the next layer of nodes.
What we call “nodes” are in reality large matrices being kept in memory.
A layer is a collection of matrices.
11
DIFFERENT MODELS OF
NETWORKS
Stateless
The algorithm has no memory,
there is no effectivity to
respond to patterns over time.
Stateful
The algorithm saves a set of the
internal calculation, and this is
re-used the next time as part
of the input.
It has memory. It can produce a
result based not only on
current data but also on
previously computed data.
12
MACHINE LEARNING TASKS
Classification
The output is a classification (i.e.
Spam or Not Spam).
This is an example of Supervised
learning, the classes are all
known beforehand.
Dimensionality Reduction
Reduces the dimensions of the input
data, in order to simplify a
problem, and to filter out outliers
and random variables (Variables
that are not functional to the
statistical solution of the problem).
Regression
The output is a continuous
value, a probability value
(0 to 1) for each input
class.
Naturally, the sum of all
probabilities must
amount to 1.
13
Clustering
Grouping of information.
Similar to Classification,
but on an Unsupervised
network. Information is
grouped in classes,
unknown at the start of
the process.
14
CLASSIFICATION
15
Sure, easy GIS lookup, give me a few hours!
When a user takes a photo, the APP should
check whether they are in a National Park …
… and check whether the photo is of a bird.
I will need a research team and five years.
Ref: https://xkcd.com/1425/
16
CLASSIFICATION
SIMPLIFIED MODEL
17
Example:
COINS
IDENTIFICATION
25
1
10
2
?
50
2
1
50
2
25
2
10
10
TOOLS
OpenCV
Computer Vision.
• Edge detection.
• Image transformations
(depth, size, shape, etc.)
• Accessing camera feeds.
• Filtering images (applying all
types of filters)
It has implementations for
c++, Java, Python, Android
and IOS.
Also there is a component
called Emgu, which is a port
for .NET applications.
Scipy
Open Source python
ecosystem of software for
mathematics, science and
engineering.
Tensorflow
Google Deep Learning library.
It provides method for
handling Data input /
output, construct a ML
model (with many different
options) and adding all kinds
of configurable layers.
18
TFLearn
Python wrapper around
Tensorflow. Exposes a
simplified library allowing
easier scripting and
modeling of Neural
Networks, handling data
sets, etc.
Python
Powerful scripting Language.
Supports multithreading, 64
bits, etc.
Anaconda
Anaconda provides work
environment isolation and
package management for
Python.
Multiple environments can be
defined, each one with a
different Python version and
modules loaded.
Tensorbox
Java desktop application that
enables monitoring training of
the Neural Networks in real
time.
MODEL SELECTED
Learning Type : Supervised Learning
Clear classification, known beforehand. The only result expected is a
classification whithin a restricted universe (Just three classes). There are
no other classes allowed.
Learning Task : Regression
Having a probability value allows for thresholding of the final result (fine
tunning). The final user could decide to adjust the value for reducing either
“false positives” or “true negatives”.
19
DATA PREPARATION
Images of both sides of One Peso and Two Pesos current Arengentine coins
(Most ordinary, not special editions).
All images where converted to 128x128 size and also to 24 Bits Per Pixel
(this is important, it will determine the dimensions of the matrices in the
Tensorflow Vectors).
So, ten classes (Two for each denomination, side A and B), with a total of
451 images.
Each image is rotated every 15 degrees, and each resultant image is
augmented in brightness 4 times (So each image, results in 96 images).
Final data set, 43296 images. 30 % of this set is used for validation.
20
SUMMARY - Training
21
Neural Network Model
Convolutional Neural Network Architecture
• 1st Layer: Convolutional, Max Pooling, Relu
• 2nd Layer: Convolutional, Max Pooling, Relu
• 3rd Layer: Convolutional, Max Pooling, Relu
• Layer Flattening
• Fully Connected Layer
• Fully Connected Layer (With Number of Nodes = Number of Classes)
• Softmax
22
DETECTION APP
23
Circle detection is done
using OpenCV
HoughCircles function.
1
2
The image to compare to
the trained model has to
be as similar as those used
to train the model in the
first place.
1 2
REFERENCES
LINKS:
OpenCV : http://opencv.org
Tensorflow: https://tensorflow.org
TFLearn: http://tflearn.org
Anaconda:
https://anaconda.org/anaconda/python
Scipy: https://www.scipy.org
Emgu: http://www.emgu.com
24
Thanks…
http://www.xgem.com.ar
@JuanCarniglia

More Related Content

What's hot

Machine learning - AI
Machine learning - AIMachine learning - AI
Machine learning - AIWitekio
 
Machine Learning and Real-World Applications
Machine Learning and Real-World ApplicationsMachine Learning and Real-World Applications
Machine Learning and Real-World ApplicationsMachinePulse
 
Data Science Interview Questions | Data Science Interview Questions And Answe...
Data Science Interview Questions | Data Science Interview Questions And Answe...Data Science Interview Questions | Data Science Interview Questions And Answe...
Data Science Interview Questions | Data Science Interview Questions And Answe...Simplilearn
 
A Friendly Introduction to Machine Learning
A Friendly Introduction to Machine LearningA Friendly Introduction to Machine Learning
A Friendly Introduction to Machine LearningHaptik
 
Machine Learning Interview Questions and Answers
Machine Learning Interview Questions and AnswersMachine Learning Interview Questions and Answers
Machine Learning Interview Questions and AnswersSatyam Jaiswal
 
Understanding Basics of Machine Learning
Understanding Basics of Machine LearningUnderstanding Basics of Machine Learning
Understanding Basics of Machine LearningPranav Ainavolu
 
Unsupervised learning
Unsupervised learningUnsupervised learning
Unsupervised learningamalalhait
 
Supervised learning and Unsupervised learning
Supervised learning and Unsupervised learning Supervised learning and Unsupervised learning
Supervised learning and Unsupervised learning Usama Fayyaz
 
Feature extraction for classifying students based on theirac ademic performance
Feature extraction for classifying students based on theirac ademic performanceFeature extraction for classifying students based on theirac ademic performance
Feature extraction for classifying students based on theirac ademic performanceVenkat Projects
 
DagdelenSiriwardaneY..
DagdelenSiriwardaneY..DagdelenSiriwardaneY..
DagdelenSiriwardaneY..butest
 
Computation graphs - Tensorflow & CNTK
Computation graphs - Tensorflow & CNTKComputation graphs - Tensorflow & CNTK
Computation graphs - Tensorflow & CNTKA H M Forhadul Islam
 
Student intervention detection using deep learning technique
Student intervention detection using deep learning techniqueStudent intervention detection using deep learning technique
Student intervention detection using deep learning techniqueVenkat Projects
 
Machine Learning Basics
Machine Learning BasicsMachine Learning Basics
Machine Learning BasicsSuresh Arora
 
Machine learning
Machine learningMachine learning
Machine learningAbrar ali
 

What's hot (19)

Machine learning - AI
Machine learning - AIMachine learning - AI
Machine learning - AI
 
Machine Learning and Real-World Applications
Machine Learning and Real-World ApplicationsMachine Learning and Real-World Applications
Machine Learning and Real-World Applications
 
Applications of Machine Learning
Applications of Machine LearningApplications of Machine Learning
Applications of Machine Learning
 
Data Science Interview Questions | Data Science Interview Questions And Answe...
Data Science Interview Questions | Data Science Interview Questions And Answe...Data Science Interview Questions | Data Science Interview Questions And Answe...
Data Science Interview Questions | Data Science Interview Questions And Answe...
 
A Friendly Introduction to Machine Learning
A Friendly Introduction to Machine LearningA Friendly Introduction to Machine Learning
A Friendly Introduction to Machine Learning
 
Machine Learning Interview Questions and Answers
Machine Learning Interview Questions and AnswersMachine Learning Interview Questions and Answers
Machine Learning Interview Questions and Answers
 
Understanding Basics of Machine Learning
Understanding Basics of Machine LearningUnderstanding Basics of Machine Learning
Understanding Basics of Machine Learning
 
Unsupervised learning
Unsupervised learningUnsupervised learning
Unsupervised learning
 
Machine learning
Machine learningMachine learning
Machine learning
 
Supervised learning and Unsupervised learning
Supervised learning and Unsupervised learning Supervised learning and Unsupervised learning
Supervised learning and Unsupervised learning
 
What is Machine Learning
What is Machine LearningWhat is Machine Learning
What is Machine Learning
 
Tree pruning
Tree pruningTree pruning
Tree pruning
 
Feature extraction for classifying students based on theirac ademic performance
Feature extraction for classifying students based on theirac ademic performanceFeature extraction for classifying students based on theirac ademic performance
Feature extraction for classifying students based on theirac ademic performance
 
DagdelenSiriwardaneY..
DagdelenSiriwardaneY..DagdelenSiriwardaneY..
DagdelenSiriwardaneY..
 
Computation graphs - Tensorflow & CNTK
Computation graphs - Tensorflow & CNTKComputation graphs - Tensorflow & CNTK
Computation graphs - Tensorflow & CNTK
 
Machine Learning for Dummies
Machine Learning for DummiesMachine Learning for Dummies
Machine Learning for Dummies
 
Student intervention detection using deep learning technique
Student intervention detection using deep learning techniqueStudent intervention detection using deep learning technique
Student intervention detection using deep learning technique
 
Machine Learning Basics
Machine Learning BasicsMachine Learning Basics
Machine Learning Basics
 
Machine learning
Machine learningMachine learning
Machine learning
 

Similar to xGem Machine Learning

Getting started with Machine Learning
Getting started with Machine LearningGetting started with Machine Learning
Getting started with Machine LearningGaurav Bhalotia
 
introduction to machine learning
introduction to machine learningintroduction to machine learning
introduction to machine learningJohnson Ubah
 
A Platform for Accelerating Machine Learning Applications
 A Platform for Accelerating Machine Learning Applications A Platform for Accelerating Machine Learning Applications
A Platform for Accelerating Machine Learning ApplicationsNVIDIA Taiwan
 
Intro/Overview on Machine Learning Presentation
Intro/Overview on Machine Learning PresentationIntro/Overview on Machine Learning Presentation
Intro/Overview on Machine Learning PresentationAnkit Gupta
 
notes as .ppt
notes as .pptnotes as .ppt
notes as .pptbutest
 
Gans - Generative Adversarial Nets
Gans - Generative Adversarial NetsGans - Generative Adversarial Nets
Gans - Generative Adversarial NetsSajalRastogi8
 
deepnet-lourentzou.ppt
deepnet-lourentzou.pptdeepnet-lourentzou.ppt
deepnet-lourentzou.pptyang947066
 
Machine learning in science and industry — day 4
Machine learning in science and industry — day 4Machine learning in science and industry — day 4
Machine learning in science and industry — day 4arogozhnikov
 
Accelerating stochastic gradient descent using adaptive mini batch size3
Accelerating stochastic gradient descent using adaptive mini batch size3Accelerating stochastic gradient descent using adaptive mini batch size3
Accelerating stochastic gradient descent using adaptive mini batch size3muayyad alsadi
 
Machine Learning Ch 1.ppt
Machine Learning Ch 1.pptMachine Learning Ch 1.ppt
Machine Learning Ch 1.pptARVIND SARDAR
 
Facial Emotion Detection on Children's Emotional Face
Facial Emotion Detection on Children's Emotional FaceFacial Emotion Detection on Children's Emotional Face
Facial Emotion Detection on Children's Emotional FaceTakrim Ul Islam Laskar
 
Separating Hype from Reality in Deep Learning with Sameer Farooqui
 Separating Hype from Reality in Deep Learning with Sameer Farooqui Separating Hype from Reality in Deep Learning with Sameer Farooqui
Separating Hype from Reality in Deep Learning with Sameer FarooquiDatabricks
 
Course Title CS591-Advance Artificial Intelligence
Course Title CS591-Advance Artificial Intelligence           Course Title CS591-Advance Artificial Intelligence
Course Title CS591-Advance Artificial Intelligence CruzIbarra161
 
machinecanthink-160226155704.pdf
machinecanthink-160226155704.pdfmachinecanthink-160226155704.pdf
machinecanthink-160226155704.pdfPranavPatil822557
 

Similar to xGem Machine Learning (20)

Neural Networks
Neural NetworksNeural Networks
Neural Networks
 
Getting started with Machine Learning
Getting started with Machine LearningGetting started with Machine Learning
Getting started with Machine Learning
 
Machine Learning.pptx
Machine Learning.pptxMachine Learning.pptx
Machine Learning.pptx
 
introduction to machine learning
introduction to machine learningintroduction to machine learning
introduction to machine learning
 
Human Emotion Recognition
Human Emotion RecognitionHuman Emotion Recognition
Human Emotion Recognition
 
Occurrence Prediction_NLP
Occurrence Prediction_NLPOccurrence Prediction_NLP
Occurrence Prediction_NLP
 
A Platform for Accelerating Machine Learning Applications
 A Platform for Accelerating Machine Learning Applications A Platform for Accelerating Machine Learning Applications
A Platform for Accelerating Machine Learning Applications
 
Intro/Overview on Machine Learning Presentation
Intro/Overview on Machine Learning PresentationIntro/Overview on Machine Learning Presentation
Intro/Overview on Machine Learning Presentation
 
notes as .ppt
notes as .pptnotes as .ppt
notes as .ppt
 
Gans - Generative Adversarial Nets
Gans - Generative Adversarial NetsGans - Generative Adversarial Nets
Gans - Generative Adversarial Nets
 
deepnet-lourentzou.ppt
deepnet-lourentzou.pptdeepnet-lourentzou.ppt
deepnet-lourentzou.ppt
 
Machine learning in science and industry — day 4
Machine learning in science and industry — day 4Machine learning in science and industry — day 4
Machine learning in science and industry — day 4
 
Accelerating stochastic gradient descent using adaptive mini batch size3
Accelerating stochastic gradient descent using adaptive mini batch size3Accelerating stochastic gradient descent using adaptive mini batch size3
Accelerating stochastic gradient descent using adaptive mini batch size3
 
Machine Learning Ch 1.ppt
Machine Learning Ch 1.pptMachine Learning Ch 1.ppt
Machine Learning Ch 1.ppt
 
Machine learning
 Machine learning Machine learning
Machine learning
 
Facial Emotion Detection on Children's Emotional Face
Facial Emotion Detection on Children's Emotional FaceFacial Emotion Detection on Children's Emotional Face
Facial Emotion Detection on Children's Emotional Face
 
Separating Hype from Reality in Deep Learning with Sameer Farooqui
 Separating Hype from Reality in Deep Learning with Sameer Farooqui Separating Hype from Reality in Deep Learning with Sameer Farooqui
Separating Hype from Reality in Deep Learning with Sameer Farooqui
 
Machine Can Think
Machine Can ThinkMachine Can Think
Machine Can Think
 
Course Title CS591-Advance Artificial Intelligence
Course Title CS591-Advance Artificial Intelligence           Course Title CS591-Advance Artificial Intelligence
Course Title CS591-Advance Artificial Intelligence
 
machinecanthink-160226155704.pdf
machinecanthink-160226155704.pdfmachinecanthink-160226155704.pdf
machinecanthink-160226155704.pdf
 

Recently uploaded

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 

Recently uploaded (20)

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 

xGem Machine Learning

  • 1.
  • 3. AGENDA - Machine Learning - Neural Networks - Types and Tasks – Practical Example - Classification - Tools Used - Data Preparation - Training - Neural Network Architecture
  • 5. Machine learning is not just HYPE. It is much more, and currently is a technology that is being used more and more often. 5 MACHINE LEARNING In its most basic conception, it allows a generic algorithm to solve a problem where the input information is not exactly as expected. It gives a program the ability to interpret new information and understand its meaning.
  • 6. 6 DIFFERENT WAYS TO LEARN Supervised The model is built upon previous data. This data, used for learning is already known. The computer works out the relationship between input - output. Task driven. Unsupervised There is no previous information in this model. The algorithm must be able to extract valid (useful) information from the data presented. Data driven. Reinforcement Interaction with a dynamic environment (constantly changing) provides information as feedback to the Machine Learning algorithm. The feedback takes the form of “rewards” and “punishments”.
  • 7. SUPERVISED LEARNING APPLICATIONS • Database Marketing • Handwriting Recognition • Object Recognition • OCR • Spam Detection • Pattern Recognition • Speech Recognition 7
  • 8. UNSUPERVISED LEARNING APPLICATIONS • Cluster Analysis • Anomaly Detection • Multivariate Analysis 8
  • 9. REINFORCEMENT LEARNING APPLICATIONS • Game Theory and Multi-Agent Interaction • Robotics • Computer Networking • Vehicular Navigation • Industrial Logistic 9
  • 11. NEURAL NETWORKS What is a Neural Network? A neural network is a set of connected nodes (grouped in one or more layers). Each node can take a set of inputs, applies weight to them and calculate an output value. These output values are the input for the next layer of nodes. What we call “nodes” are in reality large matrices being kept in memory. A layer is a collection of matrices. 11
  • 12. DIFFERENT MODELS OF NETWORKS Stateless The algorithm has no memory, there is no effectivity to respond to patterns over time. Stateful The algorithm saves a set of the internal calculation, and this is re-used the next time as part of the input. It has memory. It can produce a result based not only on current data but also on previously computed data. 12
  • 13. MACHINE LEARNING TASKS Classification The output is a classification (i.e. Spam or Not Spam). This is an example of Supervised learning, the classes are all known beforehand. Dimensionality Reduction Reduces the dimensions of the input data, in order to simplify a problem, and to filter out outliers and random variables (Variables that are not functional to the statistical solution of the problem). Regression The output is a continuous value, a probability value (0 to 1) for each input class. Naturally, the sum of all probabilities must amount to 1. 13 Clustering Grouping of information. Similar to Classification, but on an Unsupervised network. Information is grouped in classes, unknown at the start of the process.
  • 15. 15 Sure, easy GIS lookup, give me a few hours! When a user takes a photo, the APP should check whether they are in a National Park … … and check whether the photo is of a bird. I will need a research team and five years. Ref: https://xkcd.com/1425/
  • 18. TOOLS OpenCV Computer Vision. • Edge detection. • Image transformations (depth, size, shape, etc.) • Accessing camera feeds. • Filtering images (applying all types of filters) It has implementations for c++, Java, Python, Android and IOS. Also there is a component called Emgu, which is a port for .NET applications. Scipy Open Source python ecosystem of software for mathematics, science and engineering. Tensorflow Google Deep Learning library. It provides method for handling Data input / output, construct a ML model (with many different options) and adding all kinds of configurable layers. 18 TFLearn Python wrapper around Tensorflow. Exposes a simplified library allowing easier scripting and modeling of Neural Networks, handling data sets, etc. Python Powerful scripting Language. Supports multithreading, 64 bits, etc. Anaconda Anaconda provides work environment isolation and package management for Python. Multiple environments can be defined, each one with a different Python version and modules loaded. Tensorbox Java desktop application that enables monitoring training of the Neural Networks in real time.
  • 19. MODEL SELECTED Learning Type : Supervised Learning Clear classification, known beforehand. The only result expected is a classification whithin a restricted universe (Just three classes). There are no other classes allowed. Learning Task : Regression Having a probability value allows for thresholding of the final result (fine tunning). The final user could decide to adjust the value for reducing either “false positives” or “true negatives”. 19
  • 20. DATA PREPARATION Images of both sides of One Peso and Two Pesos current Arengentine coins (Most ordinary, not special editions). All images where converted to 128x128 size and also to 24 Bits Per Pixel (this is important, it will determine the dimensions of the matrices in the Tensorflow Vectors). So, ten classes (Two for each denomination, side A and B), with a total of 451 images. Each image is rotated every 15 degrees, and each resultant image is augmented in brightness 4 times (So each image, results in 96 images). Final data set, 43296 images. 30 % of this set is used for validation. 20
  • 22. Neural Network Model Convolutional Neural Network Architecture • 1st Layer: Convolutional, Max Pooling, Relu • 2nd Layer: Convolutional, Max Pooling, Relu • 3rd Layer: Convolutional, Max Pooling, Relu • Layer Flattening • Fully Connected Layer • Fully Connected Layer (With Number of Nodes = Number of Classes) • Softmax 22
  • 23. DETECTION APP 23 Circle detection is done using OpenCV HoughCircles function. 1 2 The image to compare to the trained model has to be as similar as those used to train the model in the first place. 1 2
  • 24. REFERENCES LINKS: OpenCV : http://opencv.org Tensorflow: https://tensorflow.org TFLearn: http://tflearn.org Anaconda: https://anaconda.org/anaconda/python Scipy: https://www.scipy.org Emgu: http://www.emgu.com 24