SlideShare a Scribd company logo
Improving RASA NLU Training
Using Machine Learning
Interpretability Techniques
Zvi Topol, MuyVentive LLC
Background
š Data Scientist with experience in various verticals – media and entertainment, marketing
analytics, industrial IOT
š Started MuyVentive, LLC to work on Data Science and Interpretable Machine Learning
Tools with Focus on Conversational Interfaces
š Also offering Data Science consulting for startups
What is this Talk about?
Visualization
Interpretable
Machine
Learning
NLU
š Introduction to the topic of interpretable ML and how it can be applied to Rasa NLU using
open-source software
Interpretable Machine Learning
š Very active research topic
š Different audiences and requirements for interpretability
š Interpreting classifiers
š Decision trees/decision lists (IF-THEN statements) (simple models, e.g. rule lists, decision trees)
š Black box method explanations – local vs. global (Examples - LIME, Anchors, Shapley, decision
trees, PDP. Influence functions)
š Training and Test Set Analysis
š Finding conflicts/commonalities between classes (Example – ScatterText)
š “diverse” training sets
Common Stack for Conversational
Interfaces
NLU (RASA NLU)
NLG
Dialog Management (RASA Core)
TTS
STT
Common Natural Language
Understanding Concepts
“What is the balance in my checking account?”
Intent:
PersonalAccountsIntent
Entities
“Whom can I speak with regarding mortgages?”
Entities
Intent: OtherServicesIntent
Typical Training of NLU Models
š Identify Intents and entities
š Provide multiple examples for each intent with labeled entities
š Train machine learning algorithms for intent classification and entity recognition
š Rasa also supports multi-intents
š This talk – focus on single intents
Scoring the NLU Model
{
"intent": { "name": "other_services_intent", "confidence": 0.8726195067816652
},
"entities": [],
"intent_ranking": [ { "name": "other_services_intent", "confidence":
0.8726195067816652 },
{ "name": "personal_accounts_intent", "confidence":
0.12738049321833478 } ],
"text": "what mortgage rate do you offer for 30 yr loans?",
"project": "nlu",
"model": "model_20181101-071533”
}
Common Approaches For
Troubleshooting Operationalized NLU
Models
š Monitor performance of model, identify misclassified examples with top confidence score
as candidates to refine and retrain
š Use Active Learning to intelligently pick which non-labeled samples to label
š How to identify (confusing) similar intents with different labels?
ScatterText
š Project by Jason Kessler with focus on visualizing differences between textual corpuses by
word frequencies
š https://github.com/JasonKessler/scattertext
š Can be leveraged to identify words which are unique for each intent and common across
intents
ScatterText Example
ScatterText - Some Considerations
š Scalability
š Binary
š Needs enough examples
š Supports unigrams only
š Synonyms/deeper semantic simalarities
LIME
š Local Interpretable Model-Agnostic Explanations
š Explaining classification for text and image data as well as regression models by getting as
an input:
š A model
š An input example X with label and confidence score
š Sampling examples in the local vicinity of X to fit a simple interpretable model
š Use the model to explain the global model
LIME Example
LIME For NLU
Without the word ”annual”
š { "intent": { "name":
"personal_accounts_intent",
"confidence": 0.5760200117371109 },
"entities": [], "intent_ranking": [ {
"name": "personal_accounts_intent",
"confidence": 0.5760200117371109 }, {
"name": "other_services_intent",
"confidence": 0.42397998826288913 }
], "text": "what are rates for my savings
accounts", "project": "nlu", "model":
"model_20181030-064347" }
Original
š { "intent": { "name":
"other_services_intent", "confidence":
0.5537862252760863 }, "entities": [],
"intent_ranking": [ { "name":
"other_services_intent", "confidence":
0.5537862252760863 }, { "name":
"personal_accounts_intent",
"confidence": 0.44621377472391366 }
], "text": "what are annual rates for my
savings accounts", "project": "nlu",
"model": "model_20181030-064347" }
For More Information
š There is a lot more to interpretable ML and conversational analytics
š MuyVentive blog - http://www.muyventive.com/blog.html
š zvi.topol@muyventive.com

More Related Content

What's hot

Project Report on Manikchand Oxyrich
Project Report on Manikchand OxyrichProject Report on Manikchand Oxyrich
Project Report on Manikchand Oxyrich
DjSai Pune
 
