SlideShare a Scribd company logo
Machine Learning
&
A.I.
What we are: a phone assistant
What we do: assist phones.
Who Am I
What Is Machine Learning
A form of artificial intelligence (AI) that provides systems the
ability to automatically learn and improve from experience
without being explicitly programmed
Open Source Projects
TensorFlow Keras
Torch
Machine Learning Applied
GoogleTranslate Google Speech API
Amazon Polly Amazon Lex Wit.ai
+
Latest Algorithms & Projects
Natural Language
Processing
A suite a tools that allows for NLU / NLP tasks
Word Vectors King Queen Man Woman
Hunting
Royalty
Elizabeth
Princess
0.99
0.01
0.06
0.76
0.99
0.08
0.88
0.14
0.05
0.03
0.03
0.82
0.06
0.93
0.92
0.31
A way to represent the ‘meaning’ of a word.
A suite a tools that allows for NLU / NLP tasks
Word Vectors
"Woman - Man + King = ?"
Queen!
King
Woman
Man (0.5,.0.4)
(0.3, 0.8)
(0.3,0.8) - (0.5,0.4) + King = ?
(-0.2,0.4) + King = ?
(-0.2,0.4) + (0.5,0.8) = ?
(0.3,1.2)(0.5,0.8)
(0.3,1.2)
A suite a tools that allows for NLU / NLP tasks
Word Vectors
0.99
0.01
0.06
0.76
0.99
0.08
0.88
0.14
0.05
0.03
0.03
0.82
0.06
0.93
0.92
0.31
King Queen Man Woman
Hunting
Royalty
Elizabeth
Princess
A way to represent the ‘meaning’ of a word.
Pairs of words acquire vector offsets that are
shared by words with similar relationships
“King – Man + Woman = ?” Queen!
Xtrees - Xtree ≈  Xchairs - Xchar ≈  Xcities - Xcity
Sentence Tokenization - Part-of-Speech Tagging - Named Entity Recognition
curl -s localhost:8080/ent -d '{"text":"A place like Digium is full of amazing people. And Matt Jordan.", "model":"en"}'
[
{
"end": 19,
"start": 13,
"text": "Digium",
"type": "GPE"
},
{
"end": 62,
"start": 51,
"text": "Matt Jordan",
"type": "PERSON"
}
]%
https://github.com/RasaHQ/rasa_nlu
## intent:affirm
- yes
- yep
- yeah
- indeed
- that's right
- ok
- great
- right, thank you
- correct
- great choice
- sounds really good
## intent:goodbye
- bye
- goodbye
- good bye
- stop
- end
- farewell
- Bye bye
- have a good one
## intent:greet
- hey
- howdy
- hey there
- hello
- hi
- good morning
- good evening
- dear sir
## intent:restaurant_search
- i'm looking for a place to eat
- I want to grab lunch
- I am searching for a dinner spot
- i'm looking for a place in the [north](location) of town
- show me [chinese](cuisine) restaurants
- show me [chines](cuisine:chinese) restaurants
- show me a [mexican](cuisine) place in the [centre](location)
- i am looking for an [indian](cuisine) spot called olaolaolaolaolaola
- search for restaurants
- anywhere in the [west](location)
- anywhere near [18328](location)
- I am looking for [asian fusion](cuisine) food
- I am looking a restaurant in [29432](location)
- I am looking for [mexican indian fusion](cuisine)
- [central](location) [indian](cuisine) restaurant
curl -XPOST localhost:5000/parse -d '{"q":"I want something delicious",
"project":"astricon_model"}'
{
"entities": [],
"intent":
{
"confidence": 0.45734276497763227,
"name": "restaurant_search"
},
"text": "I want something delicious",
"intent_ranking":
[{
"confidence": 0.45734276497763227,
"name": "restaurant_search"
},
{
"confidence": 0.32659239812473556,
"name": "affirm"
},
{
"confidence": 0.11959261779323696,
"name": "goodbye"
},
{
"confidence": 0.09647221910439494,
"name": "greet"
}]
}
Sentiment Analysis
Sentiment Analysis
AFINN-165 - list of English words rated between -5 -> +5
curl --data "text=Astricon%20is%20such%20an%20amazing%20time" http://localhost:8888
{"score":4,"comparative":0.6666666666666666,"tokens":["astricon","is","such","an","amazing","time"],"words":
["amazing"],"positive":["amazing"],"negative":[]}%
curl --data "text=👍 %20🍻 " http://localhost:8888
{"score":4,"comparative":2,"tokens":["👍 ","🍻 "],"words":["🍻 ","👍 "],"positive":["🍻 ","👍 "],"negative":[]}%
Emoji Sentiment Ranking
Speech Recognition
• Implementation of the Baidu Deep Speech research paper
• UtilizesTensorflow as the underlying implementation engine
• Based on a deep learning neural network model
Mozilla Deep Speech
Deep Learning Neural Network
Input Layer
Hidden Layer Hidden Layer
Output Layer
Cost Function
Backpropogation updates
weights throughout
network
Backpropagation Simple Example
Gradient Descent
Mozilla Deep Speech
Word Error Rate of 13% with best available corpora
10,000 hours of recordings for release in Q4 
https://voice.mozilla.org
• Implementation of the Baidu Deep Speech research paper
• UtilizesTensorflow as the underlying implementation engine
• Based on a deep learning neural network model
Speech & Music Synthesis
WaveNet
Concatenative
Parametric
WaveNet
MOH
Neural Network Based
Tacotron
“The buses aren't the problem, they actually provide a solution.”
“The buses aren't the PROBLEM, they actually provide a SOLUTION.”
Google research paper: https://arxiv.org/pdf/1703.10135.pdf
A Fully End-to-End Text-To-Speech Synthesis Model,
• Uses <text, audio> pairs to generate complete voices directly from text
• Much faster to train than WaveNet while retaining high MOS scores
• Can handle complex & interesting variation in sentence structure
"Basilar membrane and otolaryngology are not auto-correlations"
Stress
Complexity
An Intro Into Partial
Differential Equations
Just Kidding.
Questions?
Evan McGee
@startledmarmot 

