Applications of Machine Learning Algorithms. Speaker: Mohamed Elwakdy Date: 16/02/

Similar documents
Twitter Sentiment Classification on Sanders Data using Hybrid Approach

Analysis of Emotion Recognition System through Speech Signal Using KNN & GMM Classifier

IT Students Workshop within Strategic Partnership of Leibniz University and Peter the Great St. Petersburg Polytechnic University

Human Emotion Recognition From Speech

CS Machine Learning

A Web Based Annotation Interface Based of Wheel of Emotions. Author: Philip Marsh. Project Supervisor: Irena Spasic. Project Moderator: Matthew Morgan

Speech Emotion Recognition Using Support Vector Machine

Python Machine Learning

Evaluating Interactive Visualization of Multidimensional Data Projection with Feature Transformation

CS 446: Machine Learning

Rule Learning With Negation: Issues Regarding Effectiveness

Rule Learning with Negation: Issues Regarding Effectiveness

Module 12. Machine Learning. Version 2 CSE IIT, Kharagpur

Speech Recognition at ICSI: Broadcast News and beyond

Australian Journal of Basic and Applied Sciences

Indian Institute of Technology, Kanpur

The 9 th International Scientific Conference elearning and software for Education Bucharest, April 25-26, / X

OPTIMIZATINON OF TRAINING SETS FOR HEBBIAN-LEARNING- BASED CLASSIFIERS

Unit 3: Lesson 1 Decimals as Equal Divisions

Assignment 1: Predicting Amazon Review Ratings

CS4491/CS 7265 BIG DATA ANALYTICS INTRODUCTION TO THE COURSE. Mingon Kang, PhD Computer Science, Kennesaw State University

Lecture 1: Machine Learning Basics

Switchboard Language Model Improvement with Conversational Data from Gigaword

Generative models and adversarial training

WHEN THERE IS A mismatch between the acoustic

System Implementation for SemEval-2017 Task 4 Subtask A Based on Interpolated Deep Neural Networks

Historical maintenance relevant information roadmap for a self-learning maintenance prediction procedural approach

Speech Segmentation Using Probabilistic Phonetic Feature Hierarchy and Support Vector Machines

Lecture 1: Basic Concepts of Machine Learning

Answer Key For The California Mathematics Standards Grade 1

On Human Computer Interaction, HCI. Dr. Saif al Zahir Electrical and Computer Engineering Department UBC

ScienceDirect. A Framework for Clustering Cardiac Patient s Records Using Unsupervised Learning Techniques

Speaker Identification by Comparison of Smart Methods. Abstract

Using Web Searches on Important Words to Create Background Sets for LSI Classification

Word Segmentation of Off-line Handwritten Documents

AUTOMATED FABRIC DEFECT INSPECTION: A SURVEY OF CLASSIFIERS

Support Vector Machines for Speaker and Language Recognition

(Sub)Gradient Descent

OCR for Arabic using SIFT Descriptors With Online Failure Prediction

Linking Task: Identifying authors and book titles in verbose queries

Learning Methods in Multilingual Speech Recognition

GOLD Objectives for Development & Learning: Birth Through Third Grade

Lip reading: Japanese vowel recognition by tracking temporal changes of lip shape

Probabilistic Latent Semantic Analysis

Course Outline. Course Grading. Where to go for help. Academic Integrity. EE-589 Introduction to Neural Networks NN 1 EE

Rule discovery in Web-based educational systems using Grammar-Based Genetic Programming

A Case Study: News Classification Based on Term Frequency

Modeling function word errors in DNN-HMM based LVCSR systems

Experiments with SMS Translation and Stochastic Gradient Descent in Spanish Text Author Profiling

Stacks Teacher notes. Activity description. Suitability. Time. AMP resources. Equipment. Key mathematical language. Key processes

CSL465/603 - Machine Learning

Likelihood-Maximizing Beamforming for Robust Hands-Free Speech Recognition

OFFICE SUPPORT SPECIALIST Technical Diploma