Suggestion Analysis PowerPoint Presentation Slides
Suggestion Analysis PowerPoint Presentation Slides Suggestion Analysis PowerPoint Presentation Slides
Suggestion Analysis PowerPoint Presentation Slides
SlideTeam
 
Best practices to deliver data analytics to the business with power bi
Best practices to deliver data analytics to the business with power biBest practices to deliver data analytics to the business with power bi
Best practices to deliver data analytics to the business with power bi
Satya Shyam K Jayanty
 
Knowledge management in theory and practice
Knowledge management in theory and practiceKnowledge management in theory and practice
Knowledge management in theory and practicethewi025
 
Knowledge Management
Knowledge ManagementKnowledge Management
Knowledge Management
Apoorva Rashmi
 
Business Intelligence Trends 2020
Business Intelligence Trends 2020Business Intelligence Trends 2020
Business Intelligence Trends 2020
Wiiisdom
 
Data Analytics for Real-World Business Problems
Data Analytics for Real-World Business ProblemsData Analytics for Real-World Business Problems
Data Analytics for Real-World Business Problems
Alexander Kolker
 
Improve power bi performance
Improve power bi performanceImprove power bi performance
Improve power bi performance
Annie Xu
 
Knowledge management
Knowledge managementKnowledge management
Knowledge management
UnKnown
 
Organizational culture of coca cola
Organizational culture of coca colaOrganizational culture of coca cola
Organizational culture of coca cola
Mashfiq Albartross
 
Knowledge Management Lecture 3: Cycle
Knowledge Management Lecture 3: CycleKnowledge Management Lecture 3: Cycle
Knowledge Management Lecture 3: Cycle
Stefan Urbanek
 
Introduction to Cognos BI
Introduction to Cognos BIIntroduction to Cognos BI
Introduction to Cognos BI
Edureka!
 
Power BI vs Tableau - An Overview from EPC Group.pptx
Power BI vs Tableau - An Overview from EPC Group.pptxPower BI vs Tableau - An Overview from EPC Group.pptx
Power BI vs Tableau - An Overview from EPC Group.pptx
EPC Group
 
Knowledge Management
Knowledge ManagementKnowledge Management
Knowledge Management
Sivathanu N
 
Business Intelligence - Intro
Business Intelligence - IntroBusiness Intelligence - Intro
Business Intelligence - Intro
David Hubbard
 
Business Intelligence - Conceptual Introduction
Business Intelligence - Conceptual IntroductionBusiness Intelligence - Conceptual Introduction
Business Intelligence - Conceptual Introduction
Ahmed Rami Elsherif, PMP, ITBMC
 
Knowladge management
Knowladge managementKnowladge management
Knowladge management
snehal_152
 
Questionnaire in knowledge management
Questionnaire in knowledge managementQuestionnaire in knowledge management
Questionnaire in knowledge managementgirish_rohra
 
Knowledge Management Tools
Knowledge Management ToolsKnowledge Management Tools
Café cofee day - Service Operations Management
Café cofee day - Service Operations ManagementCafé cofee day - Service Operations Management
Café cofee day - Service Operations Management
Vijay Krishnan Anantharaman
 

What's hot (20)

Project Report on Manikchand Oxyrich
Project Report on Manikchand OxyrichProject Report on Manikchand Oxyrich
Project Report on Manikchand Oxyrich
 
Suggestion Analysis PowerPoint Presentation Slides
Suggestion Analysis PowerPoint Presentation Slides Suggestion Analysis PowerPoint Presentation Slides
Suggestion Analysis PowerPoint Presentation Slides
 
Best practices to deliver data analytics to the business with power bi
Best practices to deliver data analytics to the business with power biBest practices to deliver data analytics to the business with power bi
Best practices to deliver data analytics to the business with power bi
 
Knowledge management in theory and practice
Knowledge management in theory and practiceKnowledge management in theory and practice
Knowledge management in theory and practice
 
Knowledge Management
Knowledge ManagementKnowledge Management
Knowledge Management
 
Business Intelligence Trends 2020
Business Intelligence Trends 2020Business Intelligence Trends 2020
Business Intelligence Trends 2020
 