evan@hifelix.io

More Related Content

Similar to AstriCon 2017 - Machine Learning, AI & Asterisk

NUS iOS Swift Talk
NUS iOS Swift TalkNUS iOS Swift Talk
NUS iOS Swift Talk
Gabriel Lim
 
Python for scientific computing
Python for scientific computingPython for scientific computing
Python for scientific computingGo Asgard
 
Python Novice to Ninja
Python Novice to NinjaPython Novice to Ninja
Python Novice to Ninja
Al Sayed Gamal
 
Building Conversational Experiences with Actions on Google
Building Conversational Experiences with Actions on GoogleBuilding Conversational Experiences with Actions on Google
Building Conversational Experiences with Actions on Google
Peter Friese
 
UX STRAT Europe 2019: Zhaochang He, VMware
UX STRAT Europe 2019: Zhaochang He, VMwareUX STRAT Europe 2019: Zhaochang He, VMware
UX STRAT Europe 2019: Zhaochang He, VMware
UX STRAT
 
Python.pptx
Python.pptxPython.pptx
Python.pptx
AshaS74
 
Python slide
Python slidePython slide
Leveraging Lucene/Solr as a Knowledge Graph and Intent Engine
Leveraging Lucene/Solr as a Knowledge Graph and Intent EngineLeveraging Lucene/Solr as a Knowledge Graph and Intent Engine
Leveraging Lucene/Solr as a Knowledge Graph and Intent Engine
Trey Grainger
 
Applying Alexa’s Natural Language to Your Challenges - ALX326 - re:Invent 2017
Applying Alexa’s Natural Language to Your Challenges - ALX326 - re:Invent 2017Applying Alexa’s Natural Language to Your Challenges - ALX326 - re:Invent 2017
Applying Alexa’s Natural Language to Your Challenges - ALX326 - re:Invent 2017
Amazon Web Services
 
