SlideShare una empresa de Scribd logo
1 de 9
Artificially intelligent
ChatBot
for travel recommendation
American Express Challenge
2020
Soyeong Bak, Dabeen Oh, Emmanuel Ren
Table of Contents
Business insights
NLP technology behind our chatbot
The main components of our chatbot
Further developments
Business insights into the chatbots applied to the travel industry
• Travel chatbots offer multiple services, from suggesting transportation and places to visit to resolving
after-sales queries, thereby creating value for customers.
Conclusion
Saves time
Avoids hassles
Bain’s Elements of Value
Reduces effort
Informs
Simplifies
Common Use Cases of chatbots applied to travel
Reservation
agent
Personalised
travel plans
Local insider
After-sales
service
Chatbots can improve the customer experience at every stage
of the travel
CUSTOMER JOURNEY in American Express Travel
Bookingflightorhotel
Planningtravel
Findingactivities,
restaurantsorpubs
After-salessupport
Customer asks for
help with travel plan
Chatbot provides travel
recommendations, tips
and information
Customer provides
requirements
Chatbot finds the best
personalised offers
Customer sends
vague queries
Chatbot recognizes and uses
the trigger words to suggest
relevant options
Customer makes
inquiries
Chatbot resolves simple
customer support
questions quickly
• Chatbots give relevant suggestions and personalised offers to help customers from planning their travel
to booking for flight or hotel and finding local places and activities.
• Chatbots can also provide after-sales support by solving simple inquiries quickly.
Conclusion
What is Bidirectional Encoder Representations from Transformers
(BERT)?
Mask tokens:
• 15% of the tokens are masked for pre-training which makes the model bidirectional
• To improve transferability in a real-world application, the masked token is replaced by [MASK] (80%), a random token (10%) and itself (10%)
Next Sentence Prediction:
• The sentences used in training are in pair: 50% are related (IS NEXT) 50% are unrelated (NOT NEXT).
• The pre-trained model learns cross-sentence consistency through the next sentence prediction training.
IS NEXT
• The Bert model takes into account the meaning, the order of the words and the context thanks to a well-
designed coupling of attention mechanism with token masks and next sentence prediction
• Gives state-of-the-art predictions for a wide range of different NLP tasks
Conclusion
[CLS] my dog is cute [SEP] he likes play ##ing [SEP]
E[CLS] Emy Edog Eis Ecute E[SEP] Ehe Elikes Eplay E##ing E[SEP]
EA EA EA EA EA EA EB EB EB EB EB
E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 E10
Input
Token
Embeddings
Segment
Embeddings
Position
Embeddings
IS NEXT
Attention mechanism:
Multi-head self-attention mechanism to take into account the context from every other tokens
Pre-training and fine-tuning process for travellers’ intent
predictions
Pre-training
BERT
E[CLS] Et EN E[SEP] E1
' E1
'
C Tt TN T[SEP] T1
' TM
'
[CLS] Tok 1 Tok N [SEP] Tok 1 Tok M'
NSP Mask LM Mask LM
...
... ...
...
Masked Sentence A Masked Sentence B
Unlabeled Sentence A and B Pair
Pre-training and fine-tuning process for travellers’ intent
predictions
Fine-Tuning
BERT
E[CLS] Et EN E[SEPT] E1
' E1
'
C Tt TN T[SEPT] T1
' TM
'
[CLS] Tok 1 Tok N [SEPT] Tok 1 Tok M'
...
... ...
...
Questions
Intents
Question / Intent Pair
Our Dataset
The key components of our chatbot
Python scripts on GitHub:
• mainbot.py
• ai_bot.py
Slack web client
Python library
Raw data
{“text”: “@amexbot Hello”}
@amexbot
Hello
Raw data
{“text”: “Hi I’m amexbot”}
Hi I’m
amexbot
SLACK
(amexbot channel)
• Fine-tuned BERT Base
• FCNN
• LSTM
• Fine-tuned RNNLM
HTTP tunnel
via ngrok
HTTP tunnel
via ngrok
@amexbot
I love Chinese
cuisine
Oh really! Here are
some nice places
you should try:
893Hand-typedlabelled
datasetfortrainingand
testingthemodels
Pre-trainedweights
downloadedfrom
TensorflowHub
State-of-the-art models applied to travel recommendation
Project’s origins
For the American
Express Hackathon
Challenge 2020, we
proposed an AI-based
chatbot solution to help
customers make better
choices when planning
their travel.
Our solution
By using the state-of-
the-art deep learning
models, we designed an
intent prediction chatbot
that understands
customers’ needs and
redirects them to the
relevant information or
human agents.
Results
After training the model
on 732 intent-labelled
questions, we tested the
model using 161 other
randomly selected
questions. The fine-
tuned Bert-base model
gave 96.89% accuracy,
outperforming the other
models we had tested.
Future developments
Expose the chatbot to a
mobile app, a web app
or a website.
Add more complexity to
labelling and diversify
data.
Use the real customer
datasets to better fit
AmEx’s needs.
Hackathon Team
Emmanuel Ren
Software engineer
Dabeen Oh
Data scientist
Soyeong Bak
Business & Data analyst
Zhaoxuan Wu
Mentor