Reducing Features to Improve Bug Prediction

Artificial Neural Networks written examination

AUTOMATIC DETECTION OF PROLONGED FRICATIVE PHONEMES WITH THE HIDDEN MARKOV MODELS APPROACH 1. INTRODUCTION

Phonetic- and Speaker-Discriminant Features for Speaker Recognition. Research Project

Modeling function word errors in DNN-HMM based LVCSR systems

Multilingual Sentiment and Subjectivity Analysis

Semi-supervised methods of text processing, and an application to medical concept extraction. Yacine Jernite Text-as-Data series September 17.

Functional Skills Mathematics Level 2 assessment

Role of Pausing in Text-to-Speech Synthesis for Simultaneous Interpretation

Beyond the Pipeline: Discrete Optimization in NLP

Semi-Supervised Face Detection

Design Of An Automatic Speaker Recognition System Using MFCC, Vector Quantization And LBG Algorithm

DOMAIN MISMATCH COMPENSATION FOR SPEAKER RECOGNITION USING A LIBRARY OF WHITENERS. Elliot Singer and Douglas Reynolds

Grade 6: Correlated to AGS Basic Math Skills

Calibration of Confidence Measures in Speech Recognition

Multi-Lingual Text Leveling

Individual Component Checklist L I S T E N I N G. for use with ONE task ENGLISH VERSION

A Comparison of Two Text Representations for Sentiment Analysis

A study of speaker adaptation for DNN-based speech synthesis

Situational Virtual Reference: Get Help When You Need It

Statewide Framework Document for:

A NOVEL SCHEME FOR SPEAKER RECOGNITION USING A PHONETICALLY-AWARE DEEP NEURAL NETWORK. Yun Lei Nicolas Scheffer Luciana Ferrer Mitchell McLaren

arxiv: v2 [cs.cv] 30 Mar 2017

Eliciting Language in the Classroom. Presented by: Dionne Ramey, SBCUSD SLP Amanda Drake, SBCUSD Special Ed. Program Specialist

Background Information. Instructions. Problem Statement. HOMEWORK INSTRUCTIONS Homework #3 Higher Education Salary Problem

A Bayesian Learning Approach to Concept-Based Document Classification

Class-Discriminative Weighted Distortion Measure for VQ-Based Speaker Identification

Iterative Cross-Training: An Algorithm for Learning from Unlabeled Web Pages

Using Hashtags to Capture Fine Emotion Categories from Tweets

BODY LANGUAGE ANIMATION SYNTHESIS FROM PROSODY AN HONORS THESIS SUBMITTED TO THE DEPARTMENT OF COMPUTER SCIENCE OF STANFORD UNIVERSITY

International Journal of Computational Intelligence and Informatics, Vol. 1 : No. 4, January - March 2012

A Comparison of DHMM and DTW for Isolated Digits Recognition System of Arabic Language

Learning From the Past with Experiment Databases

Activity Recognition from Accelerometer Data

Spoken Language Parsing Using Phrase-Level Grammars and Trainable Classifiers

South Carolina College- and Career-Ready Standards for Mathematics. Standards Unpacking Documents Grade 5

A Context-Driven Use Case Creation Process for Specifying Automotive Driver Assistance Systems

The Common European Framework of Reference for Languages p. 58 to p. 82

Math-U-See Correlation with the Common Core State Standards for Mathematical Content for Third Grade

Speaker recognition using universal background model on YOHO database

Montana Content Standards for Mathematics Grade 3. Montana Content Standards for Mathematical Practices and Mathematics Content Adopted November 2011

EDCI 699 Statistics: Content, Process, Application COURSE SYLLABUS: SPRING 2016

Interpretive (seeing) Interpersonal (speaking and short phrases)

have to be modeled) or isolated words. Output of the system is a grapheme-tophoneme conversion system which takes as its input the spelling of words,

PREDICTING SPEECH RECOGNITION CONFIDENCE USING DEEP LEARNING WITH WORD IDENTITY AND SCORE FEATURES