Data Analytics for Real-World Business Problems
Data Analytics for Real-World Business ProblemsData Analytics for Real-World Business Problems
Data Analytics for Real-World Business Problems
 
Improve power bi performance
Improve power bi performanceImprove power bi performance
Improve power bi performance
 
Knowledge management
Knowledge managementKnowledge management
Knowledge management
 
Organizational culture of coca cola
Organizational culture of coca colaOrganizational culture of coca cola
Organizational culture of coca cola
 
Knowledge Management Lecture 3: Cycle
Knowledge Management Lecture 3: CycleKnowledge Management Lecture 3: Cycle
Knowledge Management Lecture 3: Cycle
 
Introduction to Cognos BI
Introduction to Cognos BIIntroduction to Cognos BI
Introduction to Cognos BI
 
Power BI vs Tableau - An Overview from EPC Group.pptx
Power BI vs Tableau - An Overview from EPC Group.pptxPower BI vs Tableau - An Overview from EPC Group.pptx
Power BI vs Tableau - An Overview from EPC Group.pptx
 
Knowledge Management
Knowledge ManagementKnowledge Management
Knowledge Management
 
Business Intelligence - Intro
Business Intelligence - IntroBusiness Intelligence - Intro
Business Intelligence - Intro
 
Business Intelligence - Conceptual Introduction
Business Intelligence - Conceptual IntroductionBusiness Intelligence - Conceptual Introduction
Business Intelligence - Conceptual Introduction
 
Knowladge management
Knowladge managementKnowladge management
Knowladge management
 
Questionnaire in knowledge management
Questionnaire in knowledge managementQuestionnaire in knowledge management
Questionnaire in knowledge management
 
Knowledge Management Tools
Knowledge Management ToolsKnowledge Management Tools
Knowledge Management Tools
 
Café cofee day - Service Operations Management
Café cofee day - Service Operations ManagementCafé cofee day - Service Operations Management
Café cofee day - Service Operations Management
 

Similar to Rasa NLU and ML Interpretability

Challenges in transfer learning in nlp
Challenges in transfer learning in nlpChallenges in transfer learning in nlp
Challenges in transfer learning in nlp
LaraOlmosCamarena
 
NLP Tasks and Applications.ppt useful in
NLP Tasks and Applications.ppt useful inNLP Tasks and Applications.ppt useful in
NLP Tasks and Applications.ppt useful in
Kumari Naveen
 
lect36-tasks.ppt
lect36-tasks.pptlect36-tasks.ppt
lect36-tasks.ppt
HaHa501620
 
Neural Models for Information Retrieval
Neural Models for Information RetrievalNeural Models for Information Retrieval
Neural Models for Information Retrieval
Bhaskar Mitra
 
Bridging the gap between AI and UI - DSI Vienna - full version
Bridging the gap between AI and UI - DSI Vienna - full versionBridging the gap between AI and UI - DSI Vienna - full version
Bridging the gap between AI and UI - DSI Vienna - full version
Liad Magen
 
Natural Language Processing .pdf
Natural Language Processing .pdfNatural Language Processing .pdf
Natural Language Processing .pdf
Anime196637
 
Multilayered paper prototyping for user concept modeling
Multilayered paper prototyping for user concept modelingMultilayered paper prototyping for user concept modeling
Multilayered paper prototyping for user concept modeling
UKOLN (dev), University of Bath
 
Interpretable Machine Learning
Interpretable Machine LearningInterpretable Machine Learning
Interpretable Machine Learning
Sri Ambati
 
EVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERING
EVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERINGEVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERING
EVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERING
IJwest
 
EVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERING
EVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERINGEVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERING
EVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERING
dannyijwest
 
Kiss at oopsla 09
Kiss at oopsla 09Kiss at oopsla 09
Kiss at oopsla 09ClarkTony
 
Machine Learning - Intro & Applications .pptx
Machine Learning - Intro & Applications .pptxMachine Learning - Intro & Applications .pptx
Machine Learning - Intro & Applications .pptx
ssuserf3aa89
 
DL.pptx
DL.pptxDL.pptx
Using construction grammar in conversational systems
Using construction grammar in conversational systemsUsing construction grammar in conversational systems
Using construction grammar in conversational systems
CJ Jenkins
 