Más contenido relacionado

Similar a bert presentation.pptx

Let Android dream electric sheep: Making emotion model for chat-bot with Pyth...
Let Android dream electric sheep: Making emotion model for chat-bot with Pyth...Let Android dream electric sheep: Making emotion model for chat-bot with Pyth...
Let Android dream electric sheep: Making emotion model for chat-bot with Pyth...
Jeongkyu Shin
 
BERT- Pre-training of Deep Bidirectional Transformers for Language Understand...
BERT- Pre-training of Deep Bidirectional Transformers for Language Understand...BERT- Pre-training of Deep Bidirectional Transformers for Language Understand...
BERT- Pre-training of Deep Bidirectional Transformers for Language Understand...
Kyuri Kim
 

Similar a bert presentation.pptx (20)

Sentiment analysis on Twitter dataset
Sentiment analysis on Twitter datasetSentiment analysis on Twitter dataset
Sentiment analysis on Twitter dataset
 
Chat ops x line
Chat ops x lineChat ops x line
Chat ops x line
 
Building and Implementing MT systems @ eBay – TAUS Global Content Summit 2019
Building and Implementing MT systems @ eBay – TAUS Global Content Summit 2019Building and Implementing MT systems @ eBay – TAUS Global Content Summit 2019
Building and Implementing MT systems @ eBay – TAUS Global Content Summit 2019
 
Let Android dream electric sheep: Making emotion model for chat-bot with Pyth...
Let Android dream electric sheep: Making emotion model for chat-bot with Pyth...Let Android dream electric sheep: Making emotion model for chat-bot with Pyth...
Let Android dream electric sheep: Making emotion model for chat-bot with Pyth...
 
KiwiPyCon 2014 - NLP with Python tutorial
KiwiPyCon 2014 - NLP with Python tutorialKiwiPyCon 2014 - NLP with Python tutorial
KiwiPyCon 2014 - NLP with Python tutorial
 
WEBINAR: What you need to know about Chatbots
WEBINAR: What you need to know about ChatbotsWEBINAR: What you need to know about Chatbots
WEBINAR: What you need to know about Chatbots
 
Thai Text processing by Transfer Learning using Transformer (Bert)
Thai Text processing by Transfer Learning using Transformer (Bert)Thai Text processing by Transfer Learning using Transformer (Bert)
Thai Text processing by Transfer Learning using Transformer (Bert)
 
AI and Web-Based Interactive College Enquiry Chatbot
AI and Web-Based Interactive College Enquiry ChatbotAI and Web-Based Interactive College Enquiry Chatbot
AI and Web-Based Interactive College Enquiry Chatbot
 
Attention mechanisms with tensorflow
Attention mechanisms with tensorflowAttention mechanisms with tensorflow
Attention mechanisms with tensorflow
 
Tms days 04 2012 manuel herranz pangea mt
Tms days 04 2012 manuel herranz pangea mtTms days 04 2012 manuel herranz pangea mt
Tms days 04 2012 manuel herranz pangea mt
 
Chatbot_Presentation
Chatbot_PresentationChatbot_Presentation
Chatbot_Presentation
 
Prateek Agnihotri5
Prateek Agnihotri5Prateek Agnihotri5
Prateek Agnihotri5
 
NLP State of the Art | BERT
NLP State of the Art | BERTNLP State of the Art | BERT
NLP State of the Art | BERT
 
Beginning text analysis
Beginning text analysisBeginning text analysis
Beginning text analysis
 
BERT- Pre-training of Deep Bidirectional Transformers for Language Understand...
BERT- Pre-training of Deep Bidirectional Transformers for Language Understand...BERT- Pre-training of Deep Bidirectional Transformers for Language Understand...
BERT- Pre-training of Deep Bidirectional Transformers for Language Understand...
 
Videogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfVideogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdf
 
Breaking the language barrier: how do we quickly add multilanguage support in...
Breaking the language barrier: how do we quickly add multilanguage support in...Breaking the language barrier: how do we quickly add multilanguage support in...
Breaking the language barrier: how do we quickly add multilanguage support in...
 
The Software Challenges of Building Smart Chatbots - ICSE'21
The Software Challenges of Building Smart Chatbots - ICSE'21The Software Challenges of Building Smart Chatbots - ICSE'21
The Software Challenges of Building Smart Chatbots - ICSE'21
 
