7 Ijcse 08620 18
7 Ijcse 08620 18
net/publication/360801505
CITATIONS READS
0 89
5 authors, including:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Sopan Talekar on 13 January 2023.
Shivani Pravin Rashinkar1*, Neha Dilip Wanjol2, Shivani Nandkumar Rane3, Pushkar P.
Shinde4, Sopan A. Talekar5
1,2,3,4,5
Department of Computer Engineering, MVP’s KBT College of Engineering, Pune University, Nashik, India
B.Setiaji and F. W. Wibowo et al. [3] Chatterbot is by the user. For the chatbot development, we have used
designed with a powerful pattern matching algorithm. This Python programming language using Django framework
project uses Indonesian conversational pattern and MySQL and Chatterbot library. It makes it easy to generate
database. This application is based on a knowledge base automated responses to a user’s input with the help of a
which is maintained by admin. It can be miss in defining a machine learning algorithm to produce different types of
sentence and how to response it while connecting chat responses. Students just have to query through the bot
application to the database. In the pattern-matching which is used for chatting purpose. Chatbot will reply to
operation, knowledge representation and implementation the query with the help of artificial intelligence.
of SQL are important. A data that has been created which
is based on the pattern of the conversation must be tested The proposed system will reduce the administration burden
by the help of a series of scenarios. The conversation and will be able to provide necessary details to students
should be crosschecked to the basic pattern so that it and parents online. Students do not have to visit college
allows you to add some knowledge to the database which administration for every inquiry. Students will get their
is not added before. If the input record in the database queries resolved without any hassle to reach out the college
does not match, then it will be remodeled. administration office. The System will be available for
24/7 to all students and parents [4].
K. Shivam, K. Saud, M. Sharma, S. Vashishth, and S.
Patil et al. [4] In this paper, for designing chatbot, 1. User Login:
Facebook Messenger is used which is source and uses User just needs to submit his/her queries regarding the
artificial intelligence to communicate with the user and college to the bot. User can be student, teacher as well as
provide the required information. This Facebook API is parents.
integrated with Python backend, webhook is used to
deliver the query of the user to the server. This system has 2. Chatbot Responding System:
used WIT and AI as a pre-trained artificial intelligence 2.1 NLP Processing for Query Analysis :
module so that one could use its pre-trained neural When a user submitted the query to the system, NLP is
networks to answer the user’s query with efficiency and applied and sense of the query is detected. Natural
accuracy. Language Processing (NLP) allows chatbot to understand
user’s messages and respond appropriately.
E. Haller and T. Rebedea et al. [5] This paper describes
the concept of identifying vital facts in texts describing the 2.2 Search Questions in database:
life of a historical figure for building a conversational Once the query is submitted, furthermore, we have to
agent that could be used in middle-school CSCL scenario. search the exact answer of the query in our pre-trained
This paper presents a way for building a chat-bot that may database. As the query description can change from person
simulate a historical figure. The system can receive "input" to person. The same question can be asked in different
as an understandable text or a web page about the historical ways from multiple users. One user asks a question so
figure and has as "output" a trained conversational agent simply and clearly, while another user may ask the same
that is in a position to answer all reasonably questions question with different format. So it is necessary to find
about the life expertise of that user. out what is the correct solution of a submitted query.
5. Algorithm Implemented
Naive Bayes’ is a powerful algorithm for text classification
problems. It is a probabilistic machine learning algorithm
which is based on Bayes’ theorem[9]. This classifier
assumes that the presence of a selected function in a
category is unrelated to the presence of another function. In
this algorithm a closed domain dataset containing
questions/user-responses and corresponding answers is
made, which every question is given a label, this will relate
the question to its answer. Due to multiple questions could
have the same response, there can be multiple questions
having the same answer.
P (A | B) = (P (B | A) * P(A))
P(B)
Where,
Figure 1: Architecture Diagram of Chatbot System
P (A | B) = Probability of ‘A’ occurring given
evidence of ‘B’ has already occurred.
4. Flowchart of Chatbot System:
The flowchart of the system displays how the chatbot P (B | A) = Probability of ‘B’ occurring given
performs. Initially, the user message is pre-processed and evidence of ‘A’ has already occurred.
connectivity to the database is obtained. Then, based upon
conditions satisfied, the chatbot process flows and provide P (A) = Probability of ‘A’ occurring.
response to the user. If the user cannot find the answer for
a query then in such condition chatbot will provide P (B) = Probability of ‘B’ occurring.
admin’s contact details to the user. Admin can view and
answer the corresponding query. 6. Different Algorithms Used for Chatbot System:
Some of the most popular algorithms for chatbots are
Porter Stemmer[1], Naive Bayes’[9], Support Vector
Machines, K-means and atural language processing (NLP).
Chatbots mainly use classification algorithms to recognize
intent in phrases. Every algorithm has its own advantages
and disadvantages according to its working method. Table
1 shows comparison of different algorithms WRT to Naive
Bayes’ algorithm.
AUTHORS PROFILE
Shivani Pravin Rashinkar, Bachelor
of Engineering in Computer Science,
MVP’s KBT College of Engineering,
Nashik, India