ALX326_Applying Alexa’s Natural Language to Your Challenges
ALX326_Applying Alexa’s Natural Language to Your ChallengesALX326_Applying Alexa’s Natural Language to Your Challenges
ALX326_Applying Alexa’s Natural Language to Your Challenges
Amazon Web Services
 
Word embeddings as a service - PyData NYC 2015
Word embeddings as a service -  PyData NYC 2015Word embeddings as a service -  PyData NYC 2015
Word embeddings as a service - PyData NYC 2015
François Scharffe
 
The Enterprise Architecture you always wanted: A Billion Transactions Per Mon...
The Enterprise Architecture you always wanted: A Billion Transactions Per Mon...The Enterprise Architecture you always wanted: A Billion Transactions Per Mon...
The Enterprise Architecture you always wanted: A Billion Transactions Per Mon...
Thoughtworks
 
useR! 2012 Talk
useR! 2012 TalkuseR! 2012 Talk
useR! 2012 Talk
rtelmore
 
Building conversational experiences with Actions on Google
Building conversational experiences with Actions on GoogleBuilding conversational experiences with Actions on Google
Building conversational experiences with Actions on Google
Ido Green
 
Functional (web) development with Clojure
Functional (web) development with ClojureFunctional (web) development with Clojure
Functional (web) development with Clojure
Henrik Eneroth
 
Practical Tips to Identify and Engage Talent
Practical Tips to Identify and Engage TalentPractical Tips to Identify and Engage Talent
Practical Tips to Identify and Engage Talent
RecruitDC
 
Microsoft Makes Machine Learning Accessible and Affordable
Microsoft Makes Machine Learning Accessible and AffordableMicrosoft Makes Machine Learning Accessible and Affordable
Microsoft Makes Machine Learning Accessible and Affordable
Douglas Starnes
 
Create a blueprint for strategy workshop overview | Business Model Canvas
Create a blueprint for strategy workshop overview | Business Model CanvasCreate a blueprint for strategy workshop overview | Business Model Canvas
Create a blueprint for strategy workshop overview | Business Model Canvas
The Online Project Australia
 
Úvod do programování 5
Úvod do programování 5Úvod do programování 5
Úvod do programování 5
Karel Minarik
 
Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017
Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017
Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017
Codemotion
 

Similar to AstriCon 2017 - Machine Learning, AI & Asterisk (20)

NUS iOS Swift Talk
NUS iOS Swift TalkNUS iOS Swift Talk
NUS iOS Swift Talk
 
Python for scientific computing
Python for scientific computingPython for scientific computing
Python for scientific computing
 
Python Novice to Ninja
Python Novice to NinjaPython Novice to Ninja
Python Novice to Ninja
 
Building Conversational Experiences with Actions on Google
Building Conversational Experiences with Actions on GoogleBuilding Conversational Experiences with Actions on Google
Building Conversational Experiences with Actions on Google
 
UX STRAT Europe 2019: Zhaochang He, VMware
UX STRAT Europe 2019: Zhaochang He, VMwareUX STRAT Europe 2019: Zhaochang He, VMware
UX STRAT Europe 2019: Zhaochang He, VMware
 
Python.pptx
Python.pptxPython.pptx
Python.pptx
 
Python slide
Python slidePython slide
Python slide
 
Leveraging Lucene/Solr as a Knowledge Graph and Intent Engine
Leveraging Lucene/Solr as a Knowledge Graph and Intent EngineLeveraging Lucene/Solr as a Knowledge Graph and Intent Engine
Leveraging Lucene/Solr as a Knowledge Graph and Intent Engine
 
Applying Alexa’s Natural Language to Your Challenges - ALX326 - re:Invent 2017
Applying Alexa’s Natural Language to Your Challenges - ALX326 - re:Invent 2017Applying Alexa’s Natural Language to Your Challenges - ALX326 - re:Invent 2017
Applying Alexa’s Natural Language to Your Challenges - ALX326 - re:Invent 2017
 