A developers' journey into building automated tests for IT from the ground up
A developers' journey into building automated tests for IT from the ground upA developers' journey into building automated tests for IT from the ground up
A developers' journey into building automated tests for IT from the ground up
 
IRJET- Chatbot using NLP and Deep Learning
IRJET-  	  Chatbot using NLP and Deep LearningIRJET-  	  Chatbot using NLP and Deep Learning
IRJET- Chatbot using NLP and Deep Learning
 

Último

Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
nirzagarg
 
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
HyderabadDolls
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Klinik kandungan
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
gajnagarg
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
gajnagarg
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
chadhar227
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
ranjankumarbehera14
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
vexqp
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
nirzagarg
 

Último (20)

Fun all Day Call Girls in Jaipur 9332606886 High Profile Call Girls You Ca...
Fun all Day Call Girls in Jaipur   9332606886  High Profile Call Girls You Ca...Fun all Day Call Girls in Jaipur   9332606886  High Profile Call Girls You Ca...
Fun all Day Call Girls in Jaipur 9332606886 High Profile Call Girls You Ca...
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for Research
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
 
20240412-SmartCityIndex-2024-Full-Report.pdf
20240412-SmartCityIndex-2024-Full-Report.pdf20240412-SmartCityIndex-2024-Full-Report.pdf
20240412-SmartCityIndex-2024-Full-Report.pdf
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubai
 
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
 
High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...
High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...
High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...
 
Kings of Saudi Arabia, information about them
Kings of Saudi Arabia, information about themKings of Saudi Arabia, information about them
Kings of Saudi Arabia, information about them
 

bert presentation.pptx

  • 1. Artificially intelligent ChatBot for travel recommendation American Express Challenge 2020 Soyeong Bak, Dabeen Oh, Emmanuel Ren
  • 2. Table of Contents Business insights NLP technology behind our chatbot The main components of our chatbot Further developments
  • 3. Business insights into the chatbots applied to the travel industry • Travel chatbots offer multiple services, from suggesting transportation and places to visit to resolving after-sales queries, thereby creating value for customers. Conclusion Saves time Avoids hassles Bain’s Elements of Value Reduces effort Informs Simplifies Common Use Cases of chatbots applied to travel Reservation agent Personalised travel plans Local insider After-sales service
  • 4. Chatbots can improve the customer experience at every stage of the travel CUSTOMER JOURNEY in American Express Travel Bookingflightorhotel Planningtravel Findingactivities, restaurantsorpubs After-salessupport Customer asks for help with travel plan Chatbot provides travel recommendations, tips and information Customer provides requirements Chatbot finds the best personalised offers Customer sends vague queries Chatbot recognizes and uses the trigger words to suggest relevant options Customer makes inquiries Chatbot resolves simple customer support questions quickly • Chatbots give relevant suggestions and personalised offers to help customers from planning their travel to booking for flight or hotel and finding local places and activities. • Chatbots can also provide after-sales support by solving simple inquiries quickly. Conclusion
  • 5. What is Bidirectional Encoder Representations from Transformers (BERT)? Mask tokens: • 15% of the tokens are masked for pre-training which makes the model bidirectional • To improve transferability in a real-world application, the masked token is replaced by [MASK] (80%), a random token (10%) and itself (10%) Next Sentence Prediction: • The sentences used in training are in pair: 50% are related (IS NEXT) 50% are unrelated (NOT NEXT). • The pre-trained model learns cross-sentence consistency through the next sentence prediction training. IS NEXT • The Bert model takes into account the meaning, the order of the words and the context thanks to a well- designed coupling of attention mechanism with token masks and next sentence prediction • Gives state-of-the-art predictions for a wide range of different NLP tasks Conclusion [CLS] my dog is cute [SEP] he likes play ##ing [SEP] E[CLS] Emy Edog Eis Ecute E[SEP] Ehe Elikes Eplay E##ing E[SEP] EA EA EA EA EA EA EB EB EB EB EB E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 E10 Input Token Embeddings Segment Embeddings Position Embeddings IS NEXT Attention mechanism: Multi-head self-attention mechanism to take into account the context from every other tokens
  • 6. Pre-training and fine-tuning process for travellers’ intent predictions Pre-training BERT E[CLS] Et EN E[SEP] E1 ' E1 ' C Tt TN T[SEP] T1 ' TM ' [CLS] Tok 1 Tok N [SEP] Tok 1 Tok M' NSP Mask LM Mask LM ... ... ... ... Masked Sentence A Masked Sentence B Unlabeled Sentence A and B Pair
  • 7. Pre-training and fine-tuning process for travellers’ intent predictions Fine-Tuning BERT E[CLS] Et EN E[SEPT] E1 ' E1 ' C Tt TN T[SEPT] T1 ' TM ' [CLS] Tok 1 Tok N [SEPT] Tok 1 Tok M' ... ... ... ... Questions Intents Question / Intent Pair Our Dataset
  • 8. The key components of our chatbot Python scripts on GitHub: • mainbot.py • ai_bot.py Slack web client Python library Raw data {“text”: “@amexbot Hello”} @amexbot Hello Raw data {“text”: “Hi I’m amexbot”} Hi I’m amexbot SLACK (amexbot channel) • Fine-tuned BERT Base • FCNN • LSTM • Fine-tuned RNNLM HTTP tunnel via ngrok HTTP tunnel via ngrok @amexbot I love Chinese cuisine Oh really! Here are some nice places you should try: 893Hand-typedlabelled datasetfortrainingand testingthemodels Pre-trainedweights downloadedfrom TensorflowHub
  • 9. State-of-the-art models applied to travel recommendation Project’s origins For the American Express Hackathon Challenge 2020, we proposed an AI-based chatbot solution to help customers make better choices when planning their travel. Our solution By using the state-of- the-art deep learning models, we designed an intent prediction chatbot that understands customers’ needs and redirects them to the relevant information or human agents. Results After training the model on 732 intent-labelled questions, we tested the model using 161 other randomly selected questions. The fine- tuned Bert-base model gave 96.89% accuracy, outperforming the other models we had tested. Future developments Expose the chatbot to a mobile app, a web app or a website. Add more complexity to labelling and diversify data. Use the real customer datasets to better fit AmEx’s needs. Hackathon Team Emmanuel Ren Software engineer Dabeen Oh Data scientist Soyeong Bak Business & Data analyst Zhaoxuan Wu Mentor

