University Chatbot Using Artificial Intelligence Markup Language
University Chatbot Using Artificial Intelligence Markup Language
Markup Language
Naing Naing Khin Khin Mar Soe
Natural Language Processing Lab Natural Language Processing Lab
University of Computer Studies,Yangon University of Computer Studies,Yangon
Yangon, Myanmar Yangon, Myanmar
naingkhin@ucsy.edu.mm khinmarsoe@ucsy.edu.mm
Abstract—Chatbots are conversational systems that can do tending to buy things online. S. Hussain, O. A. Sianaki, and
chat interactions with human automatically. It is developed to N. Ababne[4] discussed chatbots classification, design
be virtual assistant, making entertainment for people, helping
for answering the questions, getting driving directions, serving techniques used in earlier chatbots and modern ones, and
as human partner in smart homes etc. Most of the chatbots how the main categories of chatbots can handle conversation
utilize the algorithms of artificial intelligence (AI) in order to get context. They presented with the emergence of new
the required responses. In this paper, we provide the design of a
technologies intelligent systems have emerged using
University Chatbot that provides an efficient and accurate
answer for any user questions about university information. complex knowledge-based models. B. R. Ranoliya, N.
This is the first University Chatbot for inquiring about school Raghuwanshi and S. Singh[5] provided the university related
information in Myanmar Language based on Artificial FAQs for students by using the Artificial Intelligence and
Intelligence Markup Language and uses Pandorabots as the
interpreter.
Latent Semantic Analysis. They implemented to solve the
academic needs of the visitors for Manipal University. A.
Keywords—AIML, Natural Language Processsing, Mondal, M. Dey, D. Das, S. Nagpal, K. Garda[9] focused on
Pandorabots, Pattern Matching, Response Generation
the design of texual communication in educational domain.
I. INTRODUCTION They developed and processed the accurate chatbot by using
Conversational agents become essential by interacting of random forest algorithm. R. Sharma, M. Patel[10] presented
machines with the desired users to provide natural language the review of design techniques on chatbot in speech
interfaces. So, the role of chatbots in the information conversation systems. They discussed the performance and
technology and communication is widely in used. Many usability of many chatbots in our everyday lives.
chatbots are created day by day through marketing, medical,
education and banking. Chatbot is also a user assistant III. HUMAN COMPUTER INTERACTION IN CHATBOTS
substance that is intended to produce a communication with
human through their regular language. In educational system, Human Computer Interaction is a communication field of
it is essential for teaching, learning and searching the desired study focusing on the design of computer technology and the
information for a specific area. The obvious factor that leads interaction between human and computers. Conversation
us one step closer to living in our fantastic world is that it system between a human and a computer is either chatting by
knows our messages and can respond to us. The bot would
match the input sentence from the user with that pattern typing text or speech dialogue using the voice. Thus,
existed in the knowledge base. This system is simple interaction with natural language is a feasible option for
Myanmar chatbot using AIML but it can answer the necessary connecting machine agents and human users. The chatbot
information for the users. There are many chat engines with popularity has brought the new feeds for HCI as it has
different methods and can perform chatting. Some famous changed the pattern of human interaction. Human Computer
chatbots are SimSimi, Mitsuku, A.L.I.C.E, and now the
machine learning chatbots like Siri, Alexa, Cortana and so on. Interaction may need to consider for chatbots as the main
Although modern chatbots apply the power of artificial object of design, focus on services than user interfaces, and
intelligence to answer complicated questions, they still need design for interaction in networks of human and machine
some improvements for low resource languages. actors[13]. The main parts which include human computer
II. LITERATURE REVIEW interaction in conversation systems design are (a) the
techniques used to produce keywords, (b) pattern matching
B. A. Shawar and E. Atwell [2] described a system to
techniques used inside the chatbot and (c) the type of
access Arabic language information using chatbot without
response. So, HCI is considered taking on human-chatbot
sophisticated natural language processing or logical
interaction design as an area of research and practice.
inference. They showed this work properly with English and
European languages and how the same chatbot will react
in terms of Arabic FAQs. S. A. Prasetya, A. Erwin[3] aimed Make a
Conversation
to found right AIML interpreter which can be used in Chatbot Response
Keywords
Indonesian language E-Commerce website. The system is
built by using Artificial Intelligence Markup Language
Fig. 1. Human Computer Interaction
(AIML) and Pandorabots as the interpreter for the customers
<category> <category>
<pattern>မဂလ ပ </pattern> <pattern> က ဇ* ပ ရင</pattern>
<template>ဟတက မဂလ ပ ရင</template> <template>ဟတက 'ပနလည တ"ဆ%ဖ မ- လငပ တယ
</category> </template> </category>
<category>
<pattern> က ဇ* ပ *</pattern>
(b) Default categories include wildcard symbols * or _. <template> <srai> က ဇ* ပ ရင </srai>
</template></category>
<category>
<pattern> က င ခ န် က ဘယအခ နမ * </pattern>
<template> က င ခ န က မနက ၉ န ရမ စပ တယ (iii) synonyms resolution
</template>
</category> <category>
<pattern> က င လပစ သခ ငလပ </pattern>
<template>အမတ-၄ လမ မ0က ၊ ရ2'ပညသ 3မ့ု၊
ရနကနတင 'ဖစပ တယ</template>
For such situation, if the user enters က င ခန က
</category>
ဘယအခ နမ စတ လ then the AIML class will search until the <category>
wild symbol (*) and if there is a match it will accompany <pattern> က င က ဘယမ ရတ လ</pattern>
response. <template><srai> က င လပစ သခ ငလပ </srai>
(c) Recursive categories are the categories with </template> </category>
templates <srai> and <sr> tags, which represent recursive
artificial intelligence and symbolic reduction. Applying a
combination of wild cards and srai, the stop words of the
(iv) keyword detection A. Knowledge Base
Artificial Intelligence Markup Language is a well-known
<category> XML derived language to build chatbot knowledge base.
<pattern>သငယ*'ခင </pattern> Users' frequent asked question sets are defined semantically
<template> သငယ*'ခင သည 'ပ င လ'ခင ဆသ the knowledge domain given to the chatbot. The questions are
ဦ တည စ သ လပငန စဥ် 'ဖစသည</template> available from the university academic center related to nine
</category> topics and manually collect from the teachers, students and
<category> their parents that they want to ask about the university. We
<pattern> _ သငယ*'ခင </pattern> have used 970 question-answer pairs as data distribution. A
<template><srai>သငယ*'ခင </srai></template> well-designed knowledge base can positively impact the
</category> effectiveness of chatbots that will improve the interaction
<category>
between users.
<pattern>သငယ*'ခင *</pattern>
<template><srai>သငယ*'ခင </srai></template> B. Workflow of the System
</category>
<category>
<pattern>_ သငယ*'ခင *</pattern> Start
<template><srai>သငယ*'ခင </srai></template>
</category>
Accept User
Query
V. PROPOSED SYSTEM
We have implemented a Myanmar interactive chatbot for
university frequently asked questions. AIML is defined with
general inquiries and messages which are replied by applying Word Segmentation
AIML formats. According to the Artificial Intelligence
Markup Language, we have used different AIML tags to get
the user required information from the bot. Fetch Query to
Pandorabots’ Server
TABLE I. AIML TAGS USED IN SYSTEM
3. <pattern></pattern>
4. <template> </template>
5. <srai></srai> Response of
Query
6. <random> </random> with <li> </li>
7. <set> </set>
8. <get> </get> End
9. <that> </that>
10. <think> </think> Fig. 2. Flow of the System
11. <condition> </condition>
VI. IMPLEMENTATION OF THE PROPOSED CHATBOT
Rule-based chatbot contains a faster time-to-relevance,
The system operation is divided in three steps. In the first delivering a faster impact on user interaction. This chatbot is
step, the question is entered by the user. In the second step, the one of rule-based chatbot and developed on AIML language
system performs word processing actions to match the user's for the University of Computer Studies, Yangon. We have
input to a pre-defined format and do the pattern matching purposed this system to have a support for university routine.
between user input and the Knowledge Base. Finally, the All the questions files need to be uploaded to Pandorabots
answer is presented to the user in the third step. server. The files include the university related questions and
information that the students, teachers and parents frequently
asked. The number of question-answer pairs in the system that
are utilized for different topics and type of categories are as
given:
The service requires internet connection to access the VII. TESTING AND EVALUATION
system. The users can interact with the chatbot in every time Testing can be made to measure the quality of chatbot. The
if there is a connection. The user needs to input the questions steps included to conduct the chatbot experiments are (i)
as Myanmar Language. The segmentation is done by using the getting the overviews of questions that can be asked, (ii)
UCSY word segmentor (http://www.nlpresearch- inquiring the user questions related to the nine topics show in
ucsy.edu.mm/NLP_UCSY/wordsegmentation.html). The Table 2, (iii) asking the questions to get the feedback about the
input from the user is normalized and processed on the system, (iv) the experimental analysis whether they have
Pandorabots server. The AIML files, which are separated into correct or wrong responses [12].
several categories and the chatbot's knowledge is uploaded
into the server. After pattern matching, the inquired user can We have made user testing with the closed user group by
ask the university related questions about academic services students, parents and staff. The system still needs
and activities. These are some sample results of our system: improvement due to some patterns that mismatch with the
chatbot knowledge. We also have adopted the dialog
efficiency matrix to evaluate the chatbot.
A. Dialogue Efficiency Metric
The proposed system is measured the efficiency with four
sample dialogues in terms of atomic categories, default
categories, recursive categories. Adopted learning
mechanism is used to see the ability to find answers for user
as shown in table III.
REFERENCES
[1] AIML Foundation, June 2018.
[2] B. A. Shawar, E. Atwell, "Arabic question-answering via instance
based learning from an FAQ corpus", 2009.
[3] S. A. Prasetya, A. Erwin, M. Galinium, " IMPLEMENTING
INDONESIAN LANGUAGE CHATBOT FOR ECOMMERCE SITE
USING ARTIFICIAL INTELLIGENCE MARKUP LANGUAGE
(AIML)", 2018.
[4] S. Hussain, O. A. Sianaki, N. Ababneh, "A Survey on Conversational
Agents/Chatbots Classification and Design Techniques", 2019.
Fig. 4. Mismatch Question Example [5] B. R. Ranoliya, N.Raghuwanshi, S. Singh, "Chatbot for university
related FAQs," 2017 International Conference on Advances in
The frequency of matching type in each dialogue Computing, Communications and Informatics (ICACCI), Udupi, 2017,
pp. 1525-1530.
generated between user and chatbot was calculated in figure [6] AIML - Sets and Maps in AIML 2.0,
5. These absolute frequencies are normalized to relative https://docs.google.com/document/d/1DWHiOOcda58CflDZ0Wsm1C
gP3Es6dpicb4MBbbpwzEk/pub
probabilities.
[7] B. A. Shawar, E. Atwell ,"Chatbots: Are they Really Useful?", 2007.
[8] A. Hajare, P. Bhosale, R. Nanaware, G. Hiremath, "Chatbot for
60 Education System", Vol.3, Issue 2, April 2018.
[9] A. Mondal, M. Dey, D. Das, S. Nagpal, K. Garda, "Chatbot: An
50 automated conversation system for the educational domain", IEEE,
2018.
40 [10] R. Sharma, M. Patel, "Review on Chatbot Design Techniques in Speech
Conversation Systems", Vol.5, Issue 9, September 2018.
30 [11] A. S. Lokman, J. M. Zain, "Chatbot Enchanced Algorithms: A Case
Study on Implementation in Bahasa Malaysia Human Language",
20 2010, pp.31-44.
[12] B. A. Shawar, "Different measurements metrics to evaluate a chatbot
10 system", 19 May 2014.
0 [13] A. Følstad, P. B. Brandtzaeg, "Chatbots and the new world of HCI", 15
April 2018.
Atomic Default Recursive Total Mismatch
Categories Categories Categories Pairs [14] Giovanni De Gasperis, Isabella Chiari, "AIML Knowledge Base
Construction from Text Corpora", 5 June 2014.
D1 D2 D3 D4