%A Yu,Shi %A Chen,Yuxin %A Zaidi,Hussain %D 2021 %J Frontiers in Applied Mathematics and Statistics %C %F %G English %K Chabot,BERT,Rasa,Bayesian learning,Intent Classification %Q %R 10.3389/fams.2021.604842 %W %L %M %P %7 %8 2021-August-26 %9 Methods %# %! AVA, Chatbot, BERT, Financial, Intent Classification %* %< %T AVA: A Financial Service Chatbot Based on Deep Bidirectional Transformers %U https://www.frontiersin.org/articles/10.3389/fams.2021.604842 %V 7 %0 JOURNAL ARTICLE %@ 2297-4687 %X We develop a chatbot using deep bidirectional transformer (BERT) models to handle client questions in financial investment customer service. The bot can recognize 381 intents, decides when to say I don’t know, and escalate escalation/uncertain questions to human operators. Our main novel contribution is the discussion about the uncertainty measure for BERT, where three different approaches are systematically compared with real problems. We investigated two uncertainty metrics, information entropy and variance of dropout sampling, in BERT, followed by mixed-integer programming to optimize decision thresholds. Another novel contribution is the usage of BERT as a language model in automatic spelling correction. Inputs with accidental spelling errors can significantly decrease intent classification performance. The proposed approach combines probabilities from masked language model and word edit distances to find the best corrections for misspelled words. The chatbot and the entire conversational AI system are developed using open-source tools and deployed within our company’s intranet. The proposed approach can be useful for industries seeking similar in-house solutions in their specific business domains. We share all our code and a sample chatbot built on a public data set on GitHub.