Notas del editor

  1. Travel recommendations chatbots can be used as reservation agents by assisting customers with booking flights or hotels as a local insider by allowing travelers to experience cities through local recommendations. They can also personalize travel plans resolve after-sales inquiries. Chatbots create many values for customers: in addition to saving time, they inform and reduce effort (customers spend less time and effort searching for relevant information). They also avoid hassles and simplify by unifying customer experience within a single platform.
  2. Chatbots play the role of a travel assistant by supporting customers at the 4 stages of their travel. At the stage of planning trip, chatbots can provide travel recommendations. When booking flights or hotels, chatbots can suggest the best offers suited to customer requirements. Chatbots can also help customers find local activities and restaurants by using the trigger words in the customers’ queries. Finally, at the stage of after-sales support, chatbots can resolve simple inquiries quickly.
  3. We used the BERT model to build our chatbot, so we’ll explain what BERT is. BERT makes use of Transformer, an attention mechanism that learns contextual relations between words (tokens) in a text. Before feeding word sequences into BERT, 15% of the input words are masked for pre-training, which makes the model bidirectional (the model learns the context of a word based on all of its surroundings – the non masked words)   The Next Sentence Prediction consists in training the system to predict if the second sentence in a pair of sentences is the subsequent sentence or not. This chart describes the Transformer Encoder. For the input, we’ll have a pair of sentences “My dog is cute” separator “he likes playing”. To get the token representations, we sum the three embeddings (the token embedding which are word pieces, the segment embedding which represents each sentence and the position embedding) and we are going to use those in a transformer model.
  4. After training the model on this basis for masked words and next sentence or not, we can take this pretrained model and fine tune it to use it for a particular task.
  5. So we are going to run this transformer calculating representations for a particular task and what we are going to change is we are going to remove the very top level prediction and substitute on it a final prediction layer that’s appropriate for our task which is the intent prediction with our dataset.
  6. After training the models using online resources on TensorFlow Hub and 893 labelled dataset, we can use them to make our chatbot. The final solution takes messages from SLACK using a HTTP tunnel and process them in a python script that gives the predictions of the different models and push them on SLACK using a python API, responding with scripted answers. This solution can be exposed on different platforms or on personalized websites or web apps. The Slack platform can be accessed via: https://join.slack.com/t/dorebeen/shared_invite/zt-gne8osn9-5YUofOA9m7fZwy1roaePAA The demo part of the presentation will be done on this SLACK channel (CHAT post)
  7. To conclude, we used state-of-the-art deep learning models to build a very accurate model for our task of intent prediction. We got 96.89% accuracy with the fine-tuned Bert-base model. More insights on the performance of our model will be given during the demo. https://github.com/eren125/AmExChall2020 The next steps of the project will be to expose the chatbot on a more specialized frontend platform such as a mobile app and improve the data we feed in and make it more personalized to American Express needs. But the results we got are still very relevant. Without further redo, let’s move on to the DEMO