Action Recognition and Video

Analyzing sentiments in tweets for Tesla Model 3 using SAS Enterprise Miner and SAS Sentiment Analysis Studio

Transcription:

Applications of Machine Learning Algorithms Speaker: Mohamed Elwakdy Date: 16/02/2017 Email: mohamed.elwakdy@statslab-bi.co.nz

Sponsors

Outline & Content What is Machine Learning? Machine Learning Algorithms Training and Testing Types of Classifiers Naive Bayes Classifier Support Vector Machine (SVM) Classifier Examples of Naive Bayes Classifier and SVM Classifier Using R Applications of Machine Learning Algorithms Emotion Recognition Speech Recognition

What is Machine Learning? Machine learning is the subfield of computer science that gives computers the ability to learn from data and this is very different than traditional computer programming. Traditional Programming Data Program Output

What is Machine Learning Machine Learning Data Training / Testing Program (System Classifier) Output Classification Accuracy

Machine Learning Algorithms The algorithms should extract useful information from samples to make training of the classifier and then getting a classification accuracy through making evaluation of the algorithms using testing samples. Training is the process of making the system able to learn using different types of Data, Signals or Images. Testing is the process to test the system and know its ability to discriminate between different types of Data, Signals or Images.

Training and testing Data/Images/Signals acquisition (Training/Testing) A Practical usage B Universal set A Practical usage B Training set (Training of Data/ Signals/ Images ) Testing set (Testing of Data/Signals /Images)

Machine Learning Algorithms Machine Learning tasks include: 1- Supervised Machine Learning task: Classification (discrete labels) A B C Supervised learning

Machine Learning Algorithms 2- Unsupervised Machine Learning task Clustering

Types of Classifiers There are two kinds of classifiers will be presented in this workshop: Naive Bayes Classifier Support Vector Machine (SVM)Classifier

Naive Bayes Classifier Naive Bayes is a simple technique for constructing classifier that is used to represent the vectors of features values of some objects for training and then use some other features of some other vectors of feature values for testing. For example, a fruit may be considered to be an apple if it is red, round, and about 5-7 cm in diameter. A Naive Bayes classifier will use these features for training. If I give the Naive Bayes classifier some other features of another apple, It will recognize that this fruit is an apple regardless if there is any possible correlation between the color, roundness, and diameter features or not.

Example of Naive Bayes Classifier using R Example of Naive Bayes Classifier using R We have features of three kinds of flowers: Setosa, Versicolor and Virginica in IRIS Data Set. We need to discriminate between these three kinds of flowers through their features so we will take some of three features as a training of Naive Bayes classifier and some of these features as a testing of this classifier to know the ability of this classifier to discriminate between these three kinds of flowers.

Example of Naive Bayes Classifier using Microsoft R The features, which are collected of these flowers, are Sepal length, Sepal width, Petal length and Petal width.

Example of Naive Bayes Classifier using R head function is used to get the first several rows of a matrix or data frame of iris Data Set: head (iris)

Example of Naive Bayes Classifier using Microsoft R summary function is used to get a meaningful summary of a data set; for each column of iris Data-Set such as the minimum value, maximum value and the mean value. summary (iris)

Example of Naive Bayes Classifier using R Make filtration of the iris Data Set by selecting some rows for testing. testidx <- which(1:length(iris[, 1])%%5 == 0) testidx [1] 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 [19] 95 100 105 110 115 120 125 130 135 140 145 150

Example of Naive Bayes Classifier using R Make selection of the rows which will be used to make training of the Naive Bayes Classifier. If you note that row 10 and 20 is not in the list of training matrix because these lines are selected as part of other rows which will be used for testing. iristrain <- iris[-testidx,] iristrain

Example of Naive Bayes Classifier using R Make selection of the rows which will be used for testing. If you note that rows 10 and 20 in the list of these rows because these rows are used for testing. iristest <- iris[testidx,] iristest