Crafting Your Customized Legal Mastery: A Guide to Building Your Private LLM
Crafting Your Customized Legal Mastery: A Guide to Building Your Private LLMCrafting Your Customized Legal Mastery: A Guide to Building Your Private LLM
Crafting Your Customized Legal Mastery: A Guide to Building Your Private LLM
ChristopherTHyatt
 
Reflective Teaching Essay
Reflective Teaching EssayReflective Teaching Essay
Reflective Teaching Essay
Lisa Williams
 
Different Semantic Perspectives for Question Answering Systems
Different Semantic Perspectives for Question Answering SystemsDifferent Semantic Perspectives for Question Answering Systems
Different Semantic Perspectives for Question Answering Systems
Andre Freitas
 
A neural probabilistic language model
A neural probabilistic language modelA neural probabilistic language model
A neural probabilistic language model
c sharada
 
Nlp research presentation
Nlp research presentationNlp research presentation
Nlp research presentation
Surya Sg
 

Similar to Rasa NLU and ML Interpretability (20)

The impact of standardized terminologies and domain-ontologies in multilingua...
The impact of standardized terminologies and domain-ontologies in multilingua...The impact of standardized terminologies and domain-ontologies in multilingua...
The impact of standardized terminologies and domain-ontologies in multilingua...
 
Challenges in transfer learning in nlp
Challenges in transfer learning in nlpChallenges in transfer learning in nlp
Challenges in transfer learning in nlp
 
NLP Tasks and Applications.ppt useful in
NLP Tasks and Applications.ppt useful inNLP Tasks and Applications.ppt useful in
NLP Tasks and Applications.ppt useful in
 
lect36-tasks.ppt
lect36-tasks.pptlect36-tasks.ppt
lect36-tasks.ppt
 
Neural Models for Information Retrieval
Neural Models for Information RetrievalNeural Models for Information Retrieval
Neural Models for Information Retrieval
 
Bridging the gap between AI and UI - DSI Vienna - full version
Bridging the gap between AI and UI - DSI Vienna - full versionBridging the gap between AI and UI - DSI Vienna - full version
Bridging the gap between AI and UI - DSI Vienna - full version
 
Natural Language Processing .pdf
Natural Language Processing .pdfNatural Language Processing .pdf
Natural Language Processing .pdf
 
Multilayered paper prototyping for user concept modeling
Multilayered paper prototyping for user concept modelingMultilayered paper prototyping for user concept modeling
Multilayered paper prototyping for user concept modeling
 
Interpretable Machine Learning
Interpretable Machine LearningInterpretable Machine Learning
Interpretable Machine Learning
 
EVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERING
EVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERINGEVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERING
EVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERING
 
EVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERING
EVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERINGEVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERING
EVALUATION OF SINGLE-SPAN MODELS ON EXTRACTIVE MULTI-SPAN QUESTION-ANSWERING
 
Kiss at oopsla 09
Kiss at oopsla 09Kiss at oopsla 09
Kiss at oopsla 09
 
Machine Learning - Intro & Applications .pptx
Machine Learning - Intro & Applications .pptxMachine Learning - Intro & Applications .pptx
Machine Learning - Intro & Applications .pptx
 
DL.pptx
DL.pptxDL.pptx
DL.pptx
 
Using construction grammar in conversational systems
Using construction grammar in conversational systemsUsing construction grammar in conversational systems
Using construction grammar in conversational systems
 
Crafting Your Customized Legal Mastery: A Guide to Building Your Private LLM
Crafting Your Customized Legal Mastery: A Guide to Building Your Private LLMCrafting Your Customized Legal Mastery: A Guide to Building Your Private LLM
Crafting Your Customized Legal Mastery: A Guide to Building Your Private LLM
 
Reflective Teaching Essay
Reflective Teaching EssayReflective Teaching Essay
Reflective Teaching Essay
 
Different Semantic Perspectives for Question Answering Systems
Different Semantic Perspectives for Question Answering SystemsDifferent Semantic Perspectives for Question Answering Systems
Different Semantic Perspectives for Question Answering Systems
 
A neural probabilistic language model
A neural probabilistic language modelA neural probabilistic language model
A neural probabilistic language model
 
Nlp research presentation
Nlp research presentationNlp research presentation
Nlp research presentation
 