ALX326_Applying Alexa’s Natural Language to Your Challenges
ALX326_Applying Alexa’s Natural Language to Your ChallengesALX326_Applying Alexa’s Natural Language to Your Challenges
ALX326_Applying Alexa’s Natural Language to Your Challenges
 
Word embeddings as a service - PyData NYC 2015
Word embeddings as a service -  PyData NYC 2015Word embeddings as a service -  PyData NYC 2015
Word embeddings as a service - PyData NYC 2015
 
The Enterprise Architecture you always wanted: A Billion Transactions Per Mon...
The Enterprise Architecture you always wanted: A Billion Transactions Per Mon...The Enterprise Architecture you always wanted: A Billion Transactions Per Mon...
The Enterprise Architecture you always wanted: A Billion Transactions Per Mon...
 
useR! 2012 Talk
useR! 2012 TalkuseR! 2012 Talk
useR! 2012 Talk
 
Building conversational experiences with Actions on Google
Building conversational experiences with Actions on GoogleBuilding conversational experiences with Actions on Google
Building conversational experiences with Actions on Google
 
Functional (web) development with Clojure
Functional (web) development with ClojureFunctional (web) development with Clojure
Functional (web) development with Clojure
 
Practical Tips to Identify and Engage Talent
Practical Tips to Identify and Engage TalentPractical Tips to Identify and Engage Talent
Practical Tips to Identify and Engage Talent
 
Microsoft Makes Machine Learning Accessible and Affordable
Microsoft Makes Machine Learning Accessible and AffordableMicrosoft Makes Machine Learning Accessible and Affordable
Microsoft Makes Machine Learning Accessible and Affordable
 
Create a blueprint for strategy workshop overview | Business Model Canvas
Create a blueprint for strategy workshop overview | Business Model CanvasCreate a blueprint for strategy workshop overview | Business Model Canvas
Create a blueprint for strategy workshop overview | Business Model Canvas
 
Úvod do programování 5
Úvod do programování 5Úvod do programování 5
Úvod do programování 5
 
Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017
Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017
Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017
 

Recently uploaded

Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
ThomasParaiso2
 

Recently uploaded (20)

Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
 