Example of Naive Bayes Classifier using R Use the library of Naive Bayes classifier which called klar. We don t need to make installation of klar because this backage is already installed in R. library(klar) Make training of the Naive Bayes Classifier using the training data as follows: nbmodel <- NaiveBayes(Species~., data=iristrain)

Example of Naive Bayes Classifier using R Make prediction of three kinds of flowers using testing data. Here, the classifier will predict with three kinds of the flowers based on the probabilities of these flowers. The highest probability indicates to the predicted flower which may Setosa,Versicolor or Virginica. prediction <- predict(nbmodel, iristest[,-5]) prediction

Example of Naive Bayes Classifier using R The last Step, we can see, the Naive Bayes classifier can predict with the Setosa and Versicolor flowers perfectly where the classification accuracy is 100%, but it can t predict the Virginica flower perfectly where the classification accuracy is 80%. table(prediction$class, iristest[,5])

Support Vector Machine (SVM) classifier SVM is basically a two-class classifier. The SVM Uses machine learning to solve classification problems. Training: Find a decision boundary (a hyperplane) that divides the data into two classes. There are two types of the Support Vector Machine Classifier: A- Linear Support Vector Machine Classifier B- Non-linear Support Vector Machine Classifier.

Example of Support Vector Machine (SVM) using R Here, we will use the previous example to make a preparation of data through selecting some rows in iris Data-set for training and some rows in iris Data-set for testing. testidx <- which(1:length(iris[,1])%%5 == 0) iristrain <- iris[-testidx,] # 120 samples iristest <- iris[testidx,] # 30 samples Use the library of SVM classifier which called e1071. We don t need to make installation of e1071 because this backage is already installed in R. library(e1071) Make training of SVM classifier as follows: model <- svm(species~., data=iristrain)

Example of Support Vector Machine (SVM) using R Using the SVM in prediction by testing the model with a new data. In this step, we will see the ability of SVM in discriminating between different types of Data of three kinds of flowers: Setosa, Versicolor and Virginica. prediction <- predict (model, iristest[,-5]) prediction

Example of Support Vector Machine (SVM) using R The last Step, we will see whether the SVM classifier can predict with all types of flowers based on the testing data which we gave to it or not. As we can see, the SVM classifier can predict with the Setosa and Versicolor flowers perfectly where the classification accuracy is 100%, but it can t predict the Virginica flower perfectly where the classification accuracy is 90%. table(iristest$species, prediction)

Applications of Machine Learning Algorithms EMOTION RECOGNITION Emotion recognition is the process in taking a facial expression in an image which represents the identifying human emotion and understand this emotions. The emotions detected are anger, contempt, disgust, fear, happiness, neutral, sadness, and surprise. https://www.youtube.com/watch?v=8yrufcospq I

Emotion Recognition

Emotion Recognition Algorithm Training Set including three facial expressions of Michael s face (happiness, neutral and sadness) Features Detection of Michael face Features Extraction of Michael s face Preparation of Data Clustering (put all data into clusters) Testing Set including three facial expressions of Michael s face (happiness, neutral and sadness) Features Detection of Michael face Features Extraction of Michael s face Preparation of Data Clustering (put all data into clusters) Classifier Classification Accuracy

Classification Accuracy Applications of Machine Learning Algorithms SPEECH RECOGNITION Speech recognition algorithms have the ability to understand spoken language through converting the acoustic signals which are captured using a microphone or a telephone, to a set of words. The recognized words, which are captured by a machine or program, are used an end in themselves for many applications such as data entry, commands & control and etc. https://www.youtube.com/watch?v=yxxrahvtafi

Classification Accuracy Speech Recognition Algorithm Training Set including some words Features Extraction of these words Preparation of Data Testing Set including some words Features Extraction of these words Preparation of Data Classifier

Applications of Machine Learning Algorithms Workshop Go to: https://www.meetup.com/auckland-machine- Learning-Meetup/events/237125412/ Discount code Use DATADUDE to get 10% off

Thank You