Recently uploaded

Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Linda486226
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
balafet
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
oz8q3jxlp
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
nscud
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
ukgaet
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
John Andrews
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
axoqas
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
ewymefz
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
ahzuo
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
nscud
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape ReportSOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
ocavb
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Subhajit Sahu
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 

Recently uploaded (20)

Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape ReportSOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape Report
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 

Rasa NLU and ML Interpretability

  • 1. Improving RASA NLU Training Using Machine Learning Interpretability Techniques Zvi Topol, MuyVentive LLC
  • 2. Background š Data Scientist with experience in various verticals – media and entertainment, marketing analytics, industrial IOT š Started MuyVentive, LLC to work on Data Science and Interpretable Machine Learning Tools with Focus on Conversational Interfaces š Also offering Data Science consulting for startups
  • 3. What is this Talk about? Visualization Interpretable Machine Learning NLU š Introduction to the topic of interpretable ML and how it can be applied to Rasa NLU using open-source software
  • 4. Interpretable Machine Learning š Very active research topic š Different audiences and requirements for interpretability š Interpreting classifiers š Decision trees/decision lists (IF-THEN statements) (simple models, e.g. rule lists, decision trees) š Black box method explanations – local vs. global (Examples - LIME, Anchors, Shapley, decision trees, PDP. Influence functions) š Training and Test Set Analysis š Finding conflicts/commonalities between classes (Example – ScatterText) š “diverse” training sets
  • 5. Common Stack for Conversational Interfaces NLU (RASA NLU) NLG Dialog Management (RASA Core) TTS STT
  • 6. Common Natural Language Understanding Concepts “What is the balance in my checking account?” Intent: PersonalAccountsIntent Entities “Whom can I speak with regarding mortgages?” Entities Intent: OtherServicesIntent
  • 7. Typical Training of NLU Models š Identify Intents and entities š Provide multiple examples for each intent with labeled entities š Train machine learning algorithms for intent classification and entity recognition š Rasa also supports multi-intents š This talk – focus on single intents
  • 8. Scoring the NLU Model { "intent": { "name": "other_services_intent", "confidence": 0.8726195067816652 }, "entities": [], "intent_ranking": [ { "name": "other_services_intent", "confidence": 0.8726195067816652 }, { "name": "personal_accounts_intent", "confidence": 0.12738049321833478 } ], "text": "what mortgage rate do you offer for 30 yr loans?", "project": "nlu", "model": "model_20181101-071533” }
  • 9. Common Approaches For Troubleshooting Operationalized NLU Models š Monitor performance of model, identify misclassified examples with top confidence score as candidates to refine and retrain š Use Active Learning to intelligently pick which non-labeled samples to label š How to identify (confusing) similar intents with different labels?
  • 10. ScatterText š Project by Jason Kessler with focus on visualizing differences between textual corpuses by word frequencies š https://github.com/JasonKessler/scattertext š Can be leveraged to identify words which are unique for each intent and common across intents
  • 12. ScatterText - Some Considerations š Scalability š Binary š Needs enough examples š Supports unigrams only š Synonyms/deeper semantic simalarities
  • 13. LIME š Local Interpretable Model-Agnostic Explanations š Explaining classification for text and image data as well as regression models by getting as an input: š A model š An input example X with label and confidence score š Sampling examples in the local vicinity of X to fit a simple interpretable model š Use the model to explain the global model
  • 15. LIME For NLU Without the word ”annual” š { "intent": { "name": "personal_accounts_intent", "confidence": 0.5760200117371109 }, "entities": [], "intent_ranking": [ { "name": "personal_accounts_intent", "confidence": 0.5760200117371109 }, { "name": "other_services_intent", "confidence": 0.42397998826288913 } ], "text": "what are rates for my savings accounts", "project": "nlu", "model": "model_20181030-064347" } Original š { "intent": { "name": "other_services_intent", "confidence": 0.5537862252760863 }, "entities": [], "intent_ranking": [ { "name": "other_services_intent", "confidence": 0.5537862252760863 }, { "name": "personal_accounts_intent", "confidence": 0.44621377472391366 } ], "text": "what are annual rates for my savings accounts", "project": "nlu", "model": "model_20181030-064347" }
  • 16. For More Information š There is a lot more to interpretable ML and conversational analytics š MuyVentive blog - http://www.muyventive.com/blog.html š zvi.topol@muyventive.com