AstriCon 2017 - Machine Learning, AI & Asterisk

  • 2. What we are: a phone assistant What we do: assist phones. Who Am I
  • 3. What Is Machine Learning A form of artificial intelligence (AI) that provides systems the ability to automatically learn and improve from experience without being explicitly programmed
  • 5. Machine Learning Applied GoogleTranslate Google Speech API Amazon Polly Amazon Lex Wit.ai
  • 6. +
  • 9. A suite a tools that allows for NLU / NLP tasks Word Vectors King Queen Man Woman Hunting Royalty Elizabeth Princess 0.99 0.01 0.06 0.76 0.99 0.08 0.88 0.14 0.05 0.03 0.03 0.82 0.06 0.93 0.92 0.31 A way to represent the ‘meaning’ of a word.
  • 10. A suite a tools that allows for NLU / NLP tasks Word Vectors "Woman - Man + King = ?" Queen! King Woman Man (0.5,.0.4) (0.3, 0.8) (0.3,0.8) - (0.5,0.4) + King = ? (-0.2,0.4) + King = ? (-0.2,0.4) + (0.5,0.8) = ? (0.3,1.2)(0.5,0.8) (0.3,1.2)
  • 11. A suite a tools that allows for NLU / NLP tasks Word Vectors 0.99 0.01 0.06 0.76 0.99 0.08 0.88 0.14 0.05 0.03 0.03 0.82 0.06 0.93 0.92 0.31 King Queen Man Woman Hunting Royalty Elizabeth Princess A way to represent the ‘meaning’ of a word. Pairs of words acquire vector offsets that are shared by words with similar relationships “King – Man + Woman = ?” Queen! Xtrees - Xtree ≈  Xchairs - Xchar ≈  Xcities - Xcity
  • 12. Sentence Tokenization - Part-of-Speech Tagging - Named Entity Recognition curl -s localhost:8080/ent -d '{"text":"A place like Digium is full of amazing people. And Matt Jordan.", "model":"en"}' [ { "end": 19, "start": 13, "text": "Digium", "type": "GPE" }, { "end": 62, "start": 51, "text": "Matt Jordan", "type": "PERSON" } ]%
  • 13. https://github.com/RasaHQ/rasa_nlu ## intent:affirm - yes - yep - yeah - indeed - that's right - ok - great - right, thank you - correct - great choice - sounds really good ## intent:goodbye - bye - goodbye - good bye - stop - end - farewell - Bye bye - have a good one ## intent:greet - hey - howdy - hey there - hello - hi - good morning - good evening - dear sir ## intent:restaurant_search - i'm looking for a place to eat - I want to grab lunch - I am searching for a dinner spot - i'm looking for a place in the [north](location) of town - show me [chinese](cuisine) restaurants - show me [chines](cuisine:chinese) restaurants - show me a [mexican](cuisine) place in the [centre](location) - i am looking for an [indian](cuisine) spot called olaolaolaolaolaola - search for restaurants - anywhere in the [west](location) - anywhere near [18328](location) - I am looking for [asian fusion](cuisine) food - I am looking a restaurant in [29432](location) - I am looking for [mexican indian fusion](cuisine) - [central](location) [indian](cuisine) restaurant curl -XPOST localhost:5000/parse -d '{"q":"I want something delicious", "project":"astricon_model"}' { "entities": [], "intent": { "confidence": 0.45734276497763227, "name": "restaurant_search" }, "text": "I want something delicious", "intent_ranking": [{ "confidence": 0.45734276497763227, "name": "restaurant_search" }, { "confidence": 0.32659239812473556, "name": "affirm" }, { "confidence": 0.11959261779323696, "name": "goodbye" }, { "confidence": 0.09647221910439494, "name": "greet" }] }
  • 15. Sentiment Analysis AFINN-165 - list of English words rated between -5 -> +5 curl --data "text=Astricon%20is%20such%20an%20amazing%20time" http://localhost:8888 {"score":4,"comparative":0.6666666666666666,"tokens":["astricon","is","such","an","amazing","time"],"words": ["amazing"],"positive":["amazing"],"negative":[]}% curl --data "text=👍 %20🍻 " http://localhost:8888 {"score":4,"comparative":2,"tokens":["👍 ","🍻 "],"words":["🍻 ","👍 "],"positive":["🍻 ","👍 "],"negative":[]}% Emoji Sentiment Ranking
  • 17. • Implementation of the Baidu Deep Speech research paper • UtilizesTensorflow as the underlying implementation engine • Based on a deep learning neural network model Mozilla Deep Speech
  • 18. Deep Learning Neural Network Input Layer Hidden Layer Hidden Layer Output Layer Cost Function Backpropogation updates weights throughout network Backpropagation Simple Example
  • 20. Mozilla Deep Speech Word Error Rate of 13% with best available corpora 10,000 hours of recordings for release in Q4  https://voice.mozilla.org • Implementation of the Baidu Deep Speech research paper • UtilizesTensorflow as the underlying implementation engine • Based on a deep learning neural network model
  • 21. Speech & Music Synthesis
  • 23. Tacotron “The buses aren't the problem, they actually provide a solution.” “The buses aren't the PROBLEM, they actually provide a SOLUTION.” Google research paper: https://arxiv.org/pdf/1703.10135.pdf A Fully End-to-End Text-To-Speech Synthesis Model, • Uses <text, audio> pairs to generate complete voices directly from text • Much faster to train than WaveNet while retaining high MOS scores • Can handle complex & interesting variation in sentence structure "Basilar membrane and otolaryngology are not auto-correlations" Stress Complexity
  • 24. An Intro Into Partial Differential Equations Just